Esempio n. 1
0
 def check_setattr(self, object, name):
     'See IChecker'
     try:
         Checker.check_setattr(self, object, name)
     except ForbiddenAttribute:
         self._checker2.check_setattr(object, name)
     except Unauthorized as unauthorized_exception:
         try: self._checker2.check_setattr(object, name)
         except ForbiddenAttribute:
             raise unauthorized_exception
Esempio n. 2
0
 def check_setattr(self, object, name):
     'See IChecker'
     try:
         Checker.check_setattr(self, object, name)
     except ForbiddenAttribute:
         self._checker2.check_setattr(object, name)
     except Unauthorized as unauthorized_exception:
         try:
             self._checker2.check_setattr(object, name)
         except ForbiddenAttribute:
             raise unauthorized_exception