def __new__( cls, *args, **kwargs ):
    """ Convention: variables local to the object is created in __new__ """

    inst = NamedObject.__new__( cls, *args, **kwargs )

    inst._name_upblk = {}
    inst._id_upblk   = {}
    inst._U_U_constraints = set() # contains ( id(func), id(func) )s

    return inst
 def __init__(self, name, menu_id, title, subtitle, html_location, supplemental_dir, description):
     NamedObject.__init__(self, name, menu_id, title, subtitle, description)
     self.__html_location = html_location
     self.__supplemental_dir = supplemental_dir
Beispiel #3
0
 def __init__(self, name, location, menu_id, title, subtitle, description):
     NamedObject.__init__(self, name, menu_id, title, subtitle, description)
     self.__location = location
Beispiel #4
0
 def __init__(self, name, menu_id, title, subtitle, description):
     NamedObject.__init__(self, name, menu_id, title, subtitle, description)
     Container.__init__(self)
     Contained.__init__(self)
     Modifyable.__init__(self)