Package orm2 :: Package ui :: Package ORMMode :: Class mode
[hide private]
[frames] | no frames]

Class mode

source code

object --+

Baseclass for orm modes. A class that inherits from mode behaves just like a function whoes parts may be overwritten. When instantiated a mode class will not return an instance of itselt, but the result of an instance's __call__ method. Example
>>> from orm.ui.modes import mode
>>> class test(mode):
...     def __call__(self, para):
...             return para * 2
>>> x = test(5)
>>> x

Instance Methods [hide private]
  __new__(cls, *args, **kw)

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, *args, **kw)

source code 
a new object with type S, a subtype of T

Overrides: object.__new__
(inherited documentation)