예제 #1
0
    def post_logout(self, came_from=lurl('/'), *args, **kw):
        """
        Redirect the user to the initially requested page on logout and say
        goodbye as well.

        """
        #flash(_('We hope to see you soon!'))
        ManageSession.deleteAll();
        
        return HTTPFound(location=came_from)
예제 #2
0
 def index(self, came_from=lurl('/')):
     
     #print request.scheme   + '://';
     #hooks.notify('tgext.pylogservice.startup' ) 
     #hooks.notify('tgext.pyutilservice.startup')
     
     if not request.identity:
         ManageSession.deleteAll()
         
     if ManageSession.getLanguage() is None:
         ManageSession.setLanguage()
         
     print 'Session Language : %s' %(ManageSession.getLanguage())
     
     
     
     
     return dict(page='metronic')