twisted :: protocols :: amp :: CommandLocator :: __metaclass__ :: Class __metaclass__
[hide private]
[frames] | no frames]

Type __metaclass__

object --+    
         |    
      type --+
             |
            CommandLocator.__metaclass__

This metaclass keeps track of all of the Command.responder-decorated methods defined since the last CommandLocator subclass was defined. It assumes (usually correctly, but unfortunately not necessarily so) that those commands responders were all declared as methods of the class being defined. Note that this list can be incorrect if users use the Command.responder decorator outside the context of a CommandLocator class declaration.

Command responders defined on subclasses are given precedence over those inherited from a base class.

The Command.responder decorator explicitly cooperates with this metaclass.

Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, name, bases, attrs)

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

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

Class Variables [hide private]
  _currentClassCommands = []
Properties [hide private]

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

Inherited from object: __class__

Method Details [hide private]

__new__(cls, name, bases, attrs)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)