Package libxyz :: Package vfs :: Module dispatcher :: Class VFSDispatcher |
[hide private]
[frames] | no frames]

# Class VFSDispatcher

source code

    object --+
             |
            VFSDispatcher

Instance Methods | [hide private]
__init__(self, xyz) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
register(self, prefix, vfs_obj_class) Register new VFS handler | source code
dispatch(self, path, enc=None, **kwargs) Dispatch provided path to corresponding VFS object handler | source code
set_cache(self, path, data) Save some data for VFS object This data dict is appended to VFSObject's kwargs dict every time dispatch() is called | source code
get_cache(self, path) Return saved cache for the object or {} if none was saved | source code
clear_cache(self, path) Clear cache for given path | source code
_parse_path(self, path) | source code
get_parent(self, path, enc) | source code
get_full_path(self, path, vfs, parent) Return full path | source code
get_ext_path(self, parent, vfs) Return external path | 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, prefix, vfs_obj_class) | source code
Register new VFS handler Parameters: `prefix` - Patch prefix `vfs_obj_class` - VFSObject derived class