RADContainer Python Class
RADContainer
contains live RAD instances. RADContainer includes the following methods:
-
insert(self, inst)
-
Adds instance into the container. This API is rarely used directly and typically called by Subclass-of-RADInstance
.__init__(self, name, user, freef, dynamic)
when name is not None and dynamic == False. -
insert_singleton(self, radinstsubcls, name)
-
Creates a new
RADInstance
subclass instance and insert it to container under name name. -
remove(self, inst)
-
Removes instance inst from the container.
-
register(self, klass, listf, lookupf, user)
-
Registers
RADInstance
subclass klass for dynamic listing and looking up. -
find_instance(self, name)
-
Finds instance by name name.
-
list(self, pat)
-
Gets a list of instance RAD names matching pattern pat.