Ejemplo n.º 1
0
 def _checkProtection(self):
     RHCategModifBase._checkProtection(self)
     # This is already covered by CategModifBase, but if we ever add more
     # checks to can_manage_attachments we are on the safe side...
     if not can_manage_attachments(self.object, session.user):
         raise Forbidden
Ejemplo n.º 2
0
 def _checkProtection(self):
     RHCategModifBase._checkProtection(self)
     # This is already covered by CategModifBase, but if we ever add more
     # checks to can_manage_attachments we are on the safe side...
     if not can_manage_attachments(self.object, session.user):
         raise Forbidden
Ejemplo n.º 3
0
 def _checkParams(self, params):
     RHCategModifBase._checkParams(self, params)
     self.object_type = 'category'
     self.object = self.base_object = self._target
Ejemplo n.º 4
0
 def _checkParams(self, params):
     RHCategModifBase._checkParams(self, params)
     self.object_type = 'category'
     self.object = self.base_object = self._target