Ejemplo n.º 1
0
 def __init__(self, blog, cachename, reverse=False, objtype=None, sep=' ', encoding='utf-8'):
     BlogObject.__init__(self, blog)
     self.cachename = cachename
     self.reverse = reverse
     self.objtype = objtype
     self.sep = sep
     self.encoding = encoding
Ejemplo n.º 2
0
 def __init__(self,
              blog,
              cachename,
              reverse=False,
              objtype=None,
              sep=' ',
              encoding='utf-8'):
     BlogObject.__init__(self, blog)
     self.cachename = cachename
     self.reverse = reverse
     self.objtype = objtype
     self.sep = sep
     self.encoding = encoding
Ejemplo n.º 3
0
 def __init__(self, blog, format, alpha):
     BlogObject.__init__(self, blog)
     self.source = self.entries = None
     self.format = format
     self.alpha = alpha
     self.urlpath = "/index-{0}.{1}".format(
         "key" if alpha is None else "alpha" if alpha else "chrono", format)
     self.heading = self.link_index_heading_template.format(
         label=(self.link_index_heading_key if alpha is None else self.
                link_index_heading_alpha if alpha else self.
                link_index_heading_chrono))
     self.title = self.link_index_title_template.format(
         heading=self.heading)
Ejemplo n.º 4
0
 def __init__(self, blog, format, alpha):
     BlogObject.__init__(self, blog)
     self.source = self.entries = None
     self.format = format
     self.alpha = alpha
     self.urlpath = "/index-{0}.{1}".format(
         "key" if alpha is None else "alpha" if alpha else "chrono",
         format
     )
     self.heading = self.link_index_heading_template.format(
         label=(
             self.link_index_heading_key if alpha is None
             else self.link_index_heading_alpha if alpha
             else self.link_index_heading_chrono
         )
     )
     self.title = self.link_index_title_template.format(
         heading=self.heading
     )