Пример #1
0
 def delprincipal(self):
     options = self.options
     self.cookies.append(
         HTTPCookie.delete(
             options["AUTH_COOKIE"],
             path=self.request.root_path + options["AUTH_COOKIE_PATH"],
             domain=options["AUTH_COOKIE_DOMAIN"],
             options=options,
         )
     )
     self.__principal = None
Пример #2
0
 def delresubmission(self):
     options = self.options
     self.__resubmission = None
     name = options["RESUBMISSION_NAME"]
     self.cookies = list(filter(lambda c: c.name != name, self.cookies))
     self.cookies.append(HTTPCookie.delete(name, path=self.request.root_path, options=options))
Пример #3
0
 def delxsrf_token(self):
     options = self.options
     self.__xsrf_token = None
     self.cookies.append(HTTPCookie.delete(options["XSRF_NAME"], path=self.request.root_path, options=options))