Skip to content
Snippets Groups Projects
Commit e524393a authored by Magnus Giesbert's avatar Magnus Giesbert
Browse files

add ´get_pagelist´ to wikibot.py

parent 1c46cd8a
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,12 @@ def get_time():
return proxy.dokuwiki.getTime()
def get_pagelist():
"""shortcut for dokwuki getPagelist call
Returns a list of dictionaries with keys: "id" (full pagename), "size" (number of characters of page), "rev" (timestamp of last revision), "mtime" (same as rev).
"""
return proxy.dokuwiki.getPagelist()
def strip_namespace(full_name):
"""Returns the pure pagename without namespace.
If a namespace withoput pagename is given like "n1:n2:" then the last namespace is returned .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment