>
> @auth.requires_login()#membership('managers')->this gives an errors bout q 
> not being defined in view_searches
> defnotes():
>     dbhealth.health.id.readable = False
>     g = SQLFORM.grid(dbhealth.health, searchable=True, csv=False, 
> user_signature=True, )
>     return dict(form = g)
> @auth.requires_login()
> def upd_healthinsure():
>     id,column = request.post_vars.id.split('.')
>     value = request.post_vars.value
>     dbhealth(dbwellness.health.id == id).update(**{column:value})
>     return value
>
>     ....more code
>
> name3 = 'testing string 123'
> db.answers.insert(quest=name3)
>     replies = db(db.answers.author == auth.user.id
> ).select(db.answers.ALL)[-5:-1]
>     question = db(db.answers.author == auth.user.id
> ).select(orderby=~db.answers.created_on,limitby=(2,0))
>     return dict(form=form, question=question, replies=replies)
>

This still isn't the relevant code. The decorated function is notes(), but 
some other function (which you have not shown the name of) returns the 
"question" variable.

Please show the action (i.e., function) that is resulting in the error 
along with the view of that action and the full traceback.

Also, please use the code formatting feature provided by Google Groups.

Anthony

-- 
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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to