lists.wikimedia.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
List overview
Download
Pywikipedia-svn
June 2012
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
pywikipedia-svn@lists.wikimedia.org
7 participants
171 discussions
Start a n
N
ew thread
SVN: [10372] branches/rewrite/scripts/i18n
by siebrand@svn.wikimedia.org
17 Jun '12
17 Jun '12
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10372
Revision: 10372 Author: siebrand Date: 2012-06-17 23:29:28 +0000 (Sun, 17 Jun 2012) Log Message: ----------- Localisation updates from
http://translatewiki.net
. Modified Paths: -------------- branches/rewrite/scripts/i18n/category.py branches/rewrite/scripts/i18n/clean_sandbox.py branches/rewrite/scripts/i18n/commons.py branches/rewrite/scripts/i18n/delete.py branches/rewrite/scripts/i18n/djvutext.py branches/rewrite/scripts/i18n/editarticle.py branches/rewrite/scripts/i18n/featured.py branches/rewrite/scripts/i18n/ndashredir.py branches/rewrite/scripts/i18n/noreferences.py branches/rewrite/scripts/i18n/redirect.py branches/rewrite/scripts/i18n/table2wiki.py branches/rewrite/scripts/i18n/template.py branches/rewrite/scripts/i18n/thirdparty.py Modified: branches/rewrite/scripts/i18n/category.py =================================================================== --- branches/rewrite/scripts/i18n/category.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/category.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -1372,6 +1372,7 @@ 'category-listifying': u'Bot: Isinalilista mula sa %(fromcat)s (%(num)d entries)', 'category-removing': u'Bot: Tinatanggal mula sa %(oldcat)s', 'category-replacing': u'Robot: Pinapalitan ng kategoryang %(oldcat)s ng %(newcat)s', + 'category-section-title': u'Kasaysayan ng pahina ng dating %(oldcat)s', 'category-version-history': u'Robot: Sinasagip ang kasaysayan ng bersiyon ng dating %(oldcat)s', 'category-was-disbanded': u'Bot: Pinagwatak-watak ang kategorya', 'category-was-moved': u'Robot: Inilipat ang kategorya sa [[:Category:%(newcat)s|%(title)s]]', Modified: branches/rewrite/scripts/i18n/clean_sandbox.py =================================================================== --- branches/rewrite/scripts/i18n/clean_sandbox.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/clean_sandbox.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -253,6 +253,10 @@ 'th': { 'clean_sandbox-cleaned': u'โรบอต: กำลังจะเก็บกวาดหน้านี้โดยอัตโนมัติ', }, + # Author: AnakngAraw + 'tl': { + 'clean_sandbox-cleaned': u'Robot: Kusang nalinis', + }, # Author: Гусейн 'tly': { 'clean_sandbox-cleaned': u'Робот: Автоматик тәмиз кардеј', Modified: branches/rewrite/scripts/i18n/commons.py =================================================================== --- branches/rewrite/scripts/i18n/commons.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/commons.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -326,6 +326,11 @@ 'commons-file-moved': u'[[:File:%(localfile)s|Fil]] flyttad till [[:commons:File:%(commonsfile)s|commons]].', 'commons-file-now-available': u'Filen är nu tillgänglig på [[:commons:File:%(commonsfile)s|Wikimedia Commons]].', }, + # Author: AnakngAraw + 'tl': { + 'commons-file-moved': u'Nilipat ang [[:File:%(localfile)s|Talaksan]] papunta sa [[:commons:File:%(commonsfile)s|commons]].', + 'commons-file-now-available': u'Makukuha na ngayon ang talaksan doon sa [[:commons:File:%(commonsfile)s|Wikimedia Commons]].', + }, # Author: Гусейн 'tly': { 'commons-file-moved': u'[[:File:%(localfile)s|Фајл]] вырәј дәгиш кардә быә бә [[:commons:File:%(commonsfile)s|Викиамбо]].', Modified: branches/rewrite/scripts/i18n/delete.py =================================================================== --- branches/rewrite/scripts/i18n/delete.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/delete.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -441,6 +441,14 @@ 'delete-images': u'தானியங்கி:%(page)s பக்கத்திலுள்ள அனைத்துக் கோப்புகளும் நீக்கப்படுகின்றன', 'delete-linked-pages': u'தானியங்கி:%(page)s பக்கத்துடன் இணைக்கப்பட்டுள்ள அனைத்து பக்கங்களும் நீக்கப்படுகின்றன', }, + # Author: AnakngAraw + 'tl': { + 'delete-from-category': u'Robot: Binubura ang lahat ng mga pahina mula sa kategoryang %(page)s', + 'delete-from-file': u'Robot: Binubura ang isang listahan ng mga talaksan.', + 'delete-images': u'Robot: Binubura ang lahat ng mga larawan na nasa pahinang %(page)s', + 'delete-linked-pages': u'Robot: Binubura ang lahat ng mga pahinang nakakawing mula sa %(page)s', + 'delete-referring-pages': u'Robot: Binubura ang lahat ng mga pahinang tinutukoy mula sa %(page)s', + }, # Author: Гусейн 'tly': { 'delete-from-category': u'Робот: %(page)s категоријәку һәммәј сәһифон тәмиз кардеј', Modified: branches/rewrite/scripts/i18n/djvutext.py =================================================================== --- branches/rewrite/scripts/i18n/djvutext.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/djvutext.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -196,6 +196,10 @@ 'sv': { 'djvutext-creating': u'Robot: Skapar sida med extraherad text från DjVu', }, + # Author: AnakngAraw + 'tl': { + 'djvutext-creating': u'Robot: Nililikha ang pahina na may tekstong hinugot mula sa DjVu', + }, # Author: Гусейн 'tly': { 'djvutext-creating': u'Робот: Чы DjVu-ку пегәтә мәтни сәһифә сохте', Modified: branches/rewrite/scripts/i18n/editarticle.py =================================================================== --- branches/rewrite/scripts/i18n/editarticle.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/editarticle.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -237,6 +237,10 @@ 'sv': { 'editarticle-edit': u'Manuell redigering: %(description)s', }, + # Author: AnakngAraw + 'tl': { + 'editarticle-edit': u'Kinakamay na pamamatnugot na may robot: %(description)s', + }, # Author: Гусейн 'tly': { 'editarticle-edit': u'Дастә редәктә кардеј де боти воситә: %(description)s', Modified: branches/rewrite/scripts/i18n/featured.py =================================================================== --- branches/rewrite/scripts/i18n/featured.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/featured.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -416,6 +416,13 @@ 'th': { 'featured-featured': u'บอต: ลิงก์บทความคัดสรร %(page)s', }, + # Author: AnakngAraw + 'tl': { + 'featured-featured': u'Robot: Tampok na artikulo ang %(page)s', + 'featured-former': u'Robot: Isang dating tampok na artikulo ang %(page)s', + 'featured-good': u'Robot: Mabuting artikulo ang %(page)s', + 'featured-list': u'Robot: Isang tampok na listahan ang %(page)s', + }, # Author: Гусейн 'tly': { 'featured-featured': u'Робот: выжнијә быә мәғолә %(page)s', Modified: branches/rewrite/scripts/i18n/ndashredir.py =================================================================== --- branches/rewrite/scripts/i18n/ndashredir.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/ndashredir.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -9,6 +9,10 @@ 'ast': { 'ndashredir-create': u'Robó: Creando redireición con guiones a [[%(title)s]]', }, + # Author: Jim-by + 'be-x-old': { + 'ndashredir-create': u'Робат: Стварэньне перанакіраваньня з дэфісам на [[%(title)s]]', + }, # Author: Fulup 'br': { 'ndashredir-create': u'Robot: o krouiñ adkasoù gant barrennigoù-stagañ war-zu [[%(title)s]]', @@ -92,6 +96,10 @@ 'nl': { 'ndashredir-create': u'Robot: doorverwijzing met afbreekteken naar [[%(title)s]] aangemaakt', }, + # Author: BeginaFelicysym + 'pl': { + 'ndashredir-create': u'Bot: Tworzenie przekierowania z łącznikami do [[%(title)s]]', + }, # Author: Dragonòt # Author: Borichèt 'pms': { @@ -129,6 +137,10 @@ 'sv': { 'ndashredir-create': u'Bot: Skapar omdirigering med bindestreck till [[%(title)s]]', }, + # Author: AnakngAraw + 'tl': { + 'ndashredir-create': u'Bot: Lumilikha ng nagigitlingan pagpapapunta sa [[%(title)s]]', + }, # Author: Гусейн 'tly': { 'ndashredir-create': u'Бот: Истиғомәти дәгиш карде сохтеј де дефиси бә [[%(title)s]]', Modified: branches/rewrite/scripts/i18n/noreferences.py =================================================================== --- branches/rewrite/scripts/i18n/noreferences.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/noreferences.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -257,6 +257,10 @@ 'ta': { 'noreferences-add-tag': u'தானியங்கி: <references /> குறியீடினை இணைத்தல்', }, + # Author: AnakngAraw + 'tl': { + 'noreferences-add-tag': u'Robot: Idinaragdag ang nawawalang tatak na <references />', + }, # Author: Гусейн 'tly': { 'noreferences-add-tag': u'Робот: Ныбә <references /> әломәт зијод кардә быә', Modified: branches/rewrite/scripts/i18n/redirect.py =================================================================== --- branches/rewrite/scripts/i18n/redirect.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/redirect.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -95,6 +95,7 @@ 'bs': { 'redirect-broken-redirect-template': u'{{db-r1}}', 'redirect-fix-double': u'Bot: Popravlja dvostruka preusmjerenja na %(to)s', + 'redirect-fix-loop': u'Robot: Popravlja petlje preusmjerenja na %(to)s', 'redirect-remove-broken': u'[[WP:CSD#G8|G8]]: [[Wikipedia:Redirect|Preusmjerenje]] na obrisanu ili nepostojeću stranicu', 'redirect-remove-loop': u'[[WP:CSD#G8|G8]]: [[Wikipedia:Redirect|Preusmjerenje]] pravi petlju na samo sebe', }, @@ -530,9 +531,11 @@ 'redirect-fix-double': u'Bot: E doppelte Waiterlaitung vabessat zu %(to)s', }, # Author: Sp5uhe + # Author: BeginaFelicysym 'pl': { 'redirect-broken-redirect-template': u'{{ek|przekierowanie do usuniętej lub nieistniejącej stron}}', 'redirect-fix-double': u'Robot naprawił podwójne przekierowanie do %(to)s', + 'redirect-fix-loop': u'Robot: Naprawa pętli przekierowań do %(to)s', 'redirect-remove-broken': u'[[WP:CSD#G8|G8]] – [[Wikipedia:Redirect|przekierowanie]] do usuniętej lub nieistniejącej strony', 'redirect-remove-loop': u'[[WP:CSD#G8|G8]] – pętla [[Wikipedia:Redirect|przekierowań]]', }, @@ -668,6 +671,7 @@ 'tl': { 'redirect-broken-redirect-template': u'{{db-r1}}', 'redirect-fix-double': u'Bot: Kinukumpuni ang nagkadalawang pagpapapunta sa %(to)s', + 'redirect-fix-loop': u'Robot: Kinukumpuni ang silo ng pagpapapunta sa %(to)s', 'redirect-remove-broken': u' [[WP:CSD#G8|G8]]: [[Wikipedia:Redirect|Papuntahin]] sa isang pahinang nabura o hindi umiiral', 'redirect-remove-loop': u'[[WP:CSD#G8|G8]]: Ang puntiryang [[Wikipedia:Redirect|Pagpapapunta sa iba]] ay bumubuo ng nakalikaw na pagpapapunta', }, Modified: branches/rewrite/scripts/i18n/table2wiki.py =================================================================== --- branches/rewrite/scripts/i18n/table2wiki.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/table2wiki.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -265,6 +265,11 @@ 'table2wiki-no-warning': u'Användarkontrollerad bot: tabellsyntax uppdaterad', 'table2wiki-warnings': u'Användarkontrollerad bot: tabellsyntax uppdaterad - {{PLURAL:count|1|%(count)d}} varning!', }, + # Author: AnakngAraw + 'tl': { + 'table2wiki-no-warning': u'Robot na tinatabanan ng tagagamit: Naisapanahon ang palaugnayan ng talahanayan', + 'table2wiki-warnings': u'Robot na tinatabanan ng tagagamit: Naisapanahon ang palaugnayan ng talahanayan - {{PLURAL:count|1 babala|%(count)d mga babala}}!', + }, # Author: Xqt # Author: Гусейн 'tly': { Modified: branches/rewrite/scripts/i18n/template.py =================================================================== --- branches/rewrite/scripts/i18n/template.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/template.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -315,6 +315,12 @@ 'template-changing': u'தானியங்கி:{{PLURAL:%(num)d|வார்ப்புரு|வார்ப்புருக்கள்}} மாற்றப்பட்டது: %(list)s', 'template-removing': u'தானியங்கி: {{PLURAL:%(num)d|வார்ப்புரு|வார்ப்புருக்கள்}} நீக்கப்பட்டது: %(list)s', }, + # Author: AnakngAraw + 'tl': { + 'template-changing': u'Robot: Binabago ang {{PLURAL:%(num)d|suleras|mga suleras}}: %(list)s', + 'template-removing': u'Robot: Tinatanggal ang {{PLURAL:%(num)d|suleras|mga suleras}}: %(list)s', + 'template-substituting': u'Robot: Ipinapalit ang {{PLURAL:%(num)d|suleras|mga suleras}}: %(list)s', + }, # Author: Гусейн 'tly': { 'template-changing': u'Робот: {{PLURAL:%(num)d|ғәлиб|ғәлибон}} әвәз карде: %(list)s', Modified: branches/rewrite/scripts/i18n/thirdparty.py =================================================================== --- branches/rewrite/scripts/i18n/thirdparty.py 2012-06-17 19:27:15 UTC (rev 10371) +++ branches/rewrite/scripts/i18n/thirdparty.py 2012-06-17 23:29:28 UTC (rev 10372) @@ -1104,12 +1104,23 @@ }, # Author: AnakngAraw 'tl': { + 'thirdparty-drtrigonbot-subster-summary-mod': u'ipinapalit ang %(tags)s (mga) tatak', + 'thirdparty-drtrigonbot-sum_disc-notify-changed': u'Nabago ang talakayan', + 'thirdparty-drtrigonbot-sum_disc-notify-closed': u'Naisara na ang talakayan', 'thirdparty-drtrigonbot-sum_disc-notify-maintmsg': u'MENSAHE NG ROBOT', 'thirdparty-drtrigonbot-sum_disc-notify-new': u'Bagong Usapan', 'thirdparty-drtrigonbot-sum_disc-notify-notify': u'Pagpapabatid', + 'thirdparty-drtrigonbot-sum_disc-parse': u':* %(notify)s: %(page_sections)s - [%(history_link)s huling pagbago] (%(page_size)s mga byte) ni %(user)s (%(time)s)', + 'thirdparty-drtrigonbot-sum_disc-parse-closed': u':* %(notify)s: %(page)s tapos na ang lahat ng mga talakayan (huminto ang pagmamanman) - huling pagbago ni %(user)s (%(time)s)', + 'thirdparty-drtrigonbot-sum_disc-parse-end': u'<noinclude>\n\nNilikha ang buod mula at sa: %(sign)s</noinclude>', 'thirdparty-drtrigonbot-sum_disc-parse-nonhuman': u'(walang natagpuang patnugot na tao)', + 'thirdparty-drtrigonbot-sum_disc-parse-notify': u':* %(notify)s: <span class="plainlinks">[%(page_link)s %(page)s]</span> - huling pagbago ni [[User:%(user)s]] (%(time)s)', 'thirdparty-drtrigonbot-sum_disc-parse-start': u'; %d. %B %Y', + 'thirdparty-drtrigonbot-sum_disc-parse-warning': u':* Mensaheng babala ng robot: %(page)s "\'\'%(warning)s\'\'"', + 'thirdparty-drtrigonbot-sum_disc-summary-add': u'Idinagdag ang buod ng talakayan: %(num)i mga lahok', + 'thirdparty-drtrigonbot-sum_disc-summary-clean': u'Idinagdag ang buod ng talakayan na may paglilinis: %(num)i mga lahok', 'thirdparty-drtrigonbot-sum_disc-summary-head': u'robot', + 'thirdparty-drtrigonbot-sum_disc-summary-mod': u'Isinapanahon ang buod ng talakayan: %(num)i mga lahok sa %(page)s', }, # Author: Гусейн 'tly': {
1
0
0
0
SVN: [10371] branches/rewrite/pywikibot/site.py
by valhallasw@svn.wikimedia.org
17 Jun '12
17 Jun '12
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10371
Revision: 10371 Author: valhallasw Date: 2012-06-17 19:27:15 +0000 (Sun, 17 Jun 2012) Log Message: ----------- Move LoginStatus values to enum Modified Paths: -------------- branches/rewrite/pywikibot/site.py Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2012-06-17 19:13:57 UTC (rev 10370) +++ branches/rewrite/pywikibot/site.py 2012-06-17 19:27:15 UTC (rev 10371) @@ -35,6 +35,30 @@ class PageInUse(pywikibot.Error): """Page cannot be reserved for writing due to existing lock.""" +class LoginStatus(object): + """ Enum for Login statuses. + + >>> LoginStatus.NOT_ATTEMPTED + -3 + >>> LoginStatus.AS_USER + 0 + >>> LoginStatus.name(-3) + 'NOT_ATTEMPTED' + >>> LoginStatus.name(0) + 'AS_USER' + """ + NOT_ATTEMPTED = -3 + IN_PROGRESS = -2 + NOT_LOGGED_IN = -1 + AS_USER = 0 + AS_SYSOP = 1 + + @classmethod + def name(cls, search_value): + for key, value in cls.__dict__.iteritems(): + if key==key.upper() and value==search_value: + return key + raise KeyError("Value %r could not be found in this enum" % search_value) def Family(fam=None, fatal=True): """Import the named family. @@ -630,12 +654,7 @@ } self.sitelock = threading.Lock() self._msgcache = {} - # _loginstatus: -3 means login not yet attempted, - # -2 means login attempt in progress, - # -1 means not logged in (anon user), - # 0 means logged in as user, - # 1 means logged in as sysop - self._loginstatus = -3 + self._loginstatus = LoginStatus.NOT_ATTEMPTED return def _generator(self, gen_class, type_arg=None, namespaces=None, @@ -704,7 +723,7 @@ def login(self, sysop=False): """Log the user in if not already logged in.""" # check whether a login cookie already exists for this user - self._loginstatus = -2 + self._loginstatus = LoginStatus.IN_PROGRESS if not hasattr(self, "_userinfo"): self.getuserinfo() if self.logged_in(sysop): @@ -716,9 +735,9 @@ if hasattr(self, "_userinfo"): del self._userinfo self.getuserinfo() - self._loginstatus = sysop + self._loginstatus = LoginStatus.AS_SYSOP if sysop else LoginStatus.AS_USER else: - self._loginstatus = -1 # failure + self._loginstatus = LoginStatus.NOT_LOGGED_IN # failure if not hasattr(self, "_siteinfo"): self._getsiteinfo()
1
0
0
0
SVN: [10370] branches/rewrite/tests
by valhallasw@svn.wikimedia.org
17 Jun '12
17 Jun '12
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10370
Revision: 10370 Author: valhallasw Date: 2012-06-17 19:13:57 +0000 (Sun, 17 Jun 2012) Log Message: ----------- Updated site_tests - requests are now cached (but the tests are still terribly slow) - removed module-level code that caused deadlocks (details below) - updated several site_tests, although still not all tests pass Deadlock description: Expected behaviour: ``` Q = queue.Queue() [pwb code] [threadedhttp] obj=Request() obj=Q.get() [blocks] | : Q.put(obj) ----------------------> : | | obj.lock.acquire() [blocks] do stuff with obj; import sys : | : <------------------------ obj.lock.release() | | V V ``` however, due to an import lock, this is what happens: (*) marks what happens in cpython internally ``` Q = queue.Queue() import_lock = Lock() (*) [pwb code] [threadedhttp] import_lock.acquire() (*) obj=Q.get() [blocks] | : obj=Request(); : | : Q.put(obj); ----------------------> : | | obj.lock.acquire() [blocks] import sys [causing, internally: : import_lock.acquire() [blocks] (*) : : === (deadlock) === ``` The import is caused by nosetests, which loads the code to run the tests. This is fixed by moving the requests to inside the test class instead of having it in module level code. Modified Paths: -------------- branches/rewrite/tests/__init__.py branches/rewrite/tests/site_tests.py Modified: branches/rewrite/tests/__init__.py =================================================================== --- branches/rewrite/tests/__init__.py 2012-06-17 18:03:29 UTC (rev 10369) +++ branches/rewrite/tests/__init__.py 2012-06-17 19:13:57 UTC (rev 10370) @@ -5,3 +5,33 @@ # Distributed under the terms of the MIT license. # __version__ = '$Id$' + +import os +import pywikibot.data.api +from pywikibot.data.api import Request as _original_Request +from pywikibot.data.api import CachedRequest + +class TestRequest(CachedRequest): + def __init__(self, *args, **kwargs): + super(TestRequest, self).__init__(0, *args, **kwargs) + + def _get_cache_dir(self): + path = os.path.join(os.path.split(__file__)[0], 'apicache') + self._make_dir(path) + return path + + def _expired(self, dt): + return False + + def submit(self): + cached_available = self._load_cache() + if not cached_available: + print str(self) + return super(TestRequest, self).submit() + +def patch_request(): + pywikibot.data.api.Request = TestRequest + +def unpatch_request(): + pywikibot.data.api.Request = _original_Request + Modified: branches/rewrite/tests/site_tests.py =================================================================== --- branches/rewrite/tests/site_tests.py 2012-06-17 18:03:29 UTC (rev 10369) +++ branches/rewrite/tests/site_tests.py 2012-06-17 19:13:57 UTC (rev 10370) @@ -13,14 +13,27 @@ import unittest import pywikibot import warnings +from tests import patch_request, unpatch_request -mysite = pywikibot.Site() -mainpage = pywikibot.Page(pywikibot.Link("Main Page", mysite)) -imagepage = iter(mainpage.imagelinks()).next() # 1st image on main page +mysite = None +mainpage = None +imagepage = None - class TestSiteObject(unittest.TestCase): """Test cases for Site methods.""" + family = "wikipedia" + code = "en" + @classmethod + def setUpClass(cls): + patch_request() + global mysite, mainpage, imagepage + mysite = pywikibot.Site(cls.code, cls.family) + mainpage = pywikibot.Page(pywikibot.Link("Main Page", mysite)) + imagepage = iter(mainpage.imagelinks()).next() # 1st image on main page + + @classmethod + def tearDownClass(cls): + unpatch_request def assertType(self, obj, cls): """Assert that obj is an instance of type cls""" @@ -29,17 +42,17 @@ def testBaseMethods(self): """Test cases for BaseSite methods""" - self.assertEqual(mysite.family.name, pywikibot.config2.family) - self.assertEqual(mysite.code, pywikibot.config2.mylang) + self.assertEqual(mysite.family.name, self.family) + self.assertEqual(mysite.code, self.code) self.assertType(mysite.lang, basestring) self.assertType(mysite == pywikibot.Site("en", "wikipedia"), bool) self.assertType(mysite.user(), (basestring, type(None))) self.assertEqual(mysite.sitename(), - "%s:%s" % (pywikibot.config2.family, - pywikibot.config2.mylang)) + "%s:%s" % (self.family, + self.code)) self.assertEqual(repr(mysite), 'Site("%s", "%s")' - % (pywikibot.config2.mylang, pywikibot.config2.family)) + % (self.code, self.family)) self.assertType(mysite.linktrail(), basestring) self.assertType(mysite.redirect(default=True), basestring) self.assertType(mysite.disambcategory(), pywikibot.Category) @@ -62,10 +75,9 @@ obs = mysite.family.obsolete ipf = mysite.interwiki_putfirst() self.assertType(ipf, list) - self.assertTrue(all(item in langs or item in obs - for item in ipf)) - self.assertTrue(all(item in langs - for item in mysite.validLanguageLinks())) + + for item in mysite.validLanguageLinks(): + self.assertTrue(item in langs, item) def testNamespaceMethods(self): """Test cases for methods manipulating namespace names""" @@ -192,7 +204,8 @@ filterRedirects=True)) # including links to redirect pages (but not the redirects): indirect = set(mysite.pagebacklinks(mainpage, namespaces=[0], - followRedirects=True)) + followRedirects=True, + filterRedirects=False)) self.assertEqual(filtered & redirs, set([])) self.assertEqual(indirect & redirs, set([])) self.assertTrue(filtered.issubset(indirect))
1
0
0
0
SVN: [10369] branches/rewrite/pywikibot/families/wikibooks_family.py
by xqt@svn.wikimedia.org
17 Jun '12
17 Jun '12
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10369
Revision: 10369 Author: xqt Date: 2012-06-17 18:03:29 +0000 (Sun, 17 Jun 2012) Log Message: ----------- vo-wikibooks is obsolete; update from trunk r10368 Modified Paths: -------------- branches/rewrite/pywikibot/families/wikibooks_family.py Modified: branches/rewrite/pywikibot/families/wikibooks_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikibooks_family.py 2012-06-17 17:54:50 UTC (rev 10368) +++ branches/rewrite/pywikibot/families/wikibooks_family.py 2012-06-17 18:03:29 UTC (rev 10369) @@ -18,7 +18,7 @@ 'el', 'sk', 'si', 'li', 'la', 'ang', 'ia', 'cv', 'et', 'ur', 'mr', 'bn', 'ms', 'hi', 'oc', 'kk', 'ml', 'eu', 'fy', 'ie', 'ne', 'te', 'af', 'tg', 'sa', 'pa', 'bs', 'ky', 'mg', 'cy', 'be', 'zh-min-nan', - 'ku', 'uz', 'su', 'vo', + 'ku', 'uz', 'su', ] self.langs = dict([(lang, '%s.wikibooks.org' % lang) for lang in self.languages_by_size]) @@ -93,6 +93,7 @@ 'tk': None, 'tokipona': None, 'ug': None, #
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Uy…
+ 'vo': None, #
https://bugzilla.wikimedia.org/show_bug.cgi?id=37413
'wa': None, #
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Wa…
'xh': None, #
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Xh…
'yo': None, #
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Yo…
1
0
0
0
SVN: [10368] trunk/pywikipedia/families/wikibooks_family.py
by xqt@svn.wikimedia.org
17 Jun '12
17 Jun '12
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10368
Revision: 10368 Author: xqt Date: 2012-06-17 17:54:50 +0000 (Sun, 17 Jun 2012) Log Message: ----------- vo-wikibooks is obsolete Modified Paths: -------------- trunk/pywikipedia/families/wikibooks_family.py Modified: trunk/pywikipedia/families/wikibooks_family.py =================================================================== --- trunk/pywikipedia/families/wikibooks_family.py 2012-06-17 17:46:51 UTC (rev 10367) +++ trunk/pywikipedia/families/wikibooks_family.py 2012-06-17 17:54:50 UTC (rev 10368) @@ -18,7 +18,7 @@ 'el', 'sk', 'si', 'li', 'la', 'ang', 'ia', 'cv', 'et', 'ur', 'mr', 'bn', 'ms', 'hi', 'oc', 'kk', 'ml', 'eu', 'fy', 'ie', 'ne', 'te', 'af', 'tg', 'sa', 'pa', 'bs', 'ky', 'mg', 'cy', 'be', 'zh-min-nan', - 'ku', 'uz', 'su', 'vo', + 'ku', 'uz', 'su', ] self.langs = dict([(lang, '%s.wikibooks.org' % lang) for lang in self.languages_by_size]) @@ -485,6 +485,7 @@ 'tk': None, 'tokipona': None, 'ug': None, #
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Uy…
+ 'vo': None, #
https://bugzilla.wikimedia.org/show_bug.cgi?id=37413
'wa': None, #
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Wa…
'xh': None, #
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Xh…
'yo': None, #
http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Yo…
@@ -500,4 +501,4 @@ if family.config.SSL_connection: def protocol(self, code): - return 'https' \ No newline at end of file + return 'https'
1
0
0
0
SVN: [10367] trunk/pywikipedia/families
by xqt@svn.wikimedia.org
17 Jun '12
17 Jun '12
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10367
Revision: 10367 Author: xqt Date: 2012-06-17 17:46:51 +0000 (Sun, 17 Jun 2012) Log Message: ----------- update language_by_size from r10366, bugfix for bug #3535710 Modified Paths: -------------- trunk/pywikipedia/families/wikibooks_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/wiktionary_family.py Modified: trunk/pywikipedia/families/wikibooks_family.py =================================================================== --- trunk/pywikipedia/families/wikibooks_family.py 2012-06-17 17:45:48 UTC (rev 10366) +++ trunk/pywikipedia/families/wikibooks_family.py 2012-06-17 17:46:51 UTC (rev 10367) @@ -11,14 +11,14 @@ self.name = 'wikibooks' self.languages_by_size = [ - 'en', 'de', 'fr', 'hu', 'ja', 'pt', 'nl', 'pl', 'it', 'es', 'he', - 'vi', 'sq', 'fi', 'ca', 'id', 'ru', 'cs', 'zh', 'hr', 'sv', 'tr', + 'en', 'de', 'fr', 'hu', 'ja', 'pt', 'nl', 'pl', 'it', 'es', 'vi', + 'he', 'sq', 'fi', 'ca', 'id', 'ru', 'cs', 'zh', 'hr', 'sv', 'tr', 'da', 'th', 'gl', 'no', 'ko', 'ta', 'fa', 'sr', 'ar', 'tl', 'mk', 'is', 'tt', 'lt', 'ka', 'az', 'eo', 'ro', 'bg', 'uk', 'hy', 'sl', - 'sk', 'el', 'si', 'li', 'la', 'ang', 'ia', 'cv', 'et', 'ur', 'mr', + 'el', 'sk', 'si', 'li', 'la', 'ang', 'ia', 'cv', 'et', 'ur', 'mr', 'bn', 'ms', 'hi', 'oc', 'kk', 'ml', 'eu', 'fy', 'ie', 'ne', 'te', 'af', 'tg', 'sa', 'pa', 'bs', 'ky', 'mg', 'cy', 'be', 'zh-min-nan', - 'ast', 'ku', 'tk', 'uz', 'su', 'vo', 'mn', 'my', + 'ku', 'uz', 'su', 'vo', ] self.langs = dict([(lang, '%s.wikibooks.org' % lang) for lang in self.languages_by_size]) Modified: trunk/pywikipedia/families/wikinews_family.py =================================================================== --- trunk/pywikipedia/families/wikinews_family.py 2012-06-17 17:45:48 UTC (rev 10366) +++ trunk/pywikipedia/families/wikinews_family.py 2012-06-17 17:46:51 UTC (rev 10367) @@ -13,7 +13,7 @@ self.languages_by_size = [ 'sr', 'en', 'pl', 'fr', 'de', 'it', 'es', 'pt', 'zh', 'ru', 'ja', 'sv', 'ta', 'ca', 'el', 'cs', 'fa', 'ar', 'fi', 'ro', 'he', 'bg', - 'tr', 'sd', 'sq', 'uk', 'no', 'bs', 'eo', 'ko', + 'tr', 'sq', 'uk', 'no', 'bs', 'eo', 'ko', ] self.langs = dict([(lang, '%s.wikinews.org' % lang) for lang in self.languages_by_size]) Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2012-06-17 17:45:48 UTC (rev 10366) +++ trunk/pywikipedia/families/wikipedia_family.py 2012-06-17 17:46:51 UTC (rev 10367) @@ -15,29 +15,29 @@ 'sv', 'vi', 'uk', 'ca', 'no', 'fi', 'cs', 'hu', 'ko', 'fa', 'id', 'tr', 'ro', 'ar', 'sk', 'eo', 'da', 'sr', 'lt', 'ms', 'eu', 'he', 'sl', 'bg', 'kk', 'vo', 'war', 'hr', 'hi', 'et', 'az', 'gl', - 'simple', 'nn', 'la', 'th', 'el', 'new', 'roa-rup', 'oc', 'sh', - 'ka', 'mk', 'tl', 'ht', 'pms', 'te', 'ta', 'be-x-old', 'ceb', 'be', + 'simple', 'nn', 'la', 'el', 'th', 'new', 'roa-rup', 'oc', 'sh', + 'ka', 'mk', 'tl', 'ht', 'pms', 'te', 'ta', 'be-x-old', 'be', 'ceb', 'br', 'lv', 'sq', 'jv', 'mg', 'cy', 'lb', 'mr', 'is', 'bs', 'yo', - 'an', 'hy', 'fy', 'bpy', 'lmo', 'pnb', 'ml', 'sw', 'bn', 'io', 'af', - 'gu', 'zh-yue', 'ne', 'nds', 'ku', 'ast', 'ur', 'scn', 'su', 'qu', - 'diq', 'ba', 'tt', 'my', 'ga', 'cv', 'ia', 'nap', 'bat-smg', - 'map-bms', 'wa', 'als', 'kn', 'am', 'uz', 'bug', 'tg', 'gd', - 'zh-min-nan', 'yi', 'vec', 'hif', 'sco', 'roa-tara', 'os', 'arz', - 'nah', 'sah', 'mn', 'sa', 'mzn', 'pam', 'hsb', 'mi', 'li', 'ky', - 'si', 'co', 'gan', 'ckb', 'glk', 'bo', 'fo', 'bar', 'bcl', 'ilo', - 'mrj', 'fiu-vro', 'nds-nl', 'tk', 'vls', 'se', 'gv', 'ps', 'rue', - 'dv', 'nrm', 'pag', 'koi', 'pa', 'rm', 'km', 'kv', 'udm', 'csb', - 'mhr', 'fur', 'mt', 'wuu', 'lij', 'ug', 'lad', 'zea', 'pi', 'sc', - 'bh', 'zh-classical', 'nov', 'or', 'ksh', 'ang', 'kw', 'so', 'xmf', - 'nv', 'stq', 'hak', 'ay', 'frp', 'frr', 'ext', 'szl', 'pcd', 'ie', - 'gag', 'haw', 'xal', 'ln', 'rw', 'pdc', 'pfl', 'krc', 'crh', 'eml', - 'ace', 'gn', 'to', 'ce', 'kl', 'arc', 'myv', 'dsb', 'vep', 'pap', - 'bjn', 'as', 'tpi', 'lbe', 'wo', 'mdf', 'jbo', 'kab', 'av', 'sn', - 'cbk-zam', 'ty', 'srn', 'kbd', 'lo', 'ab', 'lez', 'mwl', 'ltg', + 'an', 'hy', 'fy', 'lmo', 'bpy', 'pnb', 'ml', 'sw', 'bn', 'io', 'af', + 'gu', 'zh-yue', 'ne', 'nds', 'ku', 'ur', 'ast', 'scn', 'su', 'qu', + 'diq', 'ba', 'tt', 'my', 'ga', 'uz', 'cv', 'ia', 'nap', 'bat-smg', + 'map-bms', 'wa', 'als', 'kn', 'am', 'bug', 'tg', 'gd', 'zh-min-nan', + 'yi', 'vec', 'sco', 'hif', 'roa-tara', 'arz', 'os', 'nah', 'sah', + 'mn', 'mzn', 'sa', 'pam', 'hsb', 'ky', 'mi', 'li', 'si', 'co', + 'gan', 'ckb', 'glk', 'bo', 'fo', 'bar', 'bcl', 'ilo', 'mrj', + 'fiu-vro', 'nds-nl', 'tk', 'vls', 'se', 'ps', 'gv', 'rue', 'dv', + 'nrm', 'pag', 'koi', 'pa', 'rm', 'km', 'kv', 'udm', 'csb', 'mhr', + 'fur', 'mt', 'wuu', 'lij', 'ug', 'zea', 'lad', 'pi', 'sc', 'bh', + 'zh-classical', 'or', 'nov', 'ksh', 'ang', 'kw', 'xmf', 'so', 'nv', + 'stq', 'hak', 'ay', 'frr', 'frp', 'ext', 'szl', 'pcd', 'ie', 'gag', + 'haw', 'xal', 'ln', 'rw', 'pdc', 'pfl', 'krc', 'crh', 'eml', 'ace', + 'gn', 'vep', 'to', 'ce', 'kl', 'arc', 'myv', 'dsb', 'as', 'pap', + 'bjn', 'tpi', 'lbe', 'mdf', 'wo', 'jbo', 'kab', 'av', 'sn', + 'cbk-zam', 'ty', 'srn', 'kbd', 'lo', 'lez', 'ab', 'mwl', 'ltg', 'na', 'ig', 'kg', 'tet', 'za', 'kaa', 'nso', 'zu', 'rmy', 'cu', - 'tn', 'chr', 'got', 'sm', 'bi', 'chy', 'bm', 'iu', 'ik', 'pih', + 'tn', 'chr', 'chy', 'got', 'sm', 'bi', 'bm', 'iu', 'ik', 'pih', 'ss', 'sd', 'pnt', 'cdo', 'ee', 'ha', 'ti', 'bxr', 'ts', 'om', 'ks', - 'ki', 've', 'sg', 'rn', 'dz', 'cr', 'lg', 'ak', 'tum', 'fj', 'st', + 'ki', 've', 'sg', 'rn', 'cr', 'dz', 'lg', 'ak', 'tum', 'fj', 'st', 'tw', 'ch', 'ny', 'ff', 'xh', ] Modified: trunk/pywikipedia/families/wikiquote_family.py =================================================================== --- trunk/pywikipedia/families/wikiquote_family.py 2012-06-17 17:45:48 UTC (rev 10366) +++ trunk/pywikipedia/families/wikiquote_family.py 2012-06-17 17:46:51 UTC (rev 10367) @@ -14,10 +14,10 @@ 'en', 'pl', 'it', 'ru', 'fr', 'de', 'pt', 'es', 'sk', 'bg', 'cs', 'bs', 'tr', 'sl', 'he', 'eo', 'lt', 'el', 'uk', 'id', 'zh', 'fa', 'hu', 'fi', 'nl', 'sv', 'li', 'no', 'nn', 'ja', 'az', 'hy', 'ca', - 'et', 'ar', 'hr', 'cy', 'ka', 'ko', 'ml', 'gl', 'sr', 'ro', 'ku', + 'et', 'ar', 'hr', 'cy', 'ka', 'ko', 'gl', 'ml', 'sr', 'ro', 'ku', 'te', 'th', 'is', 'eu', 'da', 'af', 'sq', 'vi', 'ta', 'hi', 'la', - 'br', 'be', 'mr', 'uz', 'ur', 'zh-min-nan', 'gu', 'su', 'lb', 'kn', - 'wo', 'ky', 'co', 'am', + 'br', 'be', 'mr', 'uz', 'ur', 'zh-min-nan', 'gu', 'su', 'kn', 'wo', + 'ky', 'am', ] self.langs = dict([(lang, '%s.wikiquote.org' % lang) for lang in self.languages_by_size]) Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2012-06-17 17:45:48 UTC (rev 10366) +++ trunk/pywikipedia/families/wikisource_family.py 2012-06-17 17:46:51 UTC (rev 10367) @@ -13,9 +13,9 @@ self.languages_by_size = [ 'fr', 'en', 'de', 'ru', 'it', 'zh', 'pt', 'he', 'pl', 'es', 'sv', 'fa', 'hu', 'ar', 'ca', 'cs', 'ko', 'sl', 'ro', 'fi', 'vi', 'te', - 'sa', 'el', 'bn', 'th', 'hr', 'hy', 'nl', 'no', 'sr', 'la', 'vec', - 'ml', 'tr', 'ja', 'yi', 'uk', 'br', 'mk', 'id', 'ta', 'is', 'eo', - 'da', 'be', 'li', 'bg', 'sah', 'bs', 'gu', 'et', 'az', 'gl', 'mr', + 'sa', 'el', 'bn', 'th', 'hr', 'hy', 'no', 'sr', 'nl', 'la', 'vec', + 'ml', 'tr', 'ja', 'yi', 'br', 'uk', 'mk', 'id', 'ta', 'is', 'eo', + 'da', 'be', 'li', 'bs', 'bg', 'sah', 'gu', 'et', 'az', 'gl', 'mr', 'lt', 'kn', 'cy', 'zh-min-nan', 'sk', 'fo', ] Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2012-06-17 17:45:48 UTC (rev 10366) +++ trunk/pywikipedia/families/wiktionary_family.py 2012-06-17 17:46:51 UTC (rev 10367) @@ -11,20 +11,20 @@ self.name = 'wiktionary' self.languages_by_size = [ - 'en', 'fr', 'mg', 'zh', 'lt', 'ru', 'ko', 'tr', 'el', 'pl', 'ta', - 'vi', 'de', 'kn', 'sv', 'io', 'fi', 'nl', 'hu', 'pt', 'no', 'my', + 'en', 'fr', 'mg', 'zh', 'lt', 'ru', 'ko', 'el', 'tr', 'pl', 'ta', + 'sv', 'vi', 'de', 'kn', 'io', 'fi', 'nl', 'hu', 'pt', 'no', 'my', 'id', 'it', 'li', 'ml', 'et', 'ja', 'es', 'fa', 'ku', 'ar', 'ro', - 'lo', 'gl', 'ca', 'cs', 'uk', 'eu', 'bg', 'eo', 'te', 'vo', 'br', + 'lo', 'gl', 'cs', 'ca', 'uk', 'eu', 'bg', 'eo', 'te', 'vo', 'br', 'oc', 'is', 'hr', 'th', 'simple', 'scn', 'sr', 'af', 'cy', 'fy', - 'sw', 'tl', 'ast', 'fj', 'ur', 'he', 'la', 'sq', 'da', 'hy', 'wa', - 'sl', 'zh-min-nan', 'tt', 'hi', 'az', 'lv', 'ka', 'lb', 'pnb', 'nn', + 'sw', 'tl', 'ast', 'fj', 'ur', 'he', 'la', 'sq', 'wa', 'da', 'hy', + 'sl', 'zh-min-nan', 'tt', 'hi', 'az', 'lv', 'ka', 'pnb', 'lb', 'nn', 'tk', 'hsb', 'kk', 'bs', 'nah', 'km', 'mk', 'be', 'wo', 'ga', 'ang', 'co', 'ms', 'gn', 'mr', 'csb', 'sk', 'st', 'nds', 'ia', 'si', 'sh', - 'sd', 'tg', 'ug', 'ky', 'kl', 'an', 'zu', 'gu', 'mn', 'fo', 'kw', - 'rw', 'ss', 'ie', 'qu', 'gv', 'om', 'ps', 'roa-rup', 'iu', 'bn', - 'so', 'sa', 'chr', 'su', 'za', 'gd', 'am', 'mt', 'tpi', 'mi', 'ik', - 'yi', 'ln', 'uz', 'ti', 'sg', 'jv', 'na', 'pa', 'sm', 'or', 'tn', - 'jbo', 'dv', 'ne', 'ha', 'ks', 'ay', 'ts', 'dz', + 'sd', 'tg', 'ug', 'ky', 'kl', 'an', 'zu', 'mn', 'gu', 'fo', 'ps', + 'kw', 'rw', 'ss', 'ie', 'qu', 'gv', 'om', 'roa-rup', 'iu', 'bn', + 'sa', 'so', 'chr', 'su', 'za', 'gd', 'am', 'mt', 'tpi', 'mi', 'ik', + 'yi', 'ln', 'uz', 'sm', 'ti', 'sg', 'jv', 'na', 'or', 'pa', 'tn', + 'jbo', 'dv', 'ne', 'ha', 'ks', 'ay', 'ts', ] self.langs = dict([(lang, '%s.wiktionary.org' % lang) for lang in self.languages_by_size])
1
0
0
0
SVN: [10366] branches/rewrite/pywikibot/families
by xqt@svn.wikimedia.org
17 Jun '12
17 Jun '12
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10366
Revision: 10366 Author: xqt Date: 2012-06-17 17:45:48 +0000 (Sun, 17 Jun 2012) Log Message: ----------- update language_by_size Modified Paths: -------------- branches/rewrite/pywikibot/families/wikibooks_family.py branches/rewrite/pywikibot/families/wikinews_family.py branches/rewrite/pywikibot/families/wikipedia_family.py branches/rewrite/pywikibot/families/wikiquote_family.py branches/rewrite/pywikibot/families/wikisource_family.py branches/rewrite/pywikibot/families/wiktionary_family.py Modified: branches/rewrite/pywikibot/families/wikibooks_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikibooks_family.py 2012-06-17 17:23:02 UTC (rev 10365) +++ branches/rewrite/pywikibot/families/wikibooks_family.py 2012-06-17 17:45:48 UTC (rev 10366) @@ -11,14 +11,14 @@ self.name = 'wikibooks' self.languages_by_size = [ - 'en', 'de', 'fr', 'hu', 'ja', 'pt', 'nl', 'pl', 'it', 'es', 'he', - 'vi', 'sq', 'fi', 'ca', 'id', 'ru', 'cs', 'zh', 'hr', 'sv', 'tr', + 'en', 'de', 'fr', 'hu', 'ja', 'pt', 'nl', 'pl', 'it', 'es', 'vi', + 'he', 'sq', 'fi', 'ca', 'id', 'ru', 'cs', 'zh', 'hr', 'sv', 'tr', 'da', 'th', 'gl', 'no', 'ko', 'ta', 'fa', 'sr', 'ar', 'tl', 'mk', 'is', 'tt', 'lt', 'ka', 'az', 'eo', 'ro', 'bg', 'uk', 'hy', 'sl', - 'sk', 'el', 'si', 'li', 'la', 'ang', 'ia', 'cv', 'et', 'ur', 'mr', + 'el', 'sk', 'si', 'li', 'la', 'ang', 'ia', 'cv', 'et', 'ur', 'mr', 'bn', 'ms', 'hi', 'oc', 'kk', 'ml', 'eu', 'fy', 'ie', 'ne', 'te', 'af', 'tg', 'sa', 'pa', 'bs', 'ky', 'mg', 'cy', 'be', 'zh-min-nan', - 'ast', 'ku', 'tk', 'uz', 'su', 'vo', 'mn', 'my', + 'ku', 'uz', 'su', 'vo', ] self.langs = dict([(lang, '%s.wikibooks.org' % lang) for lang in self.languages_by_size]) Modified: branches/rewrite/pywikibot/families/wikinews_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikinews_family.py 2012-06-17 17:23:02 UTC (rev 10365) +++ branches/rewrite/pywikibot/families/wikinews_family.py 2012-06-17 17:45:48 UTC (rev 10366) @@ -13,7 +13,7 @@ self.languages_by_size = [ 'sr', 'en', 'pl', 'fr', 'de', 'it', 'es', 'pt', 'zh', 'ru', 'ja', 'sv', 'ta', 'ca', 'el', 'cs', 'fa', 'ar', 'fi', 'ro', 'he', 'bg', - 'tr', 'sd', 'sq', 'uk', 'no', 'bs', 'eo', 'ko', + 'tr', 'sq', 'uk', 'no', 'bs', 'eo', 'ko', ] self.langs = dict([(lang, '%s.wikinews.org' % lang) for lang in self.languages_by_size]) Modified: branches/rewrite/pywikibot/families/wikipedia_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikipedia_family.py 2012-06-17 17:23:02 UTC (rev 10365) +++ branches/rewrite/pywikibot/families/wikipedia_family.py 2012-06-17 17:45:48 UTC (rev 10366) @@ -15,29 +15,29 @@ 'sv', 'vi', 'uk', 'ca', 'no', 'fi', 'cs', 'hu', 'ko', 'fa', 'id', 'tr', 'ro', 'ar', 'sk', 'eo', 'da', 'sr', 'lt', 'ms', 'eu', 'he', 'sl', 'bg', 'kk', 'vo', 'war', 'hr', 'hi', 'et', 'az', 'gl', - 'simple', 'nn', 'la', 'th', 'el', 'new', 'roa-rup', 'oc', 'sh', - 'ka', 'mk', 'tl', 'ht', 'pms', 'te', 'ta', 'be-x-old', 'ceb', 'be', + 'simple', 'nn', 'la', 'el', 'th', 'new', 'roa-rup', 'oc', 'sh', + 'ka', 'mk', 'tl', 'ht', 'pms', 'te', 'ta', 'be-x-old', 'be', 'ceb', 'br', 'lv', 'sq', 'jv', 'mg', 'cy', 'lb', 'mr', 'is', 'bs', 'yo', - 'an', 'hy', 'fy', 'bpy', 'lmo', 'pnb', 'ml', 'sw', 'bn', 'io', 'af', - 'gu', 'zh-yue', 'ne', 'nds', 'ku', 'ast', 'ur', 'scn', 'su', 'qu', - 'diq', 'ba', 'tt', 'my', 'ga', 'cv', 'ia', 'nap', 'bat-smg', - 'map-bms', 'wa', 'als', 'kn', 'am', 'uz', 'bug', 'tg', 'gd', - 'zh-min-nan', 'yi', 'vec', 'hif', 'sco', 'roa-tara', 'os', 'arz', - 'nah', 'sah', 'mn', 'sa', 'mzn', 'pam', 'hsb', 'mi', 'li', 'ky', - 'si', 'co', 'gan', 'ckb', 'glk', 'bo', 'fo', 'bar', 'bcl', 'ilo', - 'mrj', 'fiu-vro', 'nds-nl', 'tk', 'vls', 'se', 'gv', 'ps', 'rue', - 'dv', 'nrm', 'pag', 'koi', 'pa', 'rm', 'km', 'kv', 'udm', 'csb', - 'mhr', 'fur', 'mt', 'wuu', 'lij', 'ug', 'lad', 'zea', 'pi', 'sc', - 'bh', 'zh-classical', 'nov', 'or', 'ksh', 'ang', 'kw', 'so', 'xmf', - 'nv', 'stq', 'hak', 'ay', 'frp', 'frr', 'ext', 'szl', 'pcd', 'ie', - 'gag', 'haw', 'xal', 'ln', 'rw', 'pdc', 'pfl', 'krc', 'crh', 'eml', - 'ace', 'gn', 'to', 'ce', 'kl', 'arc', 'myv', 'dsb', 'vep', 'pap', - 'bjn', 'as', 'tpi', 'lbe', 'wo', 'mdf', 'jbo', 'kab', 'av', 'sn', - 'cbk-zam', 'ty', 'srn', 'kbd', 'lo', 'ab', 'lez', 'mwl', 'ltg', + 'an', 'hy', 'fy', 'lmo', 'bpy', 'pnb', 'ml', 'sw', 'bn', 'io', 'af', + 'gu', 'zh-yue', 'ne', 'nds', 'ku', 'ur', 'ast', 'scn', 'su', 'qu', + 'diq', 'ba', 'tt', 'my', 'ga', 'uz', 'cv', 'ia', 'nap', 'bat-smg', + 'map-bms', 'wa', 'als', 'kn', 'am', 'bug', 'tg', 'gd', 'zh-min-nan', + 'yi', 'vec', 'sco', 'hif', 'roa-tara', 'arz', 'os', 'nah', 'sah', + 'mn', 'mzn', 'sa', 'pam', 'hsb', 'ky', 'mi', 'li', 'si', 'co', + 'gan', 'ckb', 'glk', 'bo', 'fo', 'bar', 'bcl', 'ilo', 'mrj', + 'fiu-vro', 'nds-nl', 'tk', 'vls', 'se', 'ps', 'gv', 'rue', 'dv', + 'nrm', 'pag', 'koi', 'pa', 'rm', 'km', 'kv', 'udm', 'csb', 'mhr', + 'fur', 'mt', 'wuu', 'lij', 'ug', 'zea', 'lad', 'pi', 'sc', 'bh', + 'zh-classical', 'or', 'nov', 'ksh', 'ang', 'kw', 'xmf', 'so', 'nv', + 'stq', 'hak', 'ay', 'frr', 'frp', 'ext', 'szl', 'pcd', 'ie', 'gag', + 'haw', 'xal', 'ln', 'rw', 'pdc', 'pfl', 'krc', 'crh', 'eml', 'ace', + 'gn', 'vep', 'to', 'ce', 'kl', 'arc', 'myv', 'dsb', 'as', 'pap', + 'bjn', 'tpi', 'lbe', 'mdf', 'wo', 'jbo', 'kab', 'av', 'sn', + 'cbk-zam', 'ty', 'srn', 'kbd', 'lo', 'lez', 'ab', 'mwl', 'ltg', 'na', 'ig', 'kg', 'tet', 'za', 'kaa', 'nso', 'zu', 'rmy', 'cu', - 'tn', 'chr', 'got', 'sm', 'bi', 'chy', 'bm', 'iu', 'ik', 'pih', + 'tn', 'chr', 'chy', 'got', 'sm', 'bi', 'bm', 'iu', 'ik', 'pih', 'ss', 'sd', 'pnt', 'cdo', 'ee', 'ha', 'ti', 'bxr', 'ts', 'om', 'ks', - 'ki', 've', 'sg', 'rn', 'dz', 'cr', 'lg', 'ak', 'tum', 'fj', 'st', + 'ki', 've', 'sg', 'rn', 'cr', 'dz', 'lg', 'ak', 'tum', 'fj', 'st', 'tw', 'ch', 'ny', 'ff', 'xh', ] Modified: branches/rewrite/pywikibot/families/wikiquote_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikiquote_family.py 2012-06-17 17:23:02 UTC (rev 10365) +++ branches/rewrite/pywikibot/families/wikiquote_family.py 2012-06-17 17:45:48 UTC (rev 10366) @@ -14,10 +14,10 @@ 'en', 'pl', 'it', 'ru', 'fr', 'de', 'pt', 'es', 'sk', 'bg', 'cs', 'bs', 'tr', 'sl', 'he', 'eo', 'lt', 'el', 'uk', 'id', 'zh', 'fa', 'hu', 'fi', 'nl', 'sv', 'li', 'no', 'nn', 'ja', 'az', 'hy', 'ca', - 'et', 'ar', 'hr', 'cy', 'ka', 'ko', 'ml', 'gl', 'sr', 'ro', 'ku', + 'et', 'ar', 'hr', 'cy', 'ka', 'ko', 'gl', 'ml', 'sr', 'ro', 'ku', 'te', 'th', 'is', 'eu', 'da', 'af', 'sq', 'vi', 'ta', 'hi', 'la', - 'br', 'be', 'mr', 'uz', 'ur', 'zh-min-nan', 'gu', 'su', 'lb', 'kn', - 'wo', 'ky', 'co', 'am', + 'br', 'be', 'mr', 'uz', 'ur', 'zh-min-nan', 'gu', 'su', 'kn', 'wo', + 'ky', 'am', ] self.langs = dict([(lang, '%s.wikiquote.org' % lang) for lang in self.languages_by_size]) Modified: branches/rewrite/pywikibot/families/wikisource_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikisource_family.py 2012-06-17 17:23:02 UTC (rev 10365) +++ branches/rewrite/pywikibot/families/wikisource_family.py 2012-06-17 17:45:48 UTC (rev 10366) @@ -13,9 +13,9 @@ self.languages_by_size = [ 'fr', 'en', 'de', 'ru', 'it', 'zh', 'pt', 'he', 'pl', 'es', 'sv', 'fa', 'hu', 'ar', 'ca', 'cs', 'ko', 'sl', 'ro', 'fi', 'vi', 'te', - 'sa', 'el', 'bn', 'th', 'hr', 'hy', 'nl', 'no', 'sr', 'la', 'vec', - 'ml', 'tr', 'ja', 'yi', 'uk', 'br', 'mk', 'id', 'ta', 'is', 'eo', - 'da', 'be', 'li', 'bg', 'sah', 'bs', 'gu', 'et', 'az', 'gl', 'mr', + 'sa', 'el', 'bn', 'th', 'hr', 'hy', 'no', 'sr', 'nl', 'la', 'vec', + 'ml', 'tr', 'ja', 'yi', 'br', 'uk', 'mk', 'id', 'ta', 'is', 'eo', + 'da', 'be', 'li', 'bs', 'bg', 'sah', 'gu', 'et', 'az', 'gl', 'mr', 'lt', 'kn', 'cy', 'zh-min-nan', 'sk', 'fo', ] Modified: branches/rewrite/pywikibot/families/wiktionary_family.py =================================================================== --- branches/rewrite/pywikibot/families/wiktionary_family.py 2012-06-17 17:23:02 UTC (rev 10365) +++ branches/rewrite/pywikibot/families/wiktionary_family.py 2012-06-17 17:45:48 UTC (rev 10366) @@ -11,20 +11,20 @@ self.name = 'wiktionary' self.languages_by_size = [ - 'en', 'fr', 'mg', 'zh', 'lt', 'ru', 'ko', 'tr', 'el', 'pl', 'ta', - 'vi', 'de', 'kn', 'sv', 'io', 'fi', 'nl', 'hu', 'pt', 'no', 'my', + 'en', 'fr', 'mg', 'zh', 'lt', 'ru', 'ko', 'el', 'tr', 'pl', 'ta', + 'sv', 'vi', 'de', 'kn', 'io', 'fi', 'nl', 'hu', 'pt', 'no', 'my', 'id', 'it', 'li', 'ml', 'et', 'ja', 'es', 'fa', 'ku', 'ar', 'ro', - 'lo', 'gl', 'ca', 'cs', 'uk', 'eu', 'bg', 'eo', 'te', 'vo', 'br', + 'lo', 'gl', 'cs', 'ca', 'uk', 'eu', 'bg', 'eo', 'te', 'vo', 'br', 'oc', 'is', 'hr', 'th', 'simple', 'scn', 'sr', 'af', 'cy', 'fy', - 'sw', 'tl', 'ast', 'fj', 'ur', 'he', 'la', 'sq', 'da', 'hy', 'wa', - 'sl', 'zh-min-nan', 'tt', 'hi', 'az', 'lv', 'ka', 'lb', 'pnb', 'nn', + 'sw', 'tl', 'ast', 'fj', 'ur', 'he', 'la', 'sq', 'wa', 'da', 'hy', + 'sl', 'zh-min-nan', 'tt', 'hi', 'az', 'lv', 'ka', 'pnb', 'lb', 'nn', 'tk', 'hsb', 'kk', 'bs', 'nah', 'km', 'mk', 'be', 'wo', 'ga', 'ang', 'co', 'ms', 'gn', 'mr', 'csb', 'sk', 'st', 'nds', 'ia', 'si', 'sh', - 'sd', 'tg', 'ug', 'ky', 'kl', 'an', 'zu', 'gu', 'mn', 'fo', 'kw', - 'rw', 'ss', 'ie', 'qu', 'gv', 'om', 'ps', 'roa-rup', 'iu', 'bn', - 'so', 'sa', 'chr', 'su', 'za', 'gd', 'am', 'mt', 'tpi', 'mi', 'ik', - 'yi', 'ln', 'uz', 'ti', 'sg', 'jv', 'na', 'pa', 'sm', 'or', 'tn', - 'jbo', 'dv', 'ne', 'ha', 'ks', 'ay', 'ts', 'dz', + 'sd', 'tg', 'ug', 'ky', 'kl', 'an', 'zu', 'mn', 'gu', 'fo', 'ps', + 'kw', 'rw', 'ss', 'ie', 'qu', 'gv', 'om', 'roa-rup', 'iu', 'bn', + 'sa', 'so', 'chr', 'su', 'za', 'gd', 'am', 'mt', 'tpi', 'mi', 'ik', + 'yi', 'ln', 'uz', 'sm', 'ti', 'sg', 'jv', 'na', 'or', 'pa', 'tn', + 'jbo', 'dv', 'ne', 'ha', 'ks', 'ay', 'ts', ] self.langs = dict([(lang, '%s.wiktionary.org' % lang) for lang in self.languages_by_size])
1
0
0
0
SVN: [10365] trunk/pywikipedia/families/wiktionary_family.py
by xqt@svn.wikimedia.org
17 Jun '12
17 Jun '12
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10365
Revision: 10365 Author: xqt Date: 2012-06-17 17:23:02 +0000 (Sun, 17 Jun 2012) Log Message: ----------- wikisaurus namespace alias for en-wiktionary Modified Paths: -------------- trunk/pywikipedia/families/wiktionary_family.py Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2012-06-17 15:42:55 UTC (rev 10364) +++ trunk/pywikipedia/families/wiktionary_family.py 2012-06-17 17:23:02 UTC (rev 10365) @@ -552,7 +552,7 @@ } self.namespaces[110] = { - 'en': u'Wikisaurus', + 'en': [u'Wikisaurus', u'WS'], 'is': u'Samheitasafn', 'ko': u'미주알고주알', }
1
0
0
0
SVN: [10364] trunk/pywikipedia/commonscat.py
by amir@svn.wikimedia.org
17 Jun '12
17 Jun '12
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10364
Revision: 10364 Author: amir Date: 2012-06-17 15:42:55 +0000 (Sun, 17 Jun 2012) Log Message: ----------- adding ignoretemplates for fa Modified Paths: -------------- trunk/pywikipedia/commonscat.py Modified: trunk/pywikipedia/commonscat.py =================================================================== --- trunk/pywikipedia/commonscat.py 2012-06-17 15:33:56 UTC (rev 10363) +++ trunk/pywikipedia/commonscat.py 2012-06-17 15:42:55 UTC (rev 10364) @@ -156,7 +156,9 @@ (u'Projektoj', 'commonscat=')], 'es' : [u'Commons', u'IprCommonscat'], 'eu' : [u'Commons'], - 'fa' : [u'Commons', u'ویکیانبار'], + 'fa' : [u'Commons', u'ویکیانبار', + u'Category redirect',u'رده بهتر', + u'جعبه پیوند به پروژههای خواهر',u'در پروژههای خواهر',u'پروژههای خواهر'], 'fi' : [u'Commonscat-rivi', u'Commons-rivi', u'Commons'], 'fr' : [u'Commons', u'Commons-inline', (u'Autres projets', 'commons=')], 'fy' : [u'Commons', u'CommonsLyts'],
1
0
0
0
SVN: [10363] trunk/pywikipedia/commonscat.py
by amir@svn.wikimedia.org
17 Jun '12
17 Jun '12
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10363
Revision: 10363 Author: amir Date: 2012-06-17 15:33:56 +0000 (Sun, 17 Jun 2012) Log Message: ----------- Adding another thing per request in my talk page Modified Paths: -------------- trunk/pywikipedia/commonscat.py Modified: trunk/pywikipedia/commonscat.py =================================================================== --- trunk/pywikipedia/commonscat.py 2012-06-17 15:16:53 UTC (rev 10362) +++ trunk/pywikipedia/commonscat.py 2012-06-17 15:33:56 UTC (rev 10363) @@ -88,7 +88,7 @@ u'Commonscat-inline']), 'eu' : (u'Commonskat', [u'Commonscat']), 'fa' : (u'ویکیانبار-رده', [u'Commonscat', u'Commons cat', - u'انبار رده', u'Commons category',u'انبار-رده',u'جعبه پیوند به پروژههای خواهر',u'در پروژههای خواهر']), + u'انبار رده', u'Commons category',u'انبار-رده',u'جعبه پیوند به پروژههای خواهر',u'در پروژههای خواهر',u'پروژههای خواهر']), 'fr' : (u'Commonscat', [u'CommonsCat', u'Commons cat', u'Commons category']), 'frp' : (u'Commonscat', [u'CommonsCat']),
1
0
0
0
← Newer
1
...
4
5
6
7
8
9
10
...
18
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Results per page:
10
25
50
100
200