Package Products :: Package ZenUtils :: Module Skins |
[hide private]
[frames] | no frames]

# Module Skins

source code

Functions | [hide private]
findZenPackRoot(base) Search upwards for the root of a ZenPack. | source code
skinDirs(base) | source code
registerSkin(self, base, positionAfter='custom') setup the skins in a product | source code
unregisterSkin(self, base, positionAfter='custom') setup the skins in a product | source code

Function Details | [hide private]

### findZenPackRoot(base) | source code
Search upwards for the root of a ZenPack.
    >>> import os, tempfile; root = os.path.realpath(tempfile.mkdtemp())
    >>> skindir = os.path.join(root, 'ZenPacks/ZenPacks.zenoss.NotAPack-1.2.3-py2.6.egg/ZenPacks/zenoss/NotAPack/skins')
    >>> os.makedirs(skindir)
    >>> findZenPackRoot(skindir).replace(root, '/opt/zenoss')
    '/opt/zenoss/ZenPacks/ZenPacks.zenoss.NotAPack'