http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10940
Revision: 10940
Author: drtrigon
Date: 2013-01-16 17:38:19 +0000 (Wed, 16 Jan 2013)
Log Message:
-----------
bug fix; enable to get the 'live' (!) version by dropping the cache
(this might be not a proper solution to this problem...)
Modified Paths:
--------------
branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py
===================================================================
--- branches/rewrite/pywikibot/site.py 2013-01-16 15:48:29 UTC (rev 10939)
+++ branches/rewrite/pywikibot/site.py 2013-01-16 17:38:19 UTC (rev 10940)
@@ -1109,7 +1109,10 @@
version numbers and any other text contained in the version.
"""
+ exp = config.API_config_expiry # expire immediately to get
+ config.API_config_expiry = 0 # 'live' (!) version data
versionstring = self.siteinfo['generator']
+ config.API_config_expiry = exp
m = re.match(r"^MediaWiki ([0-9]+)\.([0-9]+)(.*)$", versionstring)
if m:
return (int(m.group(1)), int(m.group(2)), m.group(3))
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10937
Revision: 10937
Author: huji
Date: 2013-01-16 15:37:12 +0000 (Wed, 16 Jan 2013)
Log Message:
-----------
Adding localize comma message (comma-separator), its description, and its fa translation
Modified Paths:
--------------
branches/rewrite/scripts/i18n/pywikibot.py
Modified: branches/rewrite/scripts/i18n/pywikibot.py
===================================================================
--- branches/rewrite/scripts/i18n/pywikibot.py 2013-01-16 15:12:32 UTC (rev 10936)
+++ branches/rewrite/scripts/i18n/pywikibot.py 2013-01-16 15:37:12 UTC (rev 10937)
@@ -8,6 +8,7 @@
'pywikibot-enter-new-text': u'Please enter the new text:',
'pywikibot-enter-page-processing': u'Which page should be processed?',
'pywikibot-enter-xml-filename': u'Please enter the XML dump\'s filename:',
+ 'comma-separator': ', ',
},
# Author: Als-Holder
# Author: TTMTT
@@ -19,6 +20,7 @@
'pywikibot-enter-new-text': u'Message displayed to the bot owner to enter the new text.',
'pywikibot-enter-category-name': u'Message displayed to the bot owner to enter the category name.',
'pywikibot-enter-finished-browser': u'Message displayed to the bot owner to press Enter button when browser edits are finished.',
+ 'comma-separator': 'Localized comma character with a trailing space',
},
# Author: TTMTT
# Author: Zanatos
@@ -190,6 +192,7 @@
'pywikibot-enter-new-text': u'لطفاً متن جدید را وارد کنید:',
'pywikibot-enter-category-name': u'لطفاً نام رده را وارد کنید:',
'pywikibot-enter-finished-browser': u'هنگامی که در مرورگر پایان یافت دکمهٔ اینتر را بفشارید.',
+ 'comma-separator': '، ',
},
# Author: Nedergard
# Author: VezonThunder