Re: [web2py] Re: web2py online debugger under python3

2020-05-04 Thread AGRogers
Hi Clemens I definitely can't help you with this problem. Sorry. But I am interested in why you use the online debugger and not something else? Thanks Andrew On Mon, 4 May 2020 at 23:50, Clemens wrote: > Hello Massimo, > > I hoped the latest web2py version would fix the problem. My current > c

Re: [web2py] Re: Importing a CSV file from the Database form fails

2020-05-03 Thread AGRogers
Thanks for the tips. I wrote an import to get in what i needed. But i will try this out when i need to do my next simple import. Cheers Andrew On Mon, 4 May 2020 at 00:54, Clemens wrote: > Have a look on how you open the file to be imported: > > python2: > open(filename, 'rb') > > python3: > ope

Re: [web2py] Re: web2py and ubuntu 20lts

2020-05-01 Thread Maurice Waka
Noted guys Works well. regards On Friday, May 1, 2020 at 4:57:11 PM UTC+3, Lovedie JC wrote: > > On system restart, the previous pyc files for python 2+ were deleted and > it works OK. > Let me observe for now. > Regards > > On Fri, May 1, 2020, 11:26 Lovedie JC > > wrote: > >> Let me try >> >

Re: [web2py] Re: "TypeError: sequence of byte string values expected, value of type str found" when accessing admin

2020-05-01 Thread João Matos
Hello, Nope. What I did was use another port with HTTPS (not 443, eg. 8000) for the client's application. Best regards, João Matos On 01/05/2020 19:15, Ian W. Scott wrote: Did you ever solve this problem? I'm running into the same thing. On Monday, April 8, 2019 at 12:56:49 PM UTC-4, João

Re: [web2py] Re: Server error when accessing admin

2020-05-01 Thread Ian W. Scott
Okay, I'm narrowing down what the problem might be. The site is presently using webfaction's shared SSL certificate for https, which browsers don't recognize as secure. Could that be causing the admin interface to throw the 500 error? On Thursday, April 30, 2020 at 3:02:58 PM UTC-4, Ian W. Sc

Re: [web2py] Re: web2py and ubuntu 20lts

2020-05-01 Thread Lovedie JC
On system restart, the previous pyc files for python 2+ were deleted and it works OK. Let me observe for now. Regards On Fri, May 1, 2020, 11:26 Lovedie JC wrote: > Let me try > > On Fri, May 1, 2020, 11:00 Clemens > wrote: > >> Hi Maurice, >> >> obviously you're trying to execute your pythone

Re: [web2py] Re: Why would new code be ignored and old code be executed?

2020-05-01 Thread Andrew Rogers
Hi again I am having a similar problem again. I havent compiled the app - i have learnt from that mistake, thanks. I am now trying to import some of my custom functions from other python files in the same app. After i got an __init.py__ file in place i was able to see and use my imported funct

Re: [web2py] Re: web2py and ubuntu 20lts

2020-05-01 Thread Lovedie JC
Let me try On Fri, May 1, 2020, 11:00 Clemens wrote: > Hi Maurice, > > obviously you're trying to execute your pythone-2-compiled code with > python 3 (Ubuntu 20 default). Have a try recompiling it with python 3.x. > > Does this solve the problem? > > Regards > Clemens > > On Friday, May 1, 202

Re: [web2py] Re: SQLFORM keepvalues - only 1 field

2020-04-30 Thread Jim S
Wow, that is clever! And, works just how I want it to. Thanks so much for the pointer. -Jim On Thursday, April 30, 2020 at 2:14:48 PM UTC-5, Scott Hunter wrote: > > Would this do the job? > > form = SQLFORM.factory(*fields) > if form.process().accepted: > # update the database

Re: [web2py] Re: SQLFORM keepvalues - only 1 field

2020-04-30 Thread Scott Hunter
Would this do the job? form = SQLFORM.factory(*fields) if form.process().accepted: # update the database here form2 = SQLFORM.factory(*fields) form2.vars['state'] = form.vars.state form2.process() else: form2 = form return dict(form

Re: [web2py] Re: Server error when accessing admin

2020-04-30 Thread Ian W. Scott
Unfortunately I don't know anything about nginx. I've always worked with apache2. Can anyone suggest how to debug this? I'm really at the end of my rope here. On Thursday, April 30, 2020 at 10:37:58 AM UTC-4, Ian W. Scott wrote: > > Thanks very much > > Ian W. Scott, PhD > Associate Professor of

