Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 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
Exemple #4
0
 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 )
Exemple #5
0
 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
Exemple #6
0
 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)
Exemple #7
0
 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
Exemple #8
0
 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