def __init__( self, title ): Item.__init__( self, Config.getInstance().basepath + os.sep + 'categories.txt', title, Config.getInstance().page_ext ) self.title = title self.items = [] self.children = [] self.template = TemplateManager.getInstance().get('category.tpl') self.sorted = False
def __init__(self, title): Item.__init__(self, Config.getInstance().basepath + os.sep + 'tags', title, Config.getInstance().page_ext) self.title = title self.items = [] self.template = TemplateManager.getInstance().get('tag.tpl') self.sorted = False
def __init__(self, title): Item.__init__( self, Config.getInstance().basepath + os.sep + 'categories.txt', title, Config.getInstance().page_ext) self.title = title self.items = [] self.children = [] self.template = TemplateManager.getInstance().get('category.tpl') self.sorted = False
def __init__( self, title, template = None ): Item.__init__( self, Config.getInstance().basepath, title, Config.getInstance().page_ext ) self.datetime = None self.author = None self.categories = [] self.tags = [] self.abstract = "" self.content = "" self.static = False self.template = TemplateManager.getInstance().get( 'post.tpl' if template is None else template )
def __init__( self, username ): Item.__init__( self, Config.getInstance().basepath + os.sep + 'members', username, Config.getInstance().page_ext ) self.username = username self.items = [] self.avatar = "" self.email = "" self.website = "" self.abstract = "" self.content = "" self.template = TemplateManager.getInstance().get('author.tpl') self.sorted = False
def __init__(self, title, template=None): Item.__init__(self, Config.getInstance().basepath, title, Config.getInstance().page_ext) self.datetime = None self.author = None self.categories = [] self.tags = [] self.abstract = "" self.content = "" self.static = False self.template = TemplateManager.getInstance().get( 'post.tpl' if template is None else template)
def __init__(self, username): Item.__init__(self, Config.getInstance().basepath + os.sep + 'members', username, Config.getInstance().page_ext) self.username = username self.items = [] self.avatar = "" self.email = "" self.website = "" self.abstract = "" self.content = "" self.template = TemplateManager.getInstance().get('author.tpl') self.sorted = False
def __init__( self, title ): Item.__init__( self, Config.getInstance().basepath + os.sep + 'tags', title, Config.getInstance().page_ext ) self.title = title self.items = [] self.template = TemplateManager.getInstance().get('tag.tpl') self.sorted = False