http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10833
Revision: 10833
Author: yurik
Date: 2012-12-26 03:35:36 +0000 (Wed, 26 Dec 2012)
Log Message:
-----------
user names must be normalized to avoid repeated API calls for userinfo.
Modified Paths:
--------------
branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py
===================================================================
--- branches/rewrite/pywikibot/site.py 2012-12-25 20:32:23 UTC (rev 10832)
+++ branches/rewrite/pywikibot/site.py 2012-12-26 03:35:36 UTC (rev 10833)
@@ -143,8 +143,11 @@
raise NoSuchSite("Language %s does not exist in family %s"
% (self.__code, self.__family.name))
+ self.nocapitalize = self.code in self.family.nocapitalize
+ if not self.nocapitalize:
+ user = None if user is None else user[0].upper() + user[1:]
+ sysop = None if sysop is None else sysop[0].upper() + sysop[1:]
self._username = [user, sysop]
- self.nocapitalize = self.code in self.family.nocapitalize
# following are for use with lock_page and unlock_page methods
self._pagemutex = threading.Lock()
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10832
Revision: 10832
Author: huji
Date: 2012-12-25 20:32:23 +0000 (Tue, 25 Dec 2012)
Log Message:
-----------
(bug 3594792) do not convert English comma to Persian comma; the current exceptions are not complicated enough, analysis of bot activities shows that false positive rate is too high, therefore the feature is removed
Modified Paths:
--------------
trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py
===================================================================
--- trunk/pywikipedia/cosmetic_changes.py 2012-12-24 14:29:26 UTC (rev 10831)
+++ trunk/pywikipedia/cosmetic_changes.py 2012-12-25 20:32:23 UTC (rev 10832)
@@ -739,7 +739,6 @@
#not to let bot edits in latin content
exceptions.append(re.compile(u"[A-Za-z\d]+? *?, *?[A-Za-z\d]+?"))
exceptions.append(pattern)
- text = pywikibot.replaceExcept(text, u',', u'،', exceptions)
if self.site.lang=='ckb':
text = pywikibot.replaceExcept(text,
ur'ه([.،_<\]\s])',
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10828
Revision: 10828
Author: drtrigon
Date: 2012-12-23 20:59:00 +0000 (Sun, 23 Dec 2012)
Log Message:
-----------
bug fix; 'svn:keywords Id' set for families folder
Modified Paths:
--------------
trunk/pywikipedia/families/wikidata_family.py
Property Changed:
----------------
trunk/pywikipedia/families/anarchopedia_family.py
trunk/pywikipedia/families/battlestarwiki_family.py
trunk/pywikipedia/families/botwiki_family.py
trunk/pywikipedia/families/celtic_family.py
trunk/pywikipedia/families/commons_family.py
trunk/pywikipedia/families/fon_family.py
trunk/pywikipedia/families/gentoo_family.py
trunk/pywikipedia/families/i18n_family.py
trunk/pywikipedia/families/incubator_family.py
trunk/pywikipedia/families/krefeldwiki_family.py
trunk/pywikipedia/families/lockwiki_family.py
trunk/pywikipedia/families/loveto_family.py
trunk/pywikipedia/families/lyricwiki_family.py
trunk/pywikipedia/families/mediawiki_family.py
trunk/pywikipedia/families/memoryalpha_family.py
trunk/pywikipedia/families/meta_family.py
trunk/pywikipedia/families/mozilla_family.py
trunk/pywikipedia/families/oldwikivoyage_family.py
trunk/pywikipedia/families/omegawiki_family.py
trunk/pywikipedia/families/openttd_family.py
trunk/pywikipedia/families/osm_family.py
trunk/pywikipedia/families/piratenwiki_family.py
trunk/pywikipedia/families/southernapproach_family.py
trunk/pywikipedia/families/species_family.py
trunk/pywikipedia/families/strategy_family.py
trunk/pywikipedia/families/supertux_family.py
trunk/pywikipedia/families/test_family.py
trunk/pywikipedia/families/twcareer_family.py
trunk/pywikipedia/families/ubuntutw_family.py
trunk/pywikipedia/families/uncyclopedia_family.py
trunk/pywikipedia/families/vikidia_family.py
trunk/pywikipedia/families/wekey_family.py
trunk/pywikipedia/families/wesolve_family.py
trunk/pywikipedia/families/wikia_family.py
trunk/pywikipedia/families/wikibond_family.py
trunk/pywikipedia/families/wikibooks_family.py
trunk/pywikipedia/families/wikidata_family.py
trunk/pywikipedia/families/wikimediachapter_family.py
trunk/pywikipedia/families/wikinews_family.py
trunk/pywikipedia/families/wikipedia_family.py
trunk/pywikipedia/families/wikiquote_family.py
trunk/pywikipedia/families/wikisource_family.py
trunk/pywikipedia/families/wikitech_family.py
trunk/pywikipedia/families/wikitravel_family.py
trunk/pywikipedia/families/wikitravel_shared_family.py
trunk/pywikipedia/families/wikiversity_family.py
trunk/pywikipedia/families/wikivoyage_family.py
trunk/pywikipedia/families/wiktionary_family.py
Property changes on: trunk/pywikipedia/families/anarchopedia_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/battlestarwiki_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/botwiki_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/celtic_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/commons_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/fon_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/gentoo_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/i18n_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/incubator_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/krefeldwiki_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/lockwiki_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/loveto_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/lyricwiki_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/mediawiki_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/memoryalpha_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/meta_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/mozilla_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/oldwikivoyage_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/omegawiki_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/openttd_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/osm_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/piratenwiki_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/southernapproach_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/species_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/strategy_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/supertux_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/test_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/twcareer_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/ubuntutw_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/uncyclopedia_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/vikidia_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wekey_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wesolve_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikia_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikibond_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikibooks_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Modified: trunk/pywikipedia/families/wikidata_family.py
===================================================================
--- trunk/pywikipedia/families/wikidata_family.py 2012-12-23 20:53:15 UTC (rev 10827)
+++ trunk/pywikipedia/families/wikidata_family.py 2012-12-23 20:59:00 UTC (rev 10828)
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-__version__ = '$Id: wikidata_family.py 10591 2012-10-20 amir $'
+__version__ = '$Id$'
import family
Property changes on: trunk/pywikipedia/families/wikidata_family.py
___________________________________________________________________
Added: svn:keywords
+ Id
Property changes on: trunk/pywikipedia/families/wikimediachapter_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikinews_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikipedia_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikiquote_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikisource_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikitech_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikitravel_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikitravel_shared_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikiversity_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wikivoyage_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
Property changes on: trunk/pywikipedia/families/wiktionary_family.py
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Id
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10825
Revision: 10825
Author: huji
Date: 2012-12-23 20:18:52 +0000 (Sun, 23 Dec 2012)
Log Message:
-----------
(bug 3598083) Internationalizing the comma in lists
Modified Paths:
--------------
trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py
===================================================================
--- trunk/pywikipedia/interwiki.py 2012-12-23 20:10:55 UTC (rev 10824)
+++ trunk/pywikipedia/interwiki.py 2012-12-23 20:18:52 UTC (rev 10825)
@@ -2334,9 +2334,11 @@
mcomment += globalvar.summary
- changes = {'adding': ', '.join([fmt(new, x) for x in adding]),
- 'removing': ', '.join([fmt(old, x) for x in removing]),
- 'modifying': ', '.join([fmt(new, x) for x in modifying]),
+ comma = i18n.twtranslate(insite.lang, 'interwiki-comma')
+
+ changes = {'adding': comma.join([fmt(new, x) for x in adding]),
+ 'removing': comma.join([fmt(old, x) for x in removing]),
+ 'modifying': comma.join([fmt(new, x) for x in modifying]),
'from': u'' if not useFrom else old[modifying[0]]}
mcomment += i18n.twtranslate(insite.lang, commentname) % changes