Module virtualbuildarea :: Class VirtualDir |
[hide private]
[frames] | no frames]

# Class VirtualDir

source code

          object --+
                   |
    ccm.FourPartName --+
                       |
           ccm.CCMObject --+
                           |
                     ccm.Dir --+
                               |
                              VirtualDir

Fake directory object. The four parts name will be: <dirname>-1:dir:fakedb#1

Instance Methods | [hide private]
__init__(self, session, name, project) Create a FourPartName object based on a ifpn string. | source code
addChild(self, o, project) Add an object to the directory. | source code
getDirNamed(self, name) Look for a subdirectory named in its children. | source code
children(self, project) Returns a copy of the children list. | source code
virtualproject(self) Return the associated virtual project. | source code
Inherited from `ccm.CCMObject`: `__getitem__`, `__setitem__`, `create_attribute`, `exists`, `finduse`, `is_predecessor_of`, `is_recursive_predecessor_of`, `is_recursive_predecessor_of_fast`, `is_recursive_successor_of_fast`, `is_recursive_sucessor_of`, `keys`, `predecessors`, `relate`, `session`, `successors` Inherited from `ccm.CCMObject` (private): `_getsession` Inherited from `ccm.FourPartName`: `__eq__`, `__ne__`, `__repr__`, `__str__`, `family`, `instance`, `is_same_family`, `name`, `objectname`, `type`, `version` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Static Methods | [hide private]
Inherited from `ccm.FourPartName`: `convert`, `is_valid`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, session, name, project) (Constructor) | source code
Create a FourPartName object based on a ifpn string. The string have to match the following patterns: - name-version:type:instance - name:version:releasedef:instance - Task database#id - Folder database#id Anything else is considered as old release string format. Overrides: ccm.Dir.__init__

### getDirNamed(self, name) | source code
Look for a subdirectory named in its children. The test is done in a case insensitive way.

### children(self, project) | source code
Returns a copy of the children list. Overrides: ccm.Dir.children