I have this..
-----
@auth.requires_login():
def profile():
tags = db().select(db.tag.ALL,orderby=db.tag.name)
tagForm = SQLFORM(db.tag, _class="jNice")
userForm = SQLFORM(db.users)
if tagForm.accepts(request.vars):
response.flash='Tag Added!'
else tagForm.errors: response.flash='Hmm... Something is wrong
here...'
if userForm.accepts(request.vars):
response.flash='User Added!'
else userForm.errors: response.flash='Hmm... Something is wrong
here...'
return dict(form=tagForm, tags = tags, userForm = userForm,
today=today)
--------
In my eyes that is exactly what has been told for me to do from here:
http://mdp.cti.depaul.edu/examples/default/tools#authorization
But seem to be stuck at "invalid syntax"
Everything in my little python mind is telling me to indent after a :
but it's not that way in the example. What am I doing wrong here?
Thanks guys,
Jason Brower
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---