Re: [web2py] Re: SQLFORM keepvalues - only 1 field

2020-04-30 Thread Jim S
Here is what I'm talking about: def update_something(): fields = [Field('name'), Field('address', 'text'), Field('city'), Field('state'), Field('zip_code')] form = SQLFORM.factory(*fields) if form.process().accepted: #

Re: [web2py] Re: SQLFORM keepvalues - only 1 field

2020-04-30 Thread Scott Hunter
Isn't "the next time through the method" when there is a new submission, which would have the saved value in it (unless the user changed it)? Maybe a sample of your code would make things clearer. On Thursday, April 30, 2020 at 1:21:53 PM UTC-4, Jim S wrote: > > Yes, but I need that value on th

Re: [web2py] Re: SQLFORM keepvalues - only 1 field

2020-04-30 Thread Jim Steil
Yes, but I need that value on the next time through the method. Therefore I have to save it to my session and grab it the next time in. Am I missing something? On Thu, Apr 30, 2020 at 12:19 PM Scott Hunter wrote: > Since the value in question is part of the current submission, isn't the > valu

Re: [web2py] Re: SQLFORM keepvalues - only 1 field

2020-04-30 Thread Scott Hunter
Since the value in question is part of the current submission, isn't the value available in form.vars? - Scott On Thursday, April 30, 2020 at 12:54:02 PM UTC-4, Jim S wrote: > > I was hoping to avoid those tricks. I too have done this by storing > values in the session to be redisplayed. I wa

Re: [web2py] Re: How to customize "Invalid function/someview" ?

2020-04-30 Thread Christian Varas
Thanks for the help! Now I have a custom 40x error pages :) Cheers. Chris. El jue., 30 abr. 2020 a las 5:13, 'Annet' via web2py-users (< web2py@googlegroups.com>) escribió: > I think routes_onerror = [] in routes.py is whar you're > looking for: > > routes_onerror = [ >,(r'*/404', r'/handl

Re: [web2py] Re: SQLFORM keepvalues - only 1 field

2020-04-30 Thread Jim Steil
I was hoping to avoid those tricks. I too have done this by storing values in the session to be redisplayed. I was hoping that the keepopts argument to SQLFORM would allow you to specify which fields to keep, but it seems that is used for something else. On Thu, Apr 30, 2020 at 11:48 AM Scott Hu

Re: [web2py] Re: Server error when accessing admin

2020-04-30 Thread Ian W. Scott
Thanks very much Ian W. Scott, PhD Associate Professor of New Testament Tyndale Seminary, Toronto, Canada www.ianwscott.com (http://www.ianwscott.com) Paul's Way of Knowing: Story Experience and the Spirit (Baker Academic [Mohr Siebeck], 2006) The Online Critical Pseudepigrapha (SBL, 2006-; pseu

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-29 Thread Jim S
Anyone else using Ansible for managing servers? I am just getting started with it and wrote up a couple playbooks to install web2py on Ubuntu 20.04 using Python 3 or Python 2. https://github.com/jpsteil/web2py_ansible_playbook I started a github repo with what I have so far. It is working fo

Re: [web2py] Re: How do I hide automatically generated child columns in web2py's SmartGrid?

2020-04-28 Thread AGRogers
Many thanks Jim. Good idea. That should work for me fine. Cheers On Fri, 24 Apr 2020 at 22:51, Jim S wrote: > This is pretty ugly, but I think it should work if you're interested in > fixing this with jquery in your template. > > I use this technique to hide columns based on other things going o

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-27 Thread Ben Lawrence
Hi Massimo, thanks for web2py, I have used it for my business to track paid time off https://ptocheck.com of our employees, so its a great framework for niche apps, sort-of like filemaker https://www.filemaker.com. Your comment "py4web is designed for APIs" confused me because that is what http

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-27 Thread VJ Sosa
Dear Clemens, Thank you for this guide. It looks great, I will try later today. Greetings from a small place in Castilla La Mancha, Spain. Have a nice week, Víctor On Sun, Apr 26, 2020 at 3:54 PM Clemens wrote: > Attached please find the PDF document. > > Best regards > Clemens > > > On Frida

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-26 Thread Massimo Di Pierro
Hello Jon, unfortunately the documentation has been lagging. Recently we are putting a lot more efforts into py4web which, as you understood, is the natural successor of web2py. py4web is much cleaner and much faster. The Auth side is not quite as battle tested but we plan to release a new and

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-26 Thread Clemens
Jim, have a try. In case you have any questions, please let me know. I can set up a cloud server as a kind of training environment, thus we can use for instructional purpose. To evaluate the cleaned-up description I've done this today - 10min for the server to run. Enjoy your beautiful day in

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-26 Thread Jim Steil
Clemens Thank you for this. I hope to get to reinstalling my servers this week and will use this and the web2py document as a base. FWIW, my goal will be to build an Ansible playbook for my install. Thanks again and enjoy the rest of the weekend. It's a beautiful day here in Wisconsin! -Jim

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread VJ Sosa
Thanks Clemens, I have a similar work to do right now :-) For sure , your pdf manual will be very helpful for me. Please send it when you can. Regards, Víctor On Fri, Apr 24, 2020 at 6:03 PM Clemens wrote: > Sure! But now I have to make fire for the kids and their stick breads :-) > I will cle

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread VJ Sosa
Thank you Jim, I'll take a look at that script. Regards, Víctor On Fri, Apr 24, 2020 at 5:28 PM Jim S wrote: > There is a script available to do the nginx install on Ubuntu, but I > haven't looked at it in a while. When I went through it there were changes > that were needed for me to get it w

