missingnotice: Implement format_row()
With this method, the links to redundance discussions and articles missining notice are concatenated and formated Issue #64 (#64)
This commit is contained in:
@@ -98,6 +98,23 @@ ON `cl_from` = `page_id`
|
||||
|
||||
return links
|
||||
|
||||
def format_row( self, links ):
|
||||
"""
|
||||
Formats row for output on wikipage
|
||||
|
||||
@param links Tuple of disc link and list of articles as returned by
|
||||
self.treat_open_redfam()
|
||||
@type links ( str, list(str*) )
|
||||
|
||||
@returns Formatet row text to add to page_content
|
||||
@rtype str
|
||||
"""
|
||||
|
||||
return jogobot.config["red.missingnotice"]["row_format"].format(
|
||||
disc=links[0],
|
||||
links=jogobot.config["red.missingnotice"]["link_sep"].join(
|
||||
links[1] ) )
|
||||
|
||||
@classmethod
|
||||
def get_categorized_articles( cls ):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user