def protect(self):
     authenticator = getMultiAdapter((self.context, self.request),
                                     name='authenticator')
     if not authenticator.verify():
         raise Unauthorized
     checkpost(self.request)
Beispiel #2
0
 def protect(self):
     authenticator = getMultiAdapter((self.context, self.request),
                                     name='authenticator')
     if not authenticator.verify():
         raise Unauthorized
     checkpost(self.request)