Exemplo n.º 1
0
class EventGroupPermission(ExtendedLogingInformations):

  def __init__(self):
    ExtendedLogingInformations.__init__(self)
    self.group = None
    self.permissions = EventPermissions('0')

  def to_dict(self, complete=True, inflated=False):
    return {'identifier': self.convert_value(self.identifier),
            'permissions': self.permissions.to_dict(),
            'group': self.group.to_dict(False, False)}

  def populate(self, json):
    self.identifier = json.get('identifier', None)
    self.permissions = EventPermissions('0')
    self.permissions.populate(json.get('permissions', None))
    self.group = Group()
    self.group.populate(json.get('group', None))
Exemplo n.º 2
0
 def populate(self, json):
   self.identifier = json.get('identifier', None)
   self.permissions = EventPermissions('0')
   self.permissions.populate(json.get('permissions', None))
   self.group = Group()
   self.group.populate(json.get('group', None))
Exemplo n.º 3
0
 def __init__(self):
   ExtendedLogingInformations.__init__(self)
   self.group = None
   self.permissions = EventPermissions('0')