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
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)
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 )