Hello all,
I'm a new guy whit web2py, I have some problem when I Learn web2py!
my controller code:
def basic():
response.menu[['civilized',False,URL(r=request,f='civilized')],
['slick',False,URL(r=request,f='slick')],
['basic',True,URL(r=request,f='basic')]]
response.flash='Now, you clicked base!!!'
return dict(message='Now,you clicked on base!!')
my Views:
{{extend 'layout.html'}}
<h1> {{ =message}}</h1>
<p>{{for i in range(10):}} it is a test {{pass}} </p>
I seem very well,
but I got some errors when I run it:
File
"/home/leo/workspace/web2py/applications/exercise/controllers/layout_examples.py"
<http://127.0.0.1:8000/admin/default/edit/exercise/controllers/layout_examples.py>,
line 25, in basic
['basic',True,URL(r=request,f='basic')]]
TypeError: 'NoneType' object is unsubscriptable
Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---