app/soc/logic/models/role.py
changeset 1956 1fcddf90eccc
parent 1955 06ed84dbb1ed
child 1976 be994529deee
equal deleted inserted replaced
1955:06ed84dbb1ed 1956:1fcddf90eccc
    92     super(Logic, self)._onCreate(entity)
    92     super(Logic, self)._onCreate(entity)
    93 
    93 
    94   def canResign(self, entity):
    94   def canResign(self, entity):
    95     """Checks if the current entity is allowed to be resigned.
    95     """Checks if the current entity is allowed to be resigned.
    96 
    96 
       
    97     Args:
       
    98       entity: a Role entity
       
    99 
    97     Returns:
   100     Returns:
    98       - None if the entity is allowed to resign.
   101       - None if the entity is allowed to resign.
    99       - Error message otherwise.
   102       - Error message otherwise.
   100     """
   103     """
   101 
   104