no ":" at the end of the decorator. Massimo
On Apr 19, 12:37 pm, AchipA <attila.cs...@gmail.com> wrote: > IIRC decorators are just function *names*, loose (): > > On Apr 19, 1:13 pm, Jason Brower <encomp...@gmail.com> wrote: > > > 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 web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---