Hi,

I'm not sure if it is a cut and paste problem or not, but the above
code isn't valid.  There should be indentation after your "for key,
item ..." loop.

Aside from that, I don't see much else wrong, although it could be
simplified a bit:

@turbogears.expose():
def loginout(self):
    if cherrypy.request.simpleCookie.has_key('name'):
        cherrypy.response.simpleCookie['name']['expires']=0
        # set flash and redirect...
    else:
        turbogears.flash("you are not login!")
        # redirect...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to