Directory node object. More...
Public Member Functions | |
def | __init__ |
def | context |
def | is_directory |
def | reparse |
def | unbind |
Private Member Functions | |
def | _parse_context |
def | _process_binding |
Private Attributes | |
_context |
Directory node object.
Node representing a naming context on a name server. Name servers contain contexts (including the root context) and objects. For us, contexts are directories and objects are managers and components. A directory context may specialise as a name server context, in which case it represents the root context of a name server.
Definition at line 41 of file directory.py.
def rtctree.directory.Directory.__init__ | ( | self, | |
name = None , |
|||
parent = None , |
|||
children = None , |
|||
filter = [] , |
|||
args, | |||
kwargs | |||
) |
Constructor. Calls the TreeNode constructor.
Reimplemented in rtctree.nameserver.NameServer.
Definition at line 50 of file directory.py.
def rtctree.directory.Directory._parse_context | ( | self, | |
context, | |||
orb, | |||
filter = [] |
|||
) | [private] |
Definition at line 102 of file directory.py.
def rtctree.directory.Directory._process_binding | ( | self, | |
binding, | |||
orb, | |||
filter | |||
) | [private] |
Definition at line 123 of file directory.py.
def rtctree.directory.Directory.context | ( | self | ) |
The object representing this naming context.
Definition at line 92 of file directory.py.
def rtctree.directory.Directory.is_directory | ( | self | ) |
Is this node a directory?
Reimplemented from rtctree.node.TreeNode.
Definition at line 98 of file directory.py.
def rtctree.directory.Directory.reparse | ( | self | ) |
Reparse all children of this directory. This effectively rebuilds the tree below this node. This operation takes an unbounded time to complete; if there are a lot of objects registered below this directory's context, they will all need to be parsed.
Definition at line 56 of file directory.py.
def rtctree.directory.Directory.unbind | ( | self, | |
name | |||
) |
Unbind an object from the context represented by this directory. Warning: this is a dangerous operation. You may unlink an entire section of the tree and be unable to recover it. Be careful what you unbind. The name should be in the format used in paths. For example, 'manager.mgr' or 'ConsoleIn0.rtc'.
Definition at line 69 of file directory.py.
rtctree::directory.Directory::_context [private] |
Definition at line 102 of file directory.py.