[web2py] how to get request.vars.value to controller

2018-08-15 Thread lbjc1978
Am puzzled by this, that I cant post text from request.vars value to database and when refreshing, the text is there but I cant access this value to controller functions. This is my code: def progress_view(): form = SQLFORM(Post, formstyle='table3cols').process() if request.vars:

[web2py] How to restrict user registration to a single domain?

2018-08-15 Thread Erik
I googled this extensively, but didn't find anything useful on it. I want to be able to restrict user registration to a single domain (maybe even to just email addresses that end in .edu). Is there a simple way to add this extra check to the current registration within an app? For example I jus

[web2py] Re: How to restrict user registration to a single domain?

2018-08-15 Thread Anthony
db.auth_user.email.requires.append(IS_MATCH(r'.+@mywebsite.edu$', error_message='Only @mywebsite.edu addresses allowed.')) The db.auth_user.email field has a default set of validators, so you don't want to overwrite its "requires" attribute -- instead,

[web2py] Re: Help with an error:

2018-08-15 Thread Morganti
Hi Anthony, I created a new field and migrated the values to this new one. It´s normal now. The "valor" field was numeric. Thanks your helping Best regards André Em terça-feira, 14 de agosto de 2018 21:57:53 UTC-3, Anthony escreveu: > > What is your model definition? Is "valor" a numeric field

[web2py] Re: how to get request.vars.value to controller

2018-08-15 Thread Dave S
On Wednesday, August 15, 2018 at 8:12:37 AM UTC-7, lbjc...@gmail.com wrote: > > Am puzzled by this, that I cant post text from request.vars value to > database and when refreshing, the text is there but I cant access this > value to controller functions. > This is my code: > def progress_view()

[web2py] Re: Can start cron in 2.17.1

2018-08-15 Thread Dave S
On Tuesday, August 14, 2018 at 3:29:53 PM UTC-7, Omicron VT wrote: > > Trying to start the cron with -Y option gives me an error: > > " TypeError: argument of type 'NoneType' is not iterable " > > Any ideas. Thanks > Not direct help, but isn't web2py's cron deprecated? If you can use the sche

[web2py] Re: Help with an error:

2018-08-15 Thread Anthony
On Wednesday, August 15, 2018 at 4:57:29 PM UTC-4, Morganti wrote: > > Hi Anthony, > > I created a new field and migrated the values to this new one. It´s normal > now. > > The "valor" field was numeric. > Note, if you are using SQLite and initially created the "valor" field as type "string", th

Re: [web2py] Re: how to get request.vars.value to controller

2018-08-15 Thread Lovedie JC
Yes that's what I am trying to get. The current inserted text. How should I work it out? On Thu, 16 Aug 2018, 01:05 Dave S wrote: > > > On Wednesday, August 15, 2018 at 8:12:37 AM UTC-7, lbjc...@gmail.com > wrote: >> >> Am puzzled by this, that I cant post text from request.vars value to >> dat

[web2py] Admin on GAE

2018-08-15 Thread PRACHI VAKHARIA
How to access *full web2py Admin* in *GAE SDK*? - How to view Error Tickets while doing development in web2py on GAE SDK? - How to access the full web2py Admin features on GAE SDK? Please Advise! I am a beginner in web2py+GAE. Thank You! -- Resources: - http://web2py.com - http://web2py.