Ejemplo n.º 1
0
 def zmanage_editProperties(self, REQUEST=None, redirect=False):
     """Handle our authentication mechanism
     """
     if REQUEST:
         app = self.unrestrictedTraverse('/')
         if REQUEST.get('userAuthType') == self.AUTH_TYPE_SESSION:
             activateSessionBasedAuthentication(self.zport)
             activateSessionBasedAuthentication(app) # for admin
         elif REQUEST.get('userAuthType') == self.AUTH_TYPE_COOKIE:
             activateCookieBasedAuthentication(self.zport)
             activateCookieBasedAuthentication(app) # for admin
         self._updateEmailNotifications(REQUEST)
     return super(DataRoot, self).zmanage_editProperties(REQUEST, redirect)
Ejemplo n.º 2
0
 def zmanage_editProperties(self, REQUEST=None, redirect=False):
     """Handle our authentication mechanism
     """
     if REQUEST:
         app = self.unrestrictedTraverse('/')
         if REQUEST.get('userAuthType') == self.AUTH_TYPE_SESSION:
             activateSessionBasedAuthentication(self.zport)
             activateSessionBasedAuthentication(app)  # for admin
         elif REQUEST.get('userAuthType') == self.AUTH_TYPE_COOKIE:
             activateCookieBasedAuthentication(self.zport)
             activateCookieBasedAuthentication(app)  # for admin
         self._updateEmailNotifications(REQUEST)
     return super(DataRoot, self).zmanage_editProperties(REQUEST, redirect)