Re: [web2py] Re: get rid of 'verify password' in register?

2015-05-22 Thread Richard Penman
Because the first examples used a different attribute: auth.settings.login_verify_password = False On Saturday, August 25, 2012 at 9:56:33 PM UTC+8, Alec Taylor wrote: Hmm, that worked this time... not sure what happened last-time. Maybe I had put the code in the wrong section of the file?

[web2py] Is there a working bootstrap3 formstyle for auth?

2015-05-22 Thread Richard Penman
Hello, Is there a working boostrap3 formstyle for auth? I tried: auth.settings.formstyle = 'bootstrap3' auth.settings.formstyle = SQLFORM.formstyles.bootstrap3_stacked auth.settings.formstyle = SQLFORM.formstyles.bootstrap3_inline All of these added bootstrap3 to the form but some parts were

[web2py] Re: Is there a working bootstrap3 formstyle for auth?

2015-05-22 Thread Richard Penman
well, here is a temporary workaround: auth.settings.remember_me_form = False auth.settings.register_verify_password = False On Friday, May 22, 2015 at 3:34:03 PM UTC+8, Richard Penman wrote: Hello, Is there a working boostrap3 formstyle for auth? I tried: auth.settings.formstyle =

Re: [web2py] Re: scheduler trouble

2015-05-22 Thread Manuele Pesenti
Hi Niphlod, thanks for your replay. I solved my trouble switching the scheduler db connection that I forgot it was still using SQLite to PostgreSQL. Thanks to this change the task has performed 2778 run from yesterday evening without any problem. Best regards Manuekle Il 21/05/15 18:35,

[web2py] Re: return locals()

2015-05-22 Thread Anthony
Can you be more clear about what you're trying to do? Why doesn't the usual returning of a dictionary work in this case? On Friday, May 22, 2015 at 1:11:24 PM UTC-4, Annet wrote: I have functions that return locals(), I wonder whether it is possible to limit the variables returned to those

Re: [web2py] Re: Recommended strategy for passing complex query parameters to a REST API

2015-05-22 Thread Derek
you can also simply urlencode it. as json... ?searchcriteria={'date':'5/31/2015','locations':[{'location_name':'Los+Angeles','attendees':10,'services':['Housekeeping','Catering']},{'location_name':'New+York','attendees':5,'services':['Housekeeping']}],'duration':60} On Friday, May 22, 2015 at

Re: [web2py] return locals()

2015-05-22 Thread Michele Comitini
replace return locals() with return dict(var1=var1, var2=var2...) where var[1,2] are the variables you use in the view 2015-05-22 19:11 GMT+02:00 Annet anneve...@googlemail.com: I have functions that return locals(), I wonder whether it is possible to limit the variables returned to those

[web2py] Re: update_record not working but not failing.

2015-05-22 Thread Anthony
We probably need more details. Is the code executed in a regular HTTP request or an external script? How/when are checking whether the update was successful? On Friday, May 22, 2015 at 5:51:00 AM UTC-4, peter wrote: I am using sqlite 3. I have a ticket booking system. Transaction.status is

[web2py] update_record not working but not failing.

2015-05-22 Thread peter
I am using sqlite 3. I have a ticket booking system. Transaction.status is set to 'pending' in the database, when the transaction is initiated. When the paypal payment completes: transaction.status='booked' transaction.update_record() emails are then sent out. I have a strange

Re: [web2py] Re: Is there a working bootstrap3 formstyle for auth?

2015-05-22 Thread Richard Baron Penman
I tried those bootstrap styles from latest source and they seem to work well for SQLFORM, however face problems for the non-standard features in the auth forms mentioned. On Fri, May 22, 2015 at 8:40 PM, 黄祥 steve.van.chris...@gmail.com wrote: the newest version of web2py that have bootstrap 3

[web2py] Re: Is there a working bootstrap3 formstyle for auth?

2015-05-22 Thread 黄祥
the newest version of web2py that have bootstrap 3 scaffolding app, is maintain in private/appconfig.ini and define the formstyle in models/db.py e.g. *models/db.py* response.formstyle = myconf.take('forms.formstyle') *private/appconfig.ini* [forms] formstyle = bootstrap3_inline ;formstyle =

[web2py] initilize GPIO in web2py-Scheduler

2015-05-22 Thread Aydin S
I'm trying to set a pin to high (for instance) in a periodic way using web2py in an embedded linux. I set the GPIO to output for example : GPIO.setup(pin 20, output) and then if xy GPIO.setup(pin 20, high) and run the scheduler every 10 second The problem with this is that every 10 second when

Re: [web2py] Re: Recommended strategy for passing complex query parameters to a REST API

2015-05-22 Thread Michele Comitini
In REST you can use any data encoding. I suppose Kevin referst to OData ( https://en.wikipedia.org/wiki/Open_Data_Protocol#A_sample_OData_JSON_data_payload) and needs to use GET and not POST, since that is a query not an insertion (PUT) or a modification (POST). I do not know if OData is apt to

[web2py] Re: initilize GPIO in web2py-Scheduler

2015-05-22 Thread Niphlod
every scheduler task is executed within an isolated process. I don't know the internals of GPIO but I guess you'd need either: - istantiate gpio, retrieve the value, act upon it (e.g. setting a new value) - set two tasks: one (the 1st) that either is repetitive but stores somewhere if it ran

[web2py] Re: return locals()

2015-05-22 Thread Niphlod
you're the only one knowing what the view uses. using locals() is good for development, then you'll need to return a dict holding just what's needed but there's no facility to do it. On Friday, May 22, 2015 at 7:11:24 PM UTC+2, Annet wrote: I have functions that return locals(), I wonder

Re: [web2py] Re: Is there a working bootstrap3 formstyle for auth?

2015-05-22 Thread Niphlod
uhm. could you point out what are the pages of the scaffolding app you're referring to ? they don't seem that bad to me. On Friday, May 22, 2015 at 4:11:32 PM UTC+2, Richard Penman wrote: I tried those bootstrap styles from latest source and they seem to work well for SQLFORM, however face

[web2py] Re: update_record not working but not failing.

2015-05-22 Thread Niphlod
update_record is just an handy shortcut, so it shouldn't (under the hood it just calls update() on the right table with the right values), and I never heard of. On Friday, May 22, 2015 at 11:51:00 AM UTC+2, peter wrote: I am using sqlite 3. I have a ticket booking system. Transaction.status

[web2py] return locals()

2015-05-22 Thread Annet
I have functions that return locals(), I wonder whether it is possible to limit the variables returned to those needed by the related view. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -