Source

muyhomepage2 / muyhomepage2 / app / configuration.py

Full commit

from muyhomepage2.pagehandlers.standard import StandardHandler


DEFAULT_HANDLERS = {
    'standard': StandardHandler,
    'blog': StandardHandler,
    'tagsummary': StandardHandler,
    'tagglobal': StandardHandler,
    'software': StandardHandler,
    'atom': StandardHandler,
    'rss2': StandardHandler,
    }


class Config(object):

    def __init__(self):
        pass

    def root(self):
        return '.'

    def destination(self):
        return '/home/john/www/cruft/'

    def page_cache(self):
        return '/tmp/garbage/.pcache'

    def tag_cache(self):
        return '/tmp/garbage/.tcache'

    def handlers(self):
        """Return the handlers registry
        """
        return dict(DEFAULT_HANDLERS)

    def defaulthandler(self):
        return StandardHandler
    
    def always_rebuild(self):
        return []