Package mrv :: Package maya :: Module util :: Class MetaClassCreator
[hide private]
[frames] | no frames]

Type MetaClassCreator

source code

object --+    
         |    
      type --+
             |
            MetaClassCreator

Builds the base hierarchy for the given classname based on our typetree
Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(dagtree, module, metacls, name, bases, clsdict, nameToTreeFunc=uncapitalize, treeToNameFunc=capitalize)
Create a new class from hierarchy information found in dagtree and put it into the module if it not yet exists
source code

Inherited from type: __call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __le__, __lt__, __ne__, __repr__, __setattr__, __subclasses__, mro

Inherited from object: __format__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from type: __abstractmethods__, __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __instancecheck__, __itemsize__, __mro__, __name__, __subclasscheck__, __weakrefoffset__

Inherited from object: __class__

Method Details [hide private]

__new__(dagtree, module, metacls, name, bases, clsdict, nameToTreeFunc=uncapitalize, treeToNameFunc=capitalize)

source code 
Create a new class from hierarchy information found in dagtree and put it into the module if it not yet exists
Parameters:
  • dagtree - mrv.util.DAGTree instance with hierarchy information
  • module - the module instance to which to add the new classes to
  • nameToTreeFunc - convert the class name to a name suitable for dagTree look-up
  • treeToNameFunc - convert a value from the dag tree into a valid class name ( used for parent lookup )
Returns: a new object with type S, a subtype of T
Overrides: object.__new__