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

Class StandinClass

source code

object --+
         |
        StandinClass

Simple Function Object allowing to embed the name of the type as well as the metaclass object supposed to create the actual class. It mus be able to completely create the given class.

Note: Use it at placeholder for classes that are to be created on first call, without vasting large amounts of memory if one wants to precreate them.

Instance Methods [hide private]
 
__init__(self, classname, classcreator=type)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
createCls(self)
Create the class of type self.clsname using our classcreator - can only be called once !
source code
 
__call__(self, *args, **kwargs) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, classname, classcreator=type)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

createCls(self)

source code 

Create the class of type self.clsname using our classcreator - can only be called once !

:return : the newly created class