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

2019-06-06 Thread Константин Комков
It's my minimal app - https://drive.google.com/open?id=1db5yxx03Deg4T7YCu813HZWFCarChfQ6 -- 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 thi

Re: [web2py] Re: How to make this code work ...

2019-06-06 Thread Ben Duncan
Ok, moving it to static makes it work fine. It was in view/default Any IDEAS on what / why this works this way ? Thanks ... *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Wed, Jun 5, 2019 at 9:51 PM Dave S wrote: > > > On Wednesday, J

[web2py] Re: Web3py

2019-06-06 Thread Massimo Di Pierro
Thanks. Will fix them both tonight -- 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 Grou

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

2019-06-06 Thread David Manns
Here is my table definition: db.define_table('AccTrans', Field('Timestamp', 'datetime', default=request.now, writable=False), Field('Bank', 'reference Bank_Accounts', writable=False),#e.g. PayPal, Cambridge Trust, ... Field('Account', 'reference CoA', requires=IS_IN_DB

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

2019-06-06 Thread Tim Nyborg
This is really good to know. I've a similar architecture to you, and am planning to add redis to the stack soon. Knowing about issues to be on the lookout for is very helpful. On Friday, 24 May 2019 16:26:50 UTC+1, Lisandro wrote: > > I've found the root cause of the issue: the guilty was Redi

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

2019-06-06 Thread David Manns
running Python 2.7, web2py 2.18.5 table: db.define_table('AccTrans', Field('Timestamp', 'datetime', default=request.now, writable=False), Field('Bank', 'reference Bank_Accounts', writable=False),#e.g. PayPal, Cambridge Trust, ... Field('Account', 'reference CoA',

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

2019-06-06 Thread Ben Duncan
Field('Account', 'reference CoA', requires=IS_IN_DB(db, 'CoA.id', '%(Name)s', orderby=db.CoA.Name)), To me, it looks like you are using "name" to reference the COA, instead of the ID. http://www.web2py.com/books/default/search/29?search=IS_IN_DB *Ben Duncan* DBA / Chief Software Ar

[web2py] add values to table during auth user registration

2019-06-06 Thread karthikeyan p
hi , thanks alot for those, who reading this questions ! 1.i dont know how the auth-user is implemented in controller and about lambda on auth ?? 2.how to customise user registration in auth-user by verifying the user through OTP ; in my project i need to verify the user by OTP ( i will send

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

2019-06-06 Thread Lisandro
If you're going to add Redis, let me add a couple of comments about my own experience: - Using Redis to store sessions (not only to cache) was a huge improvement in my case. I have public websites, some of them with much traffic, so my app handles many sessions. I was using the database for ha

Re: [web2py] Re: How to make this code work ...

2019-06-06 Thread Dave S
On Thursday, June 6, 2019 at 5:03:54 AM UTC-7, Ben Duncan wrote: > > Ok, moving it to static makes it work fine. It was in view/default > Any IDEAS on what / why this works this way ? > > Thanks ... > > *Ben Duncan* > DBA / Chief Software Architect > Mississippi State Supreme Court > Electron

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

2019-06-06 Thread Vlad
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)) logger.warning(auth.settings.login_next) redirect(URL('default

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

2019-06-06 Thread Dave S
On Sunday, June 2, 2019 at 1:47:27 PM UTC-7, Константин Комков wrote: > > All entrant information are checking by operators and if that information > correct entrant can be registrated in personal cabinet. If entrant gived > our information on site, it's work like auth registration form. Entran

[web2py] Re: add values to table during auth user registration

2019-06-06 Thread Dave S
On Thursday, June 6, 2019 at 9:42:59 AM UTC-7, karthikeyan p wrote: > > hi , thanks alot for those, who reading this questions ! > 1.i dont know how the auth-user is implemented in controller and about > lambda on auth ?? > I don't know what you are asking here. Are you trying to customize

[web2py] Re: nssm does not work

2019-06-06 Thread rāma
Thank you Dave and Niphlod for your responses. It helped me troubleshoot my issues. Forum useful as always! On Wednesday, 5 June 2019 16:54:53 UTC+8, Niphlod wrote: > > what happened may differ from what you thought it should happen which may > differ from what needs to happen. > > said that, ns

[web2py] Hidden Field

2019-06-06 Thread Quang Lam
Hi, i have a table like this db.define_table( 'Pass', Field('FlightID', 'reference Flight', label=T('Flight'), requires=IS_NOT_EMPTY()), Field('AnalystID', 'reference Analyst', label=T('Analyst'), requires=IS_NOT_EMPTY()), Field('Ty

[web2py] Re: letsencrypt google appengine with web2py

2019-06-06 Thread Daniel Guilhermino
Dude ... thanks a lot! After hours, this answer helped me a lot! Many... Many thanks! Em domingo, 6 de março de 2016 16:30:42 UTC-3, Jacinto Parga escreveu: > > With GAE deployed apps... > > The best solution I've found is using an error handler and a redirection > to the static file with the le

[web2py] Re: Routes to expose file

2019-06-06 Thread Daniel Guilhermino
Dave, After hours, I found this post: https://groups.google.com/forum/#!searchin/web2py/well-known%7Csort:date/web2py/2uPJLeuKT3s/xqo6oh52BgAJ They helped me solve it, although I believe there must be another better way to solve it. Now I've posted a PWA App on Google Play that runs web2py! h

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

2019-06-06 Thread Vlad
I don't really understand how it works internally, so wondering if it's safe to rely on a value stored as a session storage variable. More specifically, I am authorizing one user to do certain actions on behalf of another user, and the currently assumed user is stored in session.user (even if a

[web2py] Re: Hidden Field

2019-06-06 Thread 黄祥
perhaps can use readabe=False or show_if ref: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Field-constructor http://web2py.com/books/default/chapter/29/07/forms-and-validators#Conditional-fields best regards, stifan -- Resources: - http://web2py.com - http://web2p

[web2py] Re: Web3py

2019-06-06 Thread 黄祥
retest (commits 147) pip install from git repo on docker ubuntu, but got different error traceback *steps* apt install -y git python3-pip pip3 install git+https://github.com/web2py/web3py --upgrade git clone https://github.com/web2py/web3py python3 -c "from pydal.validators import CRYPT; open('pa

[web2py] Re: Web3py

2019-06-06 Thread 黄祥
found https://pypi.org/project/web3py/ n test it on docker ubuntu return an error *steps* apt install -y python3-pip pip3 install web3py *result* Collecting web3py Downloading https: //files.pythonhosted.org/packages/ee/a2/f57e1fefb0c62b4423fd76ea359d58d2363982054050b8c0ab54ed4b84c5/web3py-0.1.