Bugs item #3582644, was opened at 2012-11-02 03:05
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582644&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: rewrite
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: xqt (xqt)
>Assigned to: xqt (xqt)
Summary: Missing parameters in Page.templatesWithParams()
Initial Comment:
C:\pwb\rewrite>pwb.py version
Pywikibot branches/rewrite/ (r10647, 2012/11/01, 20:25:15)
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
unicode test: ok
There is a difference on this method between trunk and rewrite which caused that error:
Traceback (most recent call last):
File "C:\pwb\rewrite\pwb.py", line 42, in <module>
execfile(sys.argv[0])
File "C:\pwb\rewrite\scripts\interwiki.py", line 2531, in <module>
main()
File "C:\pwb\rewrite\scripts\interwiki.py", line 2505, in main
bot.run()
File "C:\pwb\rewrite\scripts\interwiki.py", line 2263, in run
self.queryStep()
File "C:\pwb\rewrite\scripts\interwiki.py", line 2241, in queryStep
subj.finish(self)
File "C:\pwb\rewrite\scripts\interwiki.py", line 1699, in finish
if self.replaceLinks(page, new, bot):
File "C:\pwb\rewrite\scripts\interwiki.py", line 1854, in replaceLinks
if not botMayEdit(page):
File "C:\pwb\rewrite\scripts\interwiki.py", line 2333, in botMayEdit
templates = page.templatesWithParams(get_redirect=True);
TypeError: templatesWithParams() got an unexpected keyword argument 'get_redirect'
These parameters where introduced in trunk r5496 but the code base of the rewrite was r5088
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-11-04 01:01
Message:
I marked get_redirect parameter as deprecated_arg in r10649 and removed it
at that call in r10651. I hope this would be ok.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582644&group_…
Bugs item #3582867, was opened at 2012-11-03 15:19
Message generated for change (Tracker Item Submitted) made by yfdyh000
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582867&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: YFdyh000 (yfdyh000)
Assigned to: Nobody/Anonymous (nobody)
Summary: add ignoreTemplates for zh
Initial Comment:
add ignoreTemplates in interwiki.py:
'zh' : [u'inuse'],
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582867&group_…
Bugs item #3582724, was opened at 2012-11-02 11:46
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582724&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
>Status: Closed
>Resolution: Rejected
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: summary messages for ru
Initial Comment:
somebody has introduced format inconsistency into \i18n\interwiki.py
please change for Russian (ru):
'interwiki-modifying-from': u'Робот: изменение %(from)s на %(modifying)s',
to
'interwiki-modifying-from': u'робот изменил: %(from)s на %(modifying)s',
for all iw bot messages being consistent in format
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-11-03 03:37
Message:
done via twn
http://translatewiki.net/w/i.php?title=Pywikipedia%3AInterwiki-modifying-fr…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582724&group_…
Bugs item #3582724, was opened at 2012-11-02 11:46
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582724&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: summary messages for ru
Initial Comment:
somebody has introduced format inconsistency into \i18n\interwiki.py
please change for Russian (ru):
'interwiki-modifying-from': u'Робот: изменение %(from)s на %(modifying)s',
to
'interwiki-modifying-from': u'робот изменил: %(from)s на %(modifying)s',
for all iw bot messages being consistent in format
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582724&group_…
Bugs item #3582644, was opened at 2012-11-02 03:05
Message generated for change (Tracker Item Submitted) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582644&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: rewrite
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: xqt (xqt)
Assigned to: Russell Blau (russblau)
Summary: Missing parameters in Page.templatesWithParams()
Initial Comment:
C:\pwb\rewrite>pwb.py version
Pywikibot branches/rewrite/ (r10647, 2012/11/01, 20:25:15)
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
unicode test: ok
There is a difference on this method between trunk and rewrite which caused that error:
Traceback (most recent call last):
File "C:\pwb\rewrite\pwb.py", line 42, in <module>
execfile(sys.argv[0])
File "C:\pwb\rewrite\scripts\interwiki.py", line 2531, in <module>
main()
File "C:\pwb\rewrite\scripts\interwiki.py", line 2505, in main
bot.run()
File "C:\pwb\rewrite\scripts\interwiki.py", line 2263, in run
self.queryStep()
File "C:\pwb\rewrite\scripts\interwiki.py", line 2241, in queryStep
subj.finish(self)
File "C:\pwb\rewrite\scripts\interwiki.py", line 1699, in finish
if self.replaceLinks(page, new, bot):
File "C:\pwb\rewrite\scripts\interwiki.py", line 1854, in replaceLinks
if not botMayEdit(page):
File "C:\pwb\rewrite\scripts\interwiki.py", line 2333, in botMayEdit
templates = page.templatesWithParams(get_redirect=True);
TypeError: templatesWithParams() got an unexpected keyword argument 'get_redirect'
These parameters where introduced in trunk r5496 but the code base of the rewrite was r5088
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582644&group_…
Bugs item #3569058, was opened at 2012-09-18 12:27
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3569058&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: rewrite
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Morten Wang (nettrom)
Assigned to: Russell Blau (russblau)
Summary: total-parameter for Page.getVersionHistory is incorrect
Initial Comment:
The documentation for getVersionHistory() describes the "total" parameter with: iterate no more than this number of revisions in total
This might be interpreted as getVersionHistory(total=25) would result in a revision list with len()==25, but that appears to not be the case. The attached test script prints out lengths that instead suggests the number of revisions returned equals sum(range(total+1)) (the sum of integers {1,2,...,25} is 325).
Output of version.py:
Pywikibot [http] branches/rewrite/scripts (r10525, 2012/09/16, 02:32:32)
Python 2.7.1 (r271:86832, Feb 8 2011, 09:38:37)
[GCC 4.2.3]
unicode test: triggers problem #3081100
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2012-11-01 13:25
Message:
Fixed in rev. 10647
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3569058&group_…
Bugs item #2930108, was opened at 2010-01-11 13:34
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2930108&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
>Resolution: Wont Fix
Priority: 1
Private: No
Submitted By: Multichill (multichill)
Assigned to: xqt (xqt)
Summary: -usercontribs: broken
Initial Comment:
The pagegenerator -usercontribs should return all the edits by a certain user. It doesn't. It stops after a couple of pages:
D:\Wikipedia\pywikipedia>version.py
Pywikipedia [svn+ssh] multichill@trunk/pywikipedia (r7850, 2010/01/02, 12:59:20)
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
D:\Wikipedia\pywikipedia>imagecopy.py -lang:en -usercontribs:R.J.Oosterbaan
WARNING: Configuration variable 'CommonsDelinker' is defined but unknown. Misspe
lled?
Getting 60 pages from wikipedia:en...
Skipping File:HablehRud.JPG
Skipping File:PunataFan.png
Skipping File:KhuzdarFan.JPG
Skipping File:Flood&recession.JPG
Skipping File:BundPhoto.JPG
Skipping File:OkavangoPhoto.JPG
Skipping File:OkavangoMap.JPG
Skipping File:PunataReserv.JPG
Skipping File:PunataTransmis.JPG
Skipping File:PunataRegion.JPG
Skipping File:PunataCropping.JPG
Skipping File:StripCropping.jpg
Skipping File:GarmsarWatBal.JPG
Skipping File:GarmsarAquifer.JPG
Skipping File:GarmsarMap.JPG
Skipping File:Well&Karez.JPG
Skipping File:KhuzdarBund.JPG
Skipping File:KhuzdarAgri.JPG
Skipping File:OkavangoFan.png
Skipping File:GarmsarFan.png
Skipping File:TidalCrossSection.GIF
Getting 29 pages from wikipedia:en...
Skipping File:WellDrain.gif
Skipping File:WellDrain.png
Skipping File:AbadanIsland.GIF
Skipping File:Drainsection.PNG
Skipping File:AnisotropicSoil.PNG
Skipping File:DrainSection.jpg
Still 1 active threads, lets wait
All threads are done
D:\Wikipedia\pywikipedia>
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-11-01 02:32
Message:
already implemented in rewrite branch. u may limit the processed pages by
-limit parameter or leave it and you'll get all of them. Is that enough?
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2010-02-18 22:34
Message:
The use of ; is not very practical. That's a special character in most unix
shells:
replace.py -usercontribs:Multichill;9999 "blaaa" ""
-bash: replace.py: command not found
-bash: 9999: command not found
The default should be -1 (unlimited)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-02-18 22:12
Message:
-usercontribs:Username;99999999 does the job too or any other high number
which does not reach the number of distinct edits (might be a work-around)
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2010-02-17 11:44
Message:
This is not fixed. -usercontribs:<username> should return all edits by this
user, not just the first n edits.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-02-16 01:56
Message:
done in r7938
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2930108&group_…
Bugs item #2930108, was opened at 2010-01-11 13:34
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2930108&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: Accepted
>Priority: 1
Private: No
Submitted By: Multichill (multichill)
Assigned to: xqt (xqt)
Summary: -usercontribs: broken
Initial Comment:
The pagegenerator -usercontribs should return all the edits by a certain user. It doesn't. It stops after a couple of pages:
D:\Wikipedia\pywikipedia>version.py
Pywikipedia [svn+ssh] multichill@trunk/pywikipedia (r7850, 2010/01/02, 12:59:20)
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
D:\Wikipedia\pywikipedia>imagecopy.py -lang:en -usercontribs:R.J.Oosterbaan
WARNING: Configuration variable 'CommonsDelinker' is defined but unknown. Misspe
lled?
Getting 60 pages from wikipedia:en...
Skipping File:HablehRud.JPG
Skipping File:PunataFan.png
Skipping File:KhuzdarFan.JPG
Skipping File:Flood&recession.JPG
Skipping File:BundPhoto.JPG
Skipping File:OkavangoPhoto.JPG
Skipping File:OkavangoMap.JPG
Skipping File:PunataReserv.JPG
Skipping File:PunataTransmis.JPG
Skipping File:PunataRegion.JPG
Skipping File:PunataCropping.JPG
Skipping File:StripCropping.jpg
Skipping File:GarmsarWatBal.JPG
Skipping File:GarmsarAquifer.JPG
Skipping File:GarmsarMap.JPG
Skipping File:Well&Karez.JPG
Skipping File:KhuzdarBund.JPG
Skipping File:KhuzdarAgri.JPG
Skipping File:OkavangoFan.png
Skipping File:GarmsarFan.png
Skipping File:TidalCrossSection.GIF
Getting 29 pages from wikipedia:en...
Skipping File:WellDrain.gif
Skipping File:WellDrain.png
Skipping File:AbadanIsland.GIF
Skipping File:Drainsection.PNG
Skipping File:AnisotropicSoil.PNG
Skipping File:DrainSection.jpg
Still 1 active threads, lets wait
All threads are done
D:\Wikipedia\pywikipedia>
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-11-01 02:32
Message:
already implemented in rewrite branch. u may limit the processed pages by
-limit parameter or leave it and you'll get all of them. Is that enough?
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2010-02-18 22:34
Message:
The use of ; is not very practical. That's a special character in most unix
shells:
replace.py -usercontribs:Multichill;9999 "blaaa" ""
-bash: replace.py: command not found
-bash: 9999: command not found
The default should be -1 (unlimited)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-02-18 22:12
Message:
-usercontribs:Username;99999999 does the job too or any other high number
which does not reach the number of distinct edits (might be a work-around)
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2010-02-17 11:44
Message:
This is not fixed. -usercontribs:<username> should return all edits by this
user, not just the first n edits.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-02-16 01:56
Message:
done in r7938
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2930108&group_…
Bugs item #3582353, was opened at 2012-10-31 15:25
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582353&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: GanZ (ganz-ru)
>Assigned to: xqt (xqt)
Summary: Bug in Rev 10629
Initial Comment:
Line 1666 of interwiki.py should be "page.namespace() == 10" instead "page.site.namespace() == 10".
There is an error as result:
Traceback (most recent call last):
File "U:\pywikipedia 2\interwiki.py", line 2583, in <module>
main()
File "U:\pywikipedia 2\interwiki.py", line 2557, in main
bot.run()
File "U:\pywikipedia 2\interwiki.py", line 2290, in run
self.queryStep()
File "U:\pywikipedia 2\interwiki.py", line 2268, in queryStep
subj.finish(self)
File "U:\pywikipedia 2\interwiki.py", line 1666, in finish
page.site.namespace() == 10 and
TypeError: namespace() takes at least 2 arguments (1 given)
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-10-31 22:11
Message:
fixed in r10635/36
Sorry
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3582353&group_…