Question one:
This is in controller:
vars=dict(Alex=99)
This is in view:
<br>Alex = {{ =response.get_vars.Alex}} <br>
error is: 'NoneType' object has no attribute 'Alex'. I assume this is not
the way to get a var to show up in view. What is correct syntax?
Question two:
bAlex var is in controller below:
db.Suggestion.suggestionTitle.represent = lambda v, r: A(v, _href=URL(
'view_specific_suggestion', args=r.id, vars=dict(bAlex=77)))
This is in view:
vars = {{=request.vars}}<br>
<br>bAlex = {{request.vars.bAlex}}<br>
This is results of view:
vars = <Storage {'bAlex': '77'}>
bAlex =
why is request.vars.bAlex above blank?
The resulting html address is correct
view_specific_suggestion?bAlex=77
thanks for the syntax assistance,
Alex Glaros
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.