diff --git a/wikibot.py b/wikibot.py index 06308c737ecb5c2211b1a1c06383e971c38aeff0..4365402decab293c046a8ebf59941fb216ff6c5b 100644 --- a/wikibot.py +++ b/wikibot.py @@ -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 .