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))
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))
def __init__(self): ExtendedLogingInformations.__init__(self) self.group = None self.permissions = EventPermissions('0')