[web2py] What is the problem with mu code

2016-11-13 Thread Joe Lwe
def add_user_memberhip(): if auth.settings.register_onaccept==True: group_id = request.vars.account_type user_id = request.vars.username auth.add_membership(group_id,user_id) response.flash="You have been added to"+group_id else: response.flash='An E

Re: [web2py] scheduling multiple tasks

2016-11-13 Thread Nico de Groot
Hai Dave, I ran your code and checked the field 'traceback' in the table 'scheduler_run' for the failing task. I found: Traceback (most recent call last): > File "/Users/ncdegroot/web2py/gluon/scheduler.py", line 315, in executor > result = dumps(_function(*args, **vars)) > File "applicat

[web2py] scheduling multiple tasks

2016-11-13 Thread Nico de Groot
Correction: Hi Vid, -- 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 Groups "web2py-us

[web2py] rendering custom dict to xml, csv, and py

2016-11-13 Thread lucas
hey one and all, i'm reading chapter 10 in the book and it doesn't make sense and i don't know how to structure my code to fit the framework. it is confusing. so how about, if i explain what i'm trying to do and you'll tell me if i'm crazy or direct me to a direction. i have a form that allow

[web2py] Equivalent of request.args(...) for request.vars(...)

2016-11-13 Thread Brendan Barnwell
The request.args object has a handy callable interface that allows specification of default value, type to coerce to, etc. As far as I can tell, the request.vars object has no such interface. Is this right? Why is this? What can I do if I want to access various vars that may or may not be p

[web2py] Re: SQLFORM grid search : Get ids of filtered records

2016-11-13 Thread Anthony Smith
Hi Anthony, I thought I would try this, but getting the following error: (global name 'selected_true_callback' is not defined) It would be great if you could explain what I am doing wrong thanks Anthony On Thursday, 27 October 2016 03:20:30 UTC+11, Anthony wrote: > > Note, the "searchable" ar