adding &templates param for Special:Export, useful when other software use getXML() function to export wiki pages, e.g.: WikiEvidens

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@610 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
pull/117/head
emijrp 12 years ago
parent 7d487e71ca
commit c73a535ea7

@ -313,6 +313,8 @@ def getXMLPage(config={}, title='', verbose=True):
else:
params['offset'] = '1' # 1 always < 2000s
params['limit'] = limit
if config.has_key('templates') and config['templates']: #in other case, do not set params['templates']
params['templates'] = 1
xml = getXMLPageCore(headers=headers, params=params, config=config)
@ -1026,4 +1028,4 @@ def main(params=[]):
bye()
if __name__ == "__main__":
main()
main()

Loading…
Cancel
Save