Package solvcon :: Module hook :: Class HookList
[hide private]
[frames] | no frames]

Class HookList

source code


Hook container and invoker.

Instance Methods [hide private]
new empty list
__init__(self, cse, *args, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
append(self, obj, **kw)
The object to be appended (the first and only argument) should be a Hook object, but this method actually accept either a Hook type or an Anchor type.
source code
 
__call__(self, method)
Invoke the specified method for each hook object.
source code
 
drop_anchor(self, svr) source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Instance Variables [hide private]
  cse
case object.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cse, *args, **kw)
(Constructor)

source code 

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

Returns: new empty list
Overrides: object.__init__
(inherited documentation)

append(self, obj, **kw)

source code 

The object to be appended (the first and only argument) should be a Hook object, but this method actually accept either a Hook type or an Anchor type. The method will automatically create the necessary Hook object when detect acceptable type object passed as the first argument.

All the keywords go to the creation of the Hook object if the first argument is a type. If the first argument is an instantiated Hook object, the method accepts no keywords.

Parameters:
  • obj (solvcon.hook.Hook) - the hook object to be appended.
Overrides: list.append

__call__(self, method)
(Call operator)

source code 

Invoke the specified method for each hook object.

Parameters:
  • method (str) - name of the method to run.