[web2py] Re: How can I generate hash for user password like web2py

2019-06-07 Thread Константин Комков
Dave S, hello! 1) When I told entrant I want to say person, who want to study in university and involve in competition, maybe applicant is more correct. 2) Applicants can choose to apply online and in person. For person, who choose to apply online I created form with password (here applicant must

[web2py] Re: I can not import module in app

2019-06-07 Thread Константин Комков
P.S. If you delete comment from default.py controller you can see that app don't work becouse dont have that module. > > -- 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

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread lucas
i can not for the life of me figure out where to change to the python3.5 environment for web2py. i tried changing the python symbolic link, and changed to python3.5 in multiple files under web2py main directory, uwsgi, etc., but i can not get web2py to boot straight into python3.5. where is t

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread 黄祥
shell script not work ? another way around perhaps can use conda 3 or miniconda 3, install it and it automatically add variable PATH on your bash file, reload it, then, the default of your python bash will refer to conda installed path best regards, stifan -- Resources: - http://web2py.com - h

[web2py] Re: Could this problem in production be related to web2py?

2019-06-07 Thread Tim Nyborg
Thanks for this. Let me know if you find a resolution to the 'saving to disk' latency issue. Redis sessions would be an improvement, but I'd want to ensure disk-persistence for them (but not for cached things like search results). How many sessions are you storing, and how much RAM does it c

[web2py] Re: Hidden Field

2019-06-07 Thread Quang Lam
Hi i guess i have to declare the field is neither readable nor writable, so that it will not display in the form. but my concern is the setting of writable and readable to false will prevent me from inputting the value which i got from running another script into the field mode or it does not

[web2py] Re: Could this problem in production be related to web2py?

2019-06-07 Thread Lisandro
I'm not exactly sure how many sessions my app is handling, but this numbers will give you an idea: - My websites receive about 500k visits (sessions) in an average day. - The server handles about 2.5 million requests in an average day. - I use RedisSession(session_expiry=36000), that is, sessi

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread lucas
well isn't python opened with either nginx (nginx.service) or uwsgi (emperor.uwsgi.service) with systemctl. I've been trying to find that script to change the python to python3.5. but I can't seem to find it under either of those two or under web2py. -- Resources: - http://web2py.com -

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread Val K
Did you look at /etc/systemd/system -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Gro

[web2py] Re: Could this problem in production be related to web2py?

2019-06-07 Thread Tim Nyborg
You're exactly right - I'll probably wind up with two instances, once RAM-only for caching, and a persistent one for sessions. On Friday, 7 June 2019 14:15:35 UTC+1, Lisandro wrote: > > I'm not exactly sure how many sessions my app is handling, but this > numbers will give you an idea: > > - My

Re: [web2py] appadmin database administration fails when trying to edit record

2019-06-07 Thread David Manns
It turns out the orderby is redundant. Field('Account', 'reference CoA', requires=IS_IN_DB(db, 'CoA.id', '%(Name)s')), works the same. In the application smartgrid edit form the Account field is a dropdown displaying the Name's of the accounts in alphabetic order, no need for the orderby,

[web2py] Re: auth.settings.login_next doesn't redirect after login -

2019-06-07 Thread Anthony
On Thursday, June 6, 2019 at 3:54:59 PM UTC-4, Vlad wrote: > > What could be the reason the following code wouldn't redirect to the > appropriate URL after login? (still brings to default/index page) > > def login_to_url(): > >auth.settings.login_next=URL(request.args(0),request.args(1)) >

[web2py] Re: how safe is it to rely on a value stored as a session variable?

2019-06-07 Thread Anthony
Users can neither read nor write to the session (even cookie based sessions, which are encrypted), so it is "safe" in that regard. Of course, we don't know what your app code is writing to the session -- if you take user input and write it to the session, then it may not be safe. Anthony On Th

Re: [web2py] Re: auth.settings.login_next doesn't redirect after login -

2019-06-07 Thread Eliezer (Vlad) Tseytkin
Oops, got it, repeating this mistake second time.. Thank you very much On Fri, Jun 7, 2019, 12:26 PM Anthony wrote: > On Thursday, June 6, 2019 at 3:54:59 PM UTC-4, Vlad wrote: >> >> What could be the reason the following code wouldn't redirect to the >> appropriate URL after login? (still bring

Re: [web2py] Re: how safe is it to rely on a value stored as a session variable?

2019-06-07 Thread Eliezer (Vlad) Tseytkin
Thank you! On Fri, Jun 7, 2019, 12:32 PM Anthony wrote: > Users can neither read nor write to the session (even cookie based > sessions, which are encrypted), so it is "safe" in that regard. Of course, > we don't know what your app code is writing to the session -- if you take > user input and w

[web2py] Problem with Import

2019-06-07 Thread Quang Lam
i placed a new module file in the modules folder but i got the error saying there is no module named in the modules folder when i import the module. However, i can import the other modules in the modules folder but not the new one. Please help -- Resources: - http://web2py.com - http://web2py

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread lucas
i haven't until you just mentioned it. there is an emperor.uwsgi.service file. its contents are: [Unit] Description = uWSGI Emperor After = syslog.target [Service] ExecStart = /usr/local/bin/uwsgi --ini /etc/uwsgi/web2py.ini RuntimeDirectory = uwsgi Restart = always KillSignal = SIGQUIT Type =

[web2py] Re: Problem with Import

2019-06-07 Thread Dave S
On Friday, June 7, 2019 at 10:33:09 AM UTC-7, Quang Lam wrote: > > i placed a new module file in the modules folder but i got the error > saying there is no module named in the modules folder when i import the > module. However, i can import the other modules in the modules folder but > not th

[web2py] Re: Problem with Import

2019-06-07 Thread Quang Lam
Hi Dave i restarted the web2py, reloaded the adminpage but i still got the error saying no module named in the modules folder. i have no problem with the other modules except the new one named mode_extraction. Also, i checked my modules folder, web2py actually compiles the mode_extraction modul

[web2py] Re: Problem with Import

2019-06-07 Thread Dave S
On Friday, June 7, 2019 at 1:24:23 PM UTC-7, Quang Lam wrote: > > Hi Dave > > i restarted the web2py, reloaded the adminpage but i still got the error > saying no module named in the modules folder. i have no problem with the > other modules except the new one named mode_extraction. Also, i che

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread Dave S
On Friday, June 7, 2019 at 2:37:54 AM UTC-7, lucas wrote: > > i can not for the life of me figure out where to change to the python3.5 > environment for web2py. i tried changing the python symbolic link, and > changed to python3.5 in multiple files under web2py main directory, uwsgi, > etc.,

Re: [web2py] appadmin database administration fails when trying to edit record

2019-06-07 Thread Dave S
On Friday, June 7, 2019 at 8:43:43 AM UTC-7, David Manns wrote: > > It turns out the orderby is redundant. > > Field('Account', 'reference CoA', requires=IS_IN_DB(db, 'CoA.id', > '%(Name)s')), > > works the same. In the application smartgrid edit form the Account field > is a dropdown displ

Re: [web2py] appadmin database administration fails when trying to edit record

2019-06-07 Thread David Manns
Yes, I'm pretty sure it worked fine with 2.14.6! On Friday, June 7, 2019 at 5:42:12 PM UTC-4, Dave S wrote: > > > > On Friday, June 7, 2019 at 8:43:43 AM UTC-7, David Manns wrote: >> >> It turns out the orderby is redundant. >> >> Field('Account', 'reference CoA', requires=IS_IN_DB(db, 'CoA.id

[web2py] Re: 2.18.5 appadmin database administration fails when trying to edit record.

2019-06-07 Thread David Manns
This is a duplicate of https://groups.google.com/forum/#!topic/web2py/2oVcXiUCAiE this one originally seemed to disappear so I resubmitted it. On Thursday, June 6, 2019 at 11:10:14 AM UTC-4, David Manns wrote: > > Here is my table definition: > > db.define_table('AccTrans', > Field('Timestam

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread Val K
uWSGI is very cool, but since you are on Raspbian maybe gunicorn is more suitable? https://dzone.com/articles/a-performance-analysis-of-python-wsgi-servers-part On Saturday, June 8, 2019 at 12:12:58 AM UTC+3, Dave S wrote: > > > > On Friday, June 7, 2019 at 2:37:54 AM UTC-7, lucas wrote: >>

[web2py] Re: nssm does not work

2019-06-07 Thread Dave S
On Wednesday, June 5, 2019 at 1:54:53 AM UTC-7, Niphlod wrote: > > what happened may differ from what you thought it should happen which may > differ from what needs to happen. > > said that, nssm just bootstrap the process. the fact that you have a > service up&running may already indicate tha

Re: [web2py] Re: web2py managing capacity ?

2019-06-07 Thread Dave S
On Tuesday, June 4, 2019 at 12:00:09 PM UTC-7, Dave S wrote: > > > > On Tuesday, June 4, 2019 at 9:12:24 AM UTC-7, karthikeyan p wrote: >> >> sorry , >> Carlos Costa >> , i typed wrongly ! >> its scalability , i want to know web2py apps scalability ! >> > > Well, that depends on your applicat

[web2py] Re: Web3py

2019-06-07 Thread Massimo Di Pierro
try a db.commit() after your define_table(s). On Monday, 3 June 2019 08:16:27 UTC-7, John Bannister wrote: > > Hi All, > > Finally gotten round to playing again on the latest Web3py. > > On _scaffold app .. if I add new tables to model file and then reload from > the dashboard .. I get errors as