Package libxyz :: Package core :: Module actionmanager :: Class ActionManager |
[hide private]
[frames] | no frames]

# Class ActionManager

source code

    object --+
             |
            ActionManager

Action rules handler

Instance Methods | [hide private]
__init__(self, xyz) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
register(self, rule, fn) Register function to be run upon matching rule | source code
match(self, vfsobj) Loop through registered actions and return action assosiated with the first matched rule. | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, xyz) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)

### register(self, rule, fn) | source code
Register function to be run upon matching rule Parameters: `rule` - String FS rule `fn` - Action function. Function receives matched VFS object as its only argument.

### match(self, vfsobj) | source code
Loop through registered actions and return action assosiated with the first matched rule. If no rule matched return None