[web2py] Re: add items in navbar ul.. mode=dropdown

2015-05-24 Thread Neeraj Shukla
Thanks Anthony... On Sunday, 24 May 2015 03:16:00 UTC+5:30, Anthony wrote: Your code is incorrect. Instead of inserting the full navbar object, you apply a string of methods to it and insert the return value of the final method (which is None). As in the original code example, you must

[web2py] Re: return locals()

2015-05-24 Thread Anthony
It's still not quite clear what you want to do. Variables defined in models will be available in all views, regardless of what the action returns. Variables defined in controllers outside of functions will not be available in any views (unless explicitly returned by a controller function).

[web2py] widget=SQLFORM.widgets.options.widget

2015-05-24 Thread Annet
I have a field definition containing: widget=SQLFORM.widgets.options.widget When I submit a form containing this widget and the form contains an error the select is rendered ugly. To solve the issue I added the following line of code in elif form.errors:

[web2py] Re: great system login

2015-05-24 Thread villas
This looks like an excellent project. Replace Janrain? -- 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

[web2py] list:reference with SQLFORM.grid

2015-05-24 Thread villas
Hi All, Can someone see what the problem is please? db.define_table('tag', Field('name')) db.define_table('test',Field('name'),Field('tags','list:reference tag')) def test(): grid = SQLFORM.grid(db.test, user_signature = False) return dict(grid=grid) Navigate to function

[web2py] Re: list:reference with SQLFORM.grid

2015-05-24 Thread Mark Graves
I seem to be having the same problem. On Sunday, May 24, 2015 at 6:58:26 PM UTC-5, villas wrote: Hi All, Can someone see what the problem is please? db.define_table('tag', Field('name')) db.define_table('test',Field('name'),Field('tags','list:reference tag')) def test():

[web2py] Re: return locals()

2015-05-24 Thread Annet
Thank you all for your replies. 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? The usual returning of a dictionary works. To limit the number of views I designed an outer_layout and inner_layout and tried to keep the

[web2py] username and request_reset_password

2015-05-24 Thread Annet
I am using the default user function and view and set username=True. When I execute request_reset_password and enter the username, an e-mail is being send and the Reset Password key field in auth_user gets a value. When I click the link in the e-mail