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
November 2011
----- 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
10 participants
65 discussions
Start a n
N
ew thread
SVN: [9752] trunk/pywikipedia/userinterfaces/transliteration.py
by xqt@svn.wikimedia.org
11 Nov '11
11 Nov '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9752
Revision: 9752 Author: xqt Date: 2011-11-11 08:58:24 +0000 (Fri, 11 Nov 2011) Log Message: ----------- +version id Modified Paths: -------------- trunk/pywikipedia/userinterfaces/transliteration.py Modified: trunk/pywikipedia/userinterfaces/transliteration.py =================================================================== --- trunk/pywikipedia/userinterfaces/transliteration.py 2011-11-11 08:56:39 UTC (rev 9751) +++ trunk/pywikipedia/userinterfaces/transliteration.py 2011-11-11 08:58:24 UTC (rev 9752) @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +__version__ = '$Id$' + + class transliterator(object): def __init__(self): self.trans = {}
1
0
0
0
SVN: [9751] trunk/pywikipedia/userinterfaces/wxpython_interface.py
by xqt@svn.wikimedia.org
11 Nov '11
11 Nov '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9751
Revision: 9751 Author: xqt Date: 2011-11-11 08:56:39 +0000 (Fri, 11 Nov 2011) Log Message: ----------- utf-8 coding Modified Paths: -------------- trunk/pywikipedia/userinterfaces/wxpython_interface.py Modified: trunk/pywikipedia/userinterfaces/wxpython_interface.py =================================================================== --- trunk/pywikipedia/userinterfaces/wxpython_interface.py 2011-11-11 08:50:34 UTC (rev 9750) +++ trunk/pywikipedia/userinterfaces/wxpython_interface.py 2011-11-11 08:56:39 UTC (rev 9751) @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- __version__ = '$Id$' import sys; sys.path.append('..') @@ -9,6 +9,7 @@ app = wx.App() + class UI(terminal_interface.UI): def __init__(self): pass @@ -56,9 +57,9 @@ elif default and answer=='':# empty string entered return default + if __name__ == '__main__': ui = UI() print ui.input('Test?') app.MainLoop() -
1
0
0
0
SVN: [9750] trunk/pywikipedia/query.py
by xqt@svn.wikimedia.org
11 Nov '11
11 Nov '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9750
Revision: 9750 Author: xqt Date: 2011-11-11 08:50:34 +0000 (Fri, 11 Nov 2011) Log Message: ----------- strip white space Modified Paths: -------------- trunk/pywikipedia/query.py Modified: trunk/pywikipedia/query.py =================================================================== --- trunk/pywikipedia/query.py 2011-11-11 03:29:50 UTC (rev 9749) +++ trunk/pywikipedia/query.py 2011-11-11 08:50:34 UTC (rev 9750) @@ -168,9 +168,6 @@ retry_idle_time = 30 else: wikipedia.debugDump('ApiGetDataParse', site, str(error) + '\n%s\n%s' % (site.hostname(), path), jsontext) - - - raise lastError def GetInterwikies(site, titles, extraParams = None ):
1
0
0
0
SVN: [9749] trunk/pywikipedia/families/meta_family.py
by xqt@svn.wikimedia.org
10 Nov '11
10 Nov '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9749
Revision: 9749 Author: xqt Date: 2011-11-11 03:29:50 +0000 (Fri, 11 Nov 2011) Log Message: ----------- translations namespace Modified Paths: -------------- trunk/pywikipedia/families/meta_family.py Modified: trunk/pywikipedia/families/meta_family.py =================================================================== --- trunk/pywikipedia/families/meta_family.py 2011-11-11 03:28:35 UTC (rev 9748) +++ trunk/pywikipedia/families/meta_family.py 2011-11-11 03:29:50 UTC (rev 9749) @@ -138,6 +138,12 @@ self.namespaces[203] = { '_default': u'Research talk', } + self.namespaces[1198] = { + '_default': u'Translations', + } + self.namespaces[1199] = { + '_default': u'Translations talk', + } self.interwiki_forward = 'wikipedia' self.cross_allowed = ['meta',]
1
0
0
0
SVN: [9748] trunk/pywikipedia/families/test_family.py
by xqt@svn.wikimedia.org
10 Nov '11
10 Nov '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9748
Revision: 9748 Author: xqt Date: 2011-11-11 03:28:35 +0000 (Fri, 11 Nov 2011) Log Message: ----------- translations namespace Modified Paths: -------------- trunk/pywikipedia/families/test_family.py Modified: trunk/pywikipedia/families/test_family.py =================================================================== --- trunk/pywikipedia/families/test_family.py 2011-11-11 03:21:15 UTC (rev 9747) +++ trunk/pywikipedia/families/test_family.py 2011-11-11 03:28:35 UTC (rev 9748) @@ -139,6 +139,12 @@ self.namespaces[133] = { '_default': u'نقاش المساعدة', } + self.namespaces[1198] = { + '_default': u'Translations', + } + self.namespaces[1199] = { + '_default': u'Translations talk', + } self.interwiki_forward = 'wikipedia' self.cross_projects = [ 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity',
1
0
0
0
SVN: [9747] trunk/pywikipedia/families/wikisource_family.py
by xqt@svn.wikimedia.org
10 Nov '11
10 Nov '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9747
Revision: 9747 Author: xqt Date: 2011-11-11 03:21:15 +0000 (Fri, 11 Nov 2011) Log Message: ----------- Autor namespace for eo wikisource Modified Paths: -------------- trunk/pywikipedia/families/wikisource_family.py Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2011-11-11 03:09:49 UTC (rev 9746) +++ trunk/pywikipedia/families/wikisource_family.py 2011-11-11 03:21:15 UTC (rev 9747) @@ -226,6 +226,7 @@ 'de': u'Seite', 'el': u'Βιβλίο', 'en': u'Author', + 'eo': u'Aŭtoro', 'es': u'Página', 'et': u'Lehekülg', 'fa': u'مؤلف', @@ -258,6 +259,7 @@ 'de': u'Seite Diskussion', 'el': u'Συζήτηση βιβλίου', 'en': u'Author talk', + 'eo': u'Aŭtoro-Diskuto', 'es': u'Página Discusión', 'et': u'Lehekülje arutelu', 'fa': u'بحث مؤلف',
1
0
0
0
SVN: [9746] trunk/pywikipedia/families/wikipedia_family.py
by xqt@svn.wikimedia.org
10 Nov '11
10 Nov '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9746
Revision: 9746 Author: xqt Date: 2011-11-11 03:09:49 +0000 (Fri, 11 Nov 2011) Log Message: ----------- update namespace aliases for ja-wiki Modified Paths: -------------- trunk/pywikipedia/families/wikipedia_family.py Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2011-11-11 02:36:29 UTC (rev 9745) +++ trunk/pywikipedia/families/wikipedia_family.py 2011-11-11 03:09:49 UTC (rev 9746) @@ -62,7 +62,16 @@ self.namespaces[11]['hi'] = [u'साँचा वार्ता', u'सावा'] self.namespaces[14]['hi'] = [u'श्रेणी', u'श्र', u'C'] self.namespaces[15]['hi'] = [u'श्रेणी वार्ता', u'श्रवा', u'CT'] + self.namespaces[1]['ja'] = [u'ノート', u'トーク'] self.namespaces[3]['ja'] = [u'利用者‐会話', u'利用者・トーク'] + self.namespaces[7]['ja'] = [u'ファイル‐ノート', u'ファイル・トーク'] + self.namespaces[9]['ja'] = [u'MediaWiki‐ノート', u'MediaWiki・トーク'] + self.namespaces[10]['ja'] = [u'Template', u'テンプレート'] + self.namespaces[11]['ja'] = [u'Template‐ノート', u'テンプレート・トーク'] + self.namespaces[12]['ja'] = [u'Help', u'ヘルプ'] + self.namespaces[13]['ja'] = [u'Help‐ノート', u'ヘルプ・トーク'] + self.namespaces[14]['ja'] = [u'Category', u'カテゴリ'] + self.namespaces[15]['ja'] = [u'Category‐ノート', u'カテゴリ・トーク'] self.namespaces[12]['nl'] = [u'Help', u'H'] self.namespaces[2]['pl'] = [u'Wikipedysta', u'Wikipedystka'] self.namespaces[2]['pt'] = [u'Usuário', u'Utilizador', u'Utilizadora']
1
0
0
0
SVN: [9745] branches/rewrite/pywikibot/family.py
by xqt@svn.wikimedia.org
10 Nov '11
10 Nov '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9745
Revision: 9745 Author: xqt Date: 2011-11-11 02:36:29 +0000 (Fri, 11 Nov 2011) Log Message: ----------- doi known_family error, bug #3436114; update from trunk r9744 Modified Paths: -------------- branches/rewrite/pywikibot/family.py Modified: branches/rewrite/pywikibot/family.py =================================================================== --- branches/rewrite/pywikibot/family.py 2011-11-11 02:33:55 UTC (rev 9744) +++ branches/rewrite/pywikibot/family.py 2011-11-11 02:36:29 UTC (rev 9745) @@ -208,7 +208,7 @@ 'dmoz': 'dmoz', 'dmozs': 'dmozs', 'docbook': 'docbook', - 'doi': 'doi', +## 'doi': 'doi', 'doom_wiki': 'doom_wiki', 'download': 'download', 'drae': 'drae',
1
0
0
0
SVN: [9744] trunk/pywikipedia/family.py
by xqt@svn.wikimedia.org
10 Nov '11
10 Nov '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9744
Revision: 9744 Author: xqt Date: 2011-11-11 02:33:55 +0000 (Fri, 11 Nov 2011) Log Message: ----------- doi known_family error, bug #3436114 Modified Paths: -------------- trunk/pywikipedia/family.py Modified: trunk/pywikipedia/family.py =================================================================== --- trunk/pywikipedia/family.py 2011-11-11 00:35:04 UTC (rev 9743) +++ trunk/pywikipedia/family.py 2011-11-11 02:33:55 UTC (rev 9744) @@ -3165,7 +3165,7 @@ 'dmoz': 'dmoz', 'dmozs': 'dmozs', 'docbook': 'docbook', - 'doi': 'doi', +## 'doi': 'doi', 'doom_wiki': 'doom_wiki', 'download': 'download', 'drae': 'drae',
1
0
0
0
SVN: [9743] trunk/pywikipedia/wikipedia.py
by xqt@svn.wikimedia.org
10 Nov '11
10 Nov '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9743
Revision: 9743 Author: xqt Date: 2011-11-11 00:35:04 +0000 (Fri, 11 Nov 2011) Log Message: ----------- mw 1.18 changes: watch token is needed for watch action (bug reported by Betacommand) Modified Paths: -------------- trunk/pywikipedia/wikipedia.py Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2011-11-11 00:29:54 UTC (rev 9742) +++ trunk/pywikipedia/wikipedia.py 2011-11-11 00:35:04 UTC (rev 9743) @@ -2929,6 +2929,19 @@ 'action': 'watch', 'title': self.title() } + # watchtoken is needed for mw 1.18 + # TODO: Find a better implementation for other actions too + # who needs a token + if self.site().versionnumber() >= 18: + api = { + 'action': 'query', + 'prop': 'info', + 'titles' : self.title(), + 'intoken' : 'watch', + } + data = query.GetData(api, self.site()) + key = data['query']['pages'].keys()[0] + params['token'] = data['query']['pages'][key]['watchtoken'] if unwatch: params['unwatch'] = '' @@ -2947,8 +2960,9 @@ def unwatch(self): self.watch(unwatch=True) - def move(self, newtitle, reason=None, movetalkpage=True, movesubpages=False, sysop=False, - throttle=True, deleteAndMove=False, safe=True, fixredirects=True, leaveRedirect=True): + def move(self, newtitle, reason=None, movetalkpage=True, movesubpages=False, + sysop=False, throttle=True, deleteAndMove=False, safe=True, + fixredirects=True, leaveRedirect=True): """Move this page to new title. * fixredirects has no effect in MW < 1.13
1
0
0
0
← Newer
1
2
3
4
5
6
7
Older →
Jump to page:
1
2
3
4
5
6
7
Results per page:
10
25
50
100
200