def __init__(self, parent, code, name, params, contents): Rules.__init__(self, parent=parent, code=code, contents=contents) self.__name = name self.__params = list() for param in params: param = Param(code=param["code"], name=param["name"], value=param["value"], parent=self) self.__params.append(param)
def __init__(self, parent, code, name, params, contents): Rules.__init__(self, parent=parent, code=code, contents=contents) self.__name = name self.__params = list() for param in params: param = Param(code=param['code'], name=param['name'], value=param['value'], parent=self) self.__params.append(param)
def __init__(self, parent, code, names=None, contents=None): Rules.__init__(self, parent=parent, code=code, contents=contents) self.__names = names
def __init__(self, parent, code, media, contents=None): Rules.__init__(self, parent=parent, code=code, contents=contents) self.__media = media