def __init__(self, themeName, priority=0, directoryName=None):
        """
        Create a theme based off of a directory full of XHTML templates.

        @param themeName: sets my themeName

        @param priority: an integer that affects the ordering of themes
        returned from L{getAllThemes}.

        @param directoryName: If None, calculates the directory name based on
        the module the class is defined in and the given theme name.  For a
        subclass C{bar.baz.FooTheme} defined in C{bar/baz.py} the instance
        C{FooTheme('qux')}, regardless of where it is created, will have a
        default directoryName of {bar/themes/qux/}.
        """

        self.themeName = themeName
        self.priority = priority
        self.cachedLoaders = {}
        if directoryName is None:
            self.directory = FilePath(
                sibpath(sys.modules[self.__class__.__module__].__file__,
                        'themes') + '/' + self.themeName)
        else:
            self.directory = FilePath(directoryName)
        self.directoryName = self.directory.path
def __init__ ( self , themeName , priority = 0 , directoryName = None ) : self . themeName = themeName self . priority = priority self . cachedLoaders = { } if directoryName is None : self . directory = FilePath ( sibpath ( sys . modules [ self . __class__ . __module__ ] . __file__ , 'themes' ) + '/' + self . themeName ) else : self . directory = FilePath ( directoryName ) self . directoryName = self . directory . path
Create a theme based off of a directory full of XHTML templates.

        @param themeName: sets my themeName

        @param priority: an integer that affects the ordering of themes
        returned from L{getAllThemes}.

        @param directoryName: If None, calculates the directory name based on
        the module the class is defined in and the given theme name.  For a
        subclass C{bar.baz.FooTheme} defined in C{bar/baz.py} the instance
        C{FooTheme('qux')}, regardless of where it is created, will have a
        default directoryName of {bar/themes/qux/}.