[web2py] Re: Folder sessions

2019-02-05 Thread 黄祥
pls try in arguments (not tested): c:\XXX\X\web2py.py -S stud -M -R c:\XXX\X\scripts\sessions2trash.py -A -o -x 3600 -f -v different from your value is just the 'python', because it's already define in path, so no need to pass python again in arguments value best regards, stifan -- Re

[web2py] Re: Folder sessions

2019-02-05 Thread Константин Комков
Don't work, maybe I need put password and port? Like here in book: > > c:\web2py.py -p 8041 -i "0.0.0.0" --password="112233" > --folder="d:\web2py_internet" --socket-timeout=10 --timeout=120 -c > "d:\web2py_internet\applications\example.com.au.crt" -k > "d:\web2py_internet\applications\web2py.ke

[web2py] Re: Folder sessions

2019-02-05 Thread 黄祥
port is available port to run web2py server example.com.au.crt is certificate file ref: http://web2py.com/books/default/chapter/29/04/the-core#Command-line-options seems doesn't need the password to run session_2_trash.py ref: http://web2py.com/books/default/chapter/29/13/deployment-recipes#Cleani

Re: [web2py] Re: problem with cpdb.py "EXCEPTION: could not set DAL"

2019-02-05 Thread Jon Subscripted
Hi everyone, I took a look at cpdb.py code and saw that "-d" option is just used to find where "dal.py" and add the folder sys.path. So, instead of the relative path, I decided to use the absolute path. I do not get the "could not set DAL" exception anymore, but now I get the following error: "Fi

Re: [web2py] Re: how do I Select in a FORM using a database.

2019-02-05 Thread Ben Duncan
This is to have a drop down list appear. Currently sqlform.factory works only if you have all the labels etc in the sqlform.factory. I have a custom html using flex boxes and modal in the views but following these instructions: http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQL

[web2py] Re: fixing .table appears corrupted on a compiled application

2019-02-05 Thread Marcelo Huerta
El domingo, 3 de febrero de 2019, 18:19:34 (UTC-3), Dave S escribió: > > > Back-ups are the nectar of the gods (nodding toward Greek mythonlogy) > > >>> Versioning systems for code, more so. Mostwanted, if you don't want to start with something heavy and unwieldy as git, at the very least try Fo

[web2py] install script for web2py using python 3

2019-02-05 Thread Ben Lawrence
HI If anyone has a working install script for web2py using python3 + a webserver, can you please share with me? I am using setup-web2py-nginx-uwsgi-ubuntu.sh and modified it to use python3 but the emporer uwsgi service always fails (with no error code). thank you in advance. Ben -- Resources: -

[web2py] Clear a form after submit

2019-02-05 Thread Ben Duncan
What is the best way to clear a form in web2py after it has been submitted. Thanks *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Why is scheduler creating so many files at /var/spool/postfix/maildrop?

2019-02-05 Thread Dave S
On Monday, August 13, 2018 at 2:44:59 PM UTC-7, Lisandro wrote: > > To be honest, that's the way I do it since long time ago, never thought > about changing it. But now that you've pointed that out, I've taken another > look to the book. > The book explains how to run the scheduler via upstart

[web2py] Re: Clear a form after submit

2019-02-05 Thread Dave S
On Tuesday, February 5, 2019 at 1:17:50 PM UTC-8, Ben Duncan wrote: > > What is the best way to clear a form in web2py after it has been submitted. > > Thanks > > *Ben Duncan* > DBA / Chief Software Architect > Mississippi State Supreme Court > Electronic Filing Division > If you're using the

Re: [web2py] Re: how do I Select in a FORM using a database.

2019-02-05 Thread Dave S
On Tuesday, February 5, 2019 at 4:31:33 AM UTC-8, Ben Duncan wrote: > > This is to have a drop down list appear. > Currently sqlform.factory works only if you have all the labels etc in the > sqlform.factory. > > I have a custom html using flex boxes and modal in the views but following > these

[web2py] Web2py with python3: difference in error reporting

2019-02-05 Thread Brian M
Reported the same a few days ago but have heard nothing. :( https://groups.google.com/forum/m/#!topic/web2py/dTsDZJ8jhyg -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Repo

Re: [web2py] install script for web2py using python 3

2019-02-05 Thread Richard Vézina
Share you change here, we may point you in the right direction, so you can submit a PR on github... It shouldn't be hard to get the actual script to work. Richard On Tue, Feb 5, 2019 at 2:28 PM Ben Lawrence wrote: > HI > If anyone has a working install script for web2py using python3 + a > webs

[web2py] Re: Folder sessions

2019-02-05 Thread Константин Комков
In book I see: > > You will probably need to include the full path to both web2py.py and the > scripts folder, and the trailing & is not needed. Why both? I have only one file which called web2py. Services with Argument c:\XXX\XXX\web2py.py -p 8041 -i "0.0.0.0" --password="XX" work but I don

[web2py] Google analytics

2019-02-05 Thread Константин Комков
Hello! I tried to include google analytics like that: db.py > response > .google_analytics_id = > configuration.get('google.analytics_id') > > layout.html > {{if response.google_analytics_id:}} > > >