Re: [web2py] Re: grid reloading the page on grid actions (and keeping the page's arguments)

2020-04-24 Thread Jim S
Wow, way better than what I've been doing. I'm going to have to take a look at that. Thanks! -Jim On Friday, April 24, 2020 at 12:28:56 PM UTC-5, Vlad wrote: > > I see. Thank you. > > I also did some Googling and found what I think should be documented more > explicitly and perhaps more clea

Re: [web2py] Re: grid reloading the page on grid actions (and keeping the page's arguments)

2020-04-24 Thread Eliezer (Vlad) Tseytkin
I see. Thank you. I also did some Googling and found what I think should be documented more explicitly and perhaps more clearly in web2py docs (it's there, but unless you know what to look for, you're guaranteed to miss it): when creating grid, the following args=request.args[:1] tells the gri

Re: [web2py] Re: grid reloading the page on grid actions (and keeping the page's arguments)

2020-04-24 Thread Jim S
So, you have to manage that yourself. I do it kind of like this. Yes, I know it's ugly but it pretty much works. # if the variable is passed in, get the value search_text = request.get_vars.search_text if request.wsgi.environ['QUERY_STRING'] != '': # we get here if no vars were passed on

Re: [web2py] Re: grid reloading the page on grid actions (and keeping the page's arguments)

2020-04-24 Thread Eliezer (Vlad) Tseytkin
Yes, there are arguments on the page already. I don't want the grid to get rid of them when reloading for those actions. On Fri, Apr 24, 2020, 12:39 PM Jim S wrote: > I thought it did keep track of paging. > > Are you looking for it to keep arguments that you supplied? > > -Jim > > On Friday, Ap

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread Clemens
Sure! But now I have to make fire for the kids and their stick breads :-) I will clean up my notes on Sunday and send here. Have a nice weekend! On Friday, April 24, 2020 at 5:44:40 PM UTC+2, Jim S wrote: > > Clemens > > Can you share that PDF with all of us when you have it complete? > > -Jim

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread Jim S
Clemens Can you share that PDF with all of us when you have it complete? -Jim On Friday, April 24, 2020 at 10:28:22 AM UTC-5, Clemens wrote: > > Victor, > > I've written my personal step-by-step deployment guide for web2py and > Nginx which I'm using for my production system. If interested, I

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread Clemens
Victor, I've written my personal step-by-step deployment guide for web2py and Nginx which I'm using for my production system. If interested, I can send you as a PDF document. But what I couldn't realize is to use the web2py-Nginx-enviroment for debugging. As long only for production it's fine

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread Jim S
There is a script available to do the nginx install on Ubuntu, but I haven't looked at it in a while. When I went through it there were changes that were needed for me to get it working. But, that was back pre-Ubuntu 16, so the script has changed to allow for systemd instead of upstart. In t

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread VJ Sosa
Thanks Jim, I will follow your advice on using Nginx. However, it is not quite intuitive the way this configuration is explained in the web2py book. Details are given for the Apache2 configuration. It is assumed that the reader has enough knowledge on how to configure a web server. Could your r

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-23 Thread Jim S
Jon I'd really encourage you to not give up on this. I think your assessment is correct; there have been a lot changes to the code since that doc was originally written and it might be hard to navigate. I went through it back in 2011, I read it from front to back before even trying to code wi

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-23 Thread Jon Paris
Responses in-line Jim - but before I get to that I really want to thank you for your assistance and patience. I now have to give some serious thought to whether following this document is a worthwhile exercise as it seems to be so far off the mark as far as the current version is concerned. O

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-23 Thread L c
Thank you again, i was feeling alone . Le mercredi 22 avril 2020 21:11:44 UTC+2, Jim S a écrit : > > I'm happy you got it working. > > -Jim > > On Wed, Apr 22, 2020 at 1:39 PM L c > > wrote: > >> oh i forgot i have hollowed your advice, updating pymysql >> thanks again >> >> Le mercredi 22 avril

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-22 Thread Jim Steil
That is your default.py, correct? Which function are you trying to protect with authorization? I'm guessing it's the index or show. First off, I'd get rid of the user and download functions you added. They are already in place as they should be (the ones at the bottom are what you want). If I'

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-22 Thread Jon Paris
Again pretty much the scaffold code plus the tutorial changes I think. # -*- coding: utf-8 -*- # - # This is a sample controller # this file is released under public domain and you can use without limitations # -

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-22 Thread Jim Steil
Jon What does your controller look like? -Jim On Wed, Apr 22, 2020 at 5:13 PM Jon Paris wrote: > Yes - I can see that now - but that was in the original scaffolding. > > I moved stuff around and now have this at the start: > > from gluon.contrib.appconfig import AppConfig > from gluon.tools imp

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-22 Thread Jon Paris
P.S. Just using the one I was pointed to Jim - if you know of a better one I'd be happy to hear it. The biggest problem appears to be that it was written long before a lot of the "stuff" was added to the scaffold files. In some cases the tutorial tells you to replace the whole file - but in ot

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-22 Thread Jon Paris
Yes - I can see that now - but that was in the original scaffolding. I moved stuff around and now have this at the start: from gluon.contrib.appconfig import AppConfig from gluon.tools import Auth db = DAL("sqlite://storage.sqlite") auth = Auth(db) auth.define_tables(username=True) The removed

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-22 Thread Jim Steil
Jon You're redefining db right above your define_table for 'image'. db is already assigned/defined higher up in the db.py file. We don't want to redefine it. I've just been looking at the tutorial you're following and see that it seems a bit out-dated. -Jim On Wed, Apr 22, 2020 at 4:39 PM Jon

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-22 Thread Jon Paris
# -*- coding: utf-8 -*- # - # AppConfig configuration made easy. Look inside private/appconfig.ini # Auth is for authenticaiton and access control # - fro

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-22 Thread Jim Steil
I'm guessing if at the top, they are getting called before db is defined. Are you able to share your db.py? -Jim On Wed, Apr 22, 2020 at 4:09 PM Jon Paris wrote: > Well there's not error message right now - but if I move these two lines: > > auth = Auth(db) > auth.define_tables(username=True)

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-22 Thread Jim Steil
I'm happy you got it working. -Jim On Wed, Apr 22, 2020 at 1:39 PM L c wrote: > oh i forgot i have hollowed your advice, updating pymysql > thanks again > > Le mercredi 22 avril 2020 20:38:09 UTC+2, L c a écrit : >> >> for now it works i don't know why (i have insttalled mysql connector but >>

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-22 Thread L c
oh i forgot i have hollowed your advice, updating pymysql thanks again Le mercredi 22 avril 2020 20:38:09 UTC+2, L c a écrit : > > for now it works i don't know why (i have insttalled mysql connector but i > don't think this is the reason) > after a reboot (2 in fact) it is now ok > thank you ag

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-22 Thread L c
for now it works i don't know why (i have insttalled mysql connector but i don't think this is the reason) after a reboot (2 in fact) it is now ok thank you again for your help Le mercredi 22 avril 2020 14:49:58 UTC+2, Jim S a écrit : > > I am using MySQL 8 on my development box. I'm running 5.

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-22 Thread Jim S
I am using MySQL 8 on my development box. I'm running 5.7 on production servers. But, version 8 is working fine for me. I too had issues when I first installed version 8, but it wasn't with web2py connecting to it. My problems had more to do with interchanging data between version 5.7 and 8

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-22 Thread Kevin Keller
I think there is an issue with web2py not supporting mysql version 8 and above. On Wed, 22 Apr 2020, 03:20 Jim S, wrote: > In your second post above you're connecting to mysql with user usertest > and a password. > > In you web2py example you're connecting with user root. > > I'm guessing that

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-21 Thread Jim S
In your second post above you're connecting to mysql with user usertest and a password. In you web2py example you're connecting with user root. I'm guessing that is not the issue but can you confirm that you're using the same user and password connecting via mysql and via web2py? -Jim On Tues

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-21 Thread L c
no idea ? Le mercredi 22 avril 2020 02:12:43 UTC+2, L c a écrit : > > if i try to create a new app with that it does not work, why ?? i don't > know first time it happens. mysql-server well installed , with sqlite it > works fine ... i don't know what to do , thank you again for your help > > db

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-21 Thread L c
if i try to create a new app with that it does not work, why ?? i don't know first time it happens. mysql-server well installed , with sqlite it works fine ... i don't know what to do , thank you again for your help dbun = DAL('mysql://root:mypwd@localhost:3306/4test', pool_size=0) #dbun = DAL("

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-21 Thread L c
No Le mercredi 22 avril 2020 01:41:39 UTC+2, Jim S a écrit : > > Is the DB on a separate server from the web application? > > Jim > > > On Tue, Apr 21, 2020, 5:59 PM L c > > wrote: > >> New server >> same app >> same credentials >> thank you >> >> >> Le mardi 21 avril 2020 22:04:43 UTC+2, Jim S a

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-21 Thread Jim Steil
Is the DB on a separate server from the web application? Jim On Tue, Apr 21, 2020, 5:59 PM L c wrote: > New server > same app > same credentials > thank you > > > Le mardi 21 avril 2020 22:04:43 UTC+2, Jim S a écrit : >> >> Is this all running on the same machine? >> >> I'm assuming you haven'

Re: [web2py] Re: Mac Catalina 10.15.4 - Cannot run web2py binary

2020-04-21 Thread David Swarbrick
I had a similar problem a few days ago. The answer I received was effective. On windows Ensure python is pathed. Extract the source files from the .zip file to a directory. Run dos box or Switch to the new directory created, and run python web2py.py David Swarbrick da...@swarb.co.uk - dsw...@gmail

Re: [web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-18 Thread Valdeck Rowe
Did not work for me. I wonder what I might be missing. On Saturday, April 18, 2020 at 2:25:54 PM UTC-5, Valdeck Rowe wrote: > > > Thanks, will try this and let you know how it goes. > > On Saturday, April 18, 2020 at 12:15:35 PM UTC-5, Lovedie JC wrote: >> >> I once had the same error, >> Updated

Re: [web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-18 Thread Valdeck Rowe
Thanks, will try this and let you know how it goes. On Saturday, April 18, 2020 at 12:15:35 PM UTC-5, Lovedie JC wrote: > > I once had the same error, > Updated Web2py then copied the psycopg2 in the modules folder. > It worked for me. > Regards > > On Sat, Apr 18, 2020, 19:09 Valdeck Rowe > >

Re: [web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-18 Thread Lovedie JC
I once had the same error, Updated Web2py then copied the psycopg2 in the modules folder. It worked for me. Regards On Sat, Apr 18, 2020, 19:09 Valdeck Rowe wrote: > So I checked gluon/contrib and it wasn't there, so I moved it into > gluon/contrib. Restarted nginx. Still getting the same error.

Re: [web2py] Re: SQLFORM labels and input boxes overlapping

2020-04-17 Thread Jon Subscripted
Thanks Dave, I'll check it out! Libre de virus. www.avast.com <#DAB4FAD8-2DD7-

Re: [web2py] Re: many users logged in, at the same time.

2020-04-09 Thread Christian Varas
You can try: Apache benchmark Load impact (free account) Blazemeter (free account) Cheers. El El jue, 9 de abr. de 2020 a la(s) 17:44, Dave S escribió: > > > On Thursday, April 9, 2020 at 4:10:21 AM UTC-7, Wep2buy wrote: >> >> Hi every body: >> >> how can i test an app (like chat) from my desk

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Maurice Waka
Thanks team. Take care Regards On Thu, Apr 2, 2020, 19:59 Maurice Waka wrote: > My biggest apology. > > I edited a wrong html file (the one outside web2py) by removing the > {{extend 'layout.html'}} > > So with the right file edited, it now works. > > But I also need the top navbar > > Kind

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Lovedie JC
Yes Thanks a lot Regards On Thu, Apr 2, 2020, 20:49 Jim Steil wrote: > Whoops, I read the wrong post. > > So, if you need the top navbar, then you'll need to rework this html > file. If you notice how the include works, your respecifying the html, > head and body tags in your new html file. Th

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Jim Steil
Whoops, I read the wrong post. So, if you need the top navbar, then you'll need to rework this html file. If you notice how the include works, your respecifying the html, head and body tags in your new html file. They're already specified in your layout.html. If it were me, I'd put the jquery in

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Jim Steil
Same effects, yes, but what error messages are you seeing in the console? -Jim On Thu, Apr 2, 2020 at 9:55 AM Lovedie JC wrote: > I did that, without the layout.html but still getting the same effects. > Regards > > On Thu, Apr 2, 2020, 17:42 Jim S wrote: > >> You are including layout.html at

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Maurice Waka
My biggest apology. I edited a wrong html file (the one outside web2py) by removing the {{extend 'layout.html'}} So with the right file edited, it now works. But I also need the top navbar Kind regards On Thursday, April 2, 2020 at 6:07:11 PM UTC+3, Jim S wrote: > > What is your browser

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Jim Steil
What is your browser console showing for errors? Can you post the entire .html file with no web2py requirements? -Jim On Thu, Apr 2, 2020 at 9:55 AM Lovedie JC wrote: > I did that, without the layout.html but still getting the same effects. > Regards > > On Thu, Apr 2, 2020, 17:42 Jim S wrote

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Lovedie JC
I did that, without the layout.html but still getting the same effects. Regards On Thu, Apr 2, 2020, 17:42 Jim S wrote: > You are including layout.html at the top of your code snippet. > > I would suggest that you test this all by itself (remove the include of > layout.html) before trying to int

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Jim S
You are including layout.html at the top of your code snippet. I would suggest that you test this all by itself (remove the include of layout.html) before trying to integrate with web2py. Create one html file with the code you need, get that working and then take what you learned there and pul

Re: [web2py] Re: jQuery not working with web2py

2020-04-01 Thread Maurice Waka
I don't have firefox but on opera & chrome it gives this: web2py-bootstrap3.js:2 Uncaught TypeError: Cannot set property 'ajax_fields' of undefined at web2py-bootstrap3.js:2 at web2py-bootstrap3.js:82 On Thursday, April 2, 2020 at 6:17:36 AM UTC+3, Jim S wrote: > > But have you looked at

Re: [web2py] Re: jQuery not working with web2py

2020-04-01 Thread Jim Steil
But have you looked at the browser JavaScript console to see what it is telling you? In Firefox press F12 and then click on the console tab. That will tell you what JavaScript errors are occurring in the browser. Jim On Wed, Apr 1, 2020, 9:35 PM Maurice Waka wrote: > On page reload it should

Re: [web2py] Re: jQuery not working with web2py

2020-04-01 Thread Maurice Waka
On page reload it should ; ... Slide to testimonials then after 3 seconds Slide to contact. In Web2py nothing happens. When I do it from the folder it works. Do the error is that it doesn't slide as normal Regards On Thu, Apr 2, 2020, 03:54 Jim S wrote: > What errors are you seeing in your

Re: [web2py] Re: reg expression use in web2py/dal?

2020-03-31 Thread Dave S
On Tuesday, March 31, 2020 at 3:38:34 AM UTC-7, Vlad wrote: > > Is there any example / doc on how to use regexp? It's just mentioned in > the book, but no details and no samples. > > It depends on your db backend and the adapter. For sqlite and the inbox-adapter, there's a python file that wr

Re: [web2py] Re: reg expression use in web2py/dal?

2020-03-31 Thread Eliezer (Vlad) Tseytkin
I mean, I understand how to use regexp for a simple pattern matching, but here I need to use the "sub" feature. What am I missing? On Tue, Mar 31, 2020, 6:38 AM Eliezer (Vlad) Tseytkin < westgate6...@gmail.com> wrote: > Is there any example / doc on how to use regexp? It's just mentioned in > the

Re: [web2py] Re: reg expression use in web2py/dal?

2020-03-31 Thread Eliezer (Vlad) Tseytkin
Is there any example / doc on how to use regexp? It's just mentioned in the book, but no details and no samples. On Tue, Mar 31, 2020, 3:35 AM Val K wrote: > re.sub() is invoked at python level not at db level. You should use > db.field.regexp(pattern) > > -- > Resources: > - http://web2py.com

Re: [web2py] Re: Deploy web2py in windows 10

2020-03-30 Thread Jobin Antony
Hi Nico, Thanks for your support Nico. It works... You did a great job. Once again Thank you very much. On Monday, March 30, 2020 at 1:08:46 PM UTC+5:30, Nico Zanferrari wrote: > > Hi Antony, > > since you're using python 2.7, it's much simpler to download this >

Re: [web2py] Re: Deploy web2py in windows 10

2020-03-30 Thread Nico Zanferrari
Hi Antony, since you're using python 2.7, it's much simpler to download this latest binary version. Uncompress it and launch the web2py.exe inside - it should work fine and without any hassle. If you still hav

Re: [web2py] Re: New-py4web-group

2020-03-29 Thread Dave S
On Saturday, March 28, 2020 at 4:26:32 PM UTC-7, Massimiliano wrote: > > It's working now > > And I can see Nico's message. Thanks! /dps > On Sun, Mar 29, 2020 at 12:17 AM Massimo Di Pierro > wrote: > >> Can you please try again? >> >> On Saturday, 28 March 2020 12:54:43 UTC-7, Daniel Guilh

Re: [web2py] Re: New-py4web-group

2020-03-28 Thread Daniel Guilhermino
Correct! Many thanks Massimo. Em sábado, 28 de março de 2020 20:26:32 UTC-3, Massimiliano escreveu: > > It's working now > > On Sun, Mar 29, 2020 at 12:17 AM Massimo Di Pierro > wrote: > >> Can you please try again? >> >> On Saturday, 28 March 2020 12:54:43 UTC-7, Daniel Guilhermino wrote: >>> >>

Re: [web2py] Re: New-py4web-group

2020-03-28 Thread Massimiliano
It's working now On Sun, Mar 29, 2020 at 12:17 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Can you please try again? > > On Saturday, 28 March 2020 12:54:43 UTC-7, Daniel Guilhermino wrote: >> >> You do not have permission to access this content. (# 418) >> >> I believe it is due

Re: [web2py] Re: tailwindcss with web2py ?

2020-03-22 Thread António Ramos
from the creator https://tailwindcss.com/course/setting-up-tailwind-and-postcss Em sáb., 21 de mar. de 2020 às 12:34, António Ramos escreveu: > I´m just looking into it but after the start barrier it seems that it > give more freedom of creation over bootstrap. > We just have to learn the utili

Re: [web2py] Re: Py4web readonly Form

2020-03-21 Thread villas
Hi John What you say doesn't make much sense because you can style and view data however you wish, including in a readonly form. Similarly a button can redirect your users to wherever you wish. You don't need the framework forms for that. Just style your page how you wish. On Saturday, 21

Re: [web2py] Re: tailwindcss with web2py ?

2020-03-21 Thread António Ramos
I´m just looking into it but after the start barrier it seems that it give more freedom of creation over bootstrap. We just have to learn the utility classes https://blog.logrocket.com/tailwind-css-is-it-tomorrows-bootstrap-ebe560f9d00b/ https://dev.to/lauragift21/love-at-second-sight-with

RE: [web2py] Re: Py4web readonly Form

2020-03-21 Thread John Bannister
Hi Massimo, My use case is really to give the user the option to view data stored in a table without the ability to change anything hence readonly. Once they have finished viewing the form (normally by hitting the submit button) they will be redirected to whatever. Hope it makes sense J

Re: [web2py] Re: how to expire sessions in py4web

2020-03-20 Thread Carlos Hanson
Thanks. That makes sense. Unfortunately, I asked the wrong question after trying to figure out the answer myself. How do I force a logout after some period of time? I thought expiring the session would do that. In web2py, I had to extend the time so my users would stay logged in for a longer perio

Re: [web2py] Re: off topic - Alpine JS as an alternative to vuejs/react

2020-03-20 Thread Massimo Di Pierro
I tried Alpine. It is very slow compared to vue.js. For me it was a non-starter. On Friday, 28 February 2020 07:21:27 UTC-8, Ramos wrote: > > maybe this is helpful > > https://www.alpinetoolbox.com/ > > Em sex., 28 de fev. de 2020 às 06:19, Massimo Di Pierro < > massimo.dipie...@gmail.com> escr

Re: [web2py] Re: Why would new code be ignored and old code be executed?

2020-03-06 Thread Val K
oh yeah, it is definitely due to you press compile in appadmin, it is intended for production. Dont compile app while you develop. I use modules without any issues with tracking as i mentoined above -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/w

Re: [web2py] Re: SQLFORM grid process not working

2020-03-06 Thread Andrew Rogers
> > Many thanks to you guys for answering so many user questions. I am finding >> it really helpful. >> > Cheers Andrew -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

Re: [web2py] Re: Why would new code be ignored and old code be executed?

2020-03-06 Thread AGRogers
>>> Code in the modules folder are compiled automatically when the python file is first invoked. So, after you change any file in modules, you should remove the correspondent .pyc file. Ah, i see, Thanks for the tip. On Fri, 6 Mar 2020 at 19:48, Carlos Correia wrote: > Às 09:38 de 06/03/20, An

Re: [web2py] Re: Why would new code be ignored and old code be executed?

2020-03-06 Thread Carlos Correia
Às 09:38 de 06/03/20, Andrew Rogers escreveu: Thanks for your advice Val. I will try your suggestion... and google search a little to see what it does I dont think i had two servers running but i will look out for that in the future. It seems that the Module i added was the main problem. I mo

Re: [web2py] Re: LOAD in py4web

2020-03-04 Thread Carlos Costa
Sorry for the typo. I want to make a welcome template based on unpoly soon. Em sex., 28 de fev. de 2020 às 04:21, AGRogers escreveu: > https://unpoly.com/ > > On Fri, 28 Feb 2020 at 16:22, Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > >> never heard of unpolly.js and cannot find it.

Re: [web2py] Re: py4web posting to db

2020-03-04 Thread Lovedie JC
I just found out that the error was because I was having a null variable instead of an image in one of the lines. I still can't figure out how I can't have the Field(author, reference auth_user work. On Wed, Mar 4, 2020, 13:30 Maurice Waka wrote: > I've done some look up into the code, did some

Re: [web2py] Re: py4web posting to db

2020-03-04 Thread Maurice Waka
I've done some look up into the code, did some changes and checked how it behaves. I noted, that using the same codesomething is not right with the author field. See the screen shot, the author is not posting but the rest of info is posting. I used the sqlite browser to check the messages. Thi

Re: [web2py] Re: py4web - some questions

2020-03-02 Thread Jim Steil
Is there a reason why you aren't just pip installing it? python3 -m pip install --upgrade py4web Jim On Mon, Mar 2, 2020, 7:22 PM lyn2py wrote: > Try me (install from source) >> >> git clone https://github.com/web2py/py4web.git >> cd py4web >> make assets >> make test >> make install >> py4w

Re: [web2py] Re: Many records in one transaction

2020-03-02 Thread Carlos Correia
Às 08:13 de 24/02/20, Константин Комков escreveu: *Villas*, I can explain why I need to delete many records. I have template of timetable (example upper in my post). There is templates for each group for each faculty in university. ~40 groups = 40 templates for each faculty. When I do timetable

Re: [web2py] Re: off topic - Alpine JS as an alternative to vuejs/react

2020-02-28 Thread António Ramos
maybe this is helpful https://www.alpinetoolbox.com/ Em sex., 28 de fev. de 2020 às 06:19, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu: > wow. Alpine is pretty good. I will give it a try. > > > On Monday, 24 February 2020 08:33:28 UTC-8, Ramos wrote: >> >> vuejs is awesome but for s

Re: [web2py] Re: LOAD in py4web

2020-02-27 Thread AGRogers
https://unpoly.com/ On Fri, 28 Feb 2020 at 16:22, Massimo Di Pierro wrote: > never heard of unpolly.js and cannot find it. Have a link? > > > On Wednesday, 26 February 2020 19:32:20 UTC-8, Carlos Costa wrote: >> >> LOAD is a very cool thing! And beginners just say WOW when they can >> create aja

Re: [web2py] Re: The PyDal/Yatl Web2Py/Py4web Emmet/Weppy Ecosystem

2020-02-27 Thread Jim S
Thanks Kevin, I saw that, but other than the name change seems like not much activity. Any other activity on it? Seems like a nice framework. -Jim On Thursday, February 27, 2020 at 11:47:05 AM UTC-6, Kevin Keller wrote: > > Hey Jim, > > Weppy is now re-named to Emmet: > > https://github.com/e

<    1   2   3   4   5   6   7   8   9   10   >