Bugs item #2729138, was opened at 2009-04-04 01:37
Message generated for change (Settings changed) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2729138&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: DaSch (dasch88)
Assigned to: Nobody/Anonymous (nobody)
Summary: 'desc' is not defined
Initial Comment:
Traceback (most recent call last):
File "imageharvest.py", line 113, in <module>
desc += [arg]
NameError: name 'desc' is not defined
Pywikipedia [http] trunk/pywikipedia (r6569, Apr 03 2009, 16:17:41)
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-04 04:20
Message:
should be fixed by r6571
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2729138&group_…
Bugs item #2697605, was opened at 2009-03-20 14:34
Message generated for change (Settings changed) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2697605&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: szl redirect
Initial Comment:
Please add redirect for szl:
#TAM [[link]]
There is too many new redirects, isn't there any way to add them all-in-one?
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2009-04-04 02:20
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2009-03-20 15:17
Message:
Fixed in r6516
Not that I can think of, but some others might have ideas? Pending status
if anyone has input.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2697605&group_…
Patches item #2728152, was opened at 2009-04-03 14:10
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2728152&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: Accepted
Priority: 5
Private: No
Submitted By: Tieum P (tieump)
Assigned to: Nobody/Anonymous (nobody)
Summary: Proposed patch for allowing edits without bot flag
Initial Comment:
Please find attached a patch that adds a parameter to page.put() in wikipedia.py in order to be able to edit without the bot flag.
Thanks
tieump@frwiki
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-04 04:10
Message:
Tested, works fine. Added in r6570. Thanks :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2728152&group_…
Revision: 6570
Author: nicdumz
Date: 2009-04-04 02:09:24 +0000 (Sat, 04 Apr 2009)
Log Message:
-----------
wikipedia.put: Adding possibility to edit without activating the bot flag
([ 2728152 ] Proposed patch for allowing edits without bot flag, by Tieum P)
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2009-04-03 16:17:41 UTC (rev 6569)
+++ trunk/pywikipedia/wikipedia.py 2009-04-04 02:09:24 UTC (rev 6570)
@@ -1358,7 +1358,7 @@
force, callback))
def put(self, newtext, comment=None, watchArticle=None, minorEdit=True,
- force=False, sysop=False):
+ force=False, sysop=False, botflag=True):
"""Save the page with the contents of the first argument as the text.
Optional parameters:
@@ -1416,7 +1416,7 @@
comment = encodeEsperantoX(comment)
return self._putPage(newtext, comment, watchArticle, minorEdit,
- newPage, self.site().getToken(sysop = sysop), sysop = sysop)
+ newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag)
def _encodeArg(self, arg, msgForError):
"""Encode an ascii string/Unicode string to the site's encoding"""
@@ -1434,7 +1434,7 @@
def _putPage(self, text, comment=None, watchArticle=False, minorEdit=True,
newPage=False, token=None, newToken=False, sysop=False,
- captcha=None):
+ captcha=None, botflag=True):
"""Upload 'text' as new content of Page by filling out the edit form.
Don't use this directly, use put() instead.
@@ -1451,6 +1451,8 @@
# We will need to fill this more smartly if we ever decide to edit by section
'wpSection': '',
}
+ if not botflag:
+ predata['bot']='0'
if captcha:
predata["wpCaptchaId"] = captcha['id']
predata["wpCaptchaWord"] = captcha['answer']
Patches item #2729464, was opened at 2009-04-03 21:54
Message generated for change (Tracker Item Submitted) made by tieump
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2729464&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: None
Priority: 5
Private: No
Submitted By: Tieum P (tieump)
Assigned to: Nobody/Anonymous (nobody)
Summary: Proposed patch for getting new pages from ar wiki
Initial Comment:
The attached patch to wikipedia.py allows to retrieve newpages from ar wiki (and possibly other "right to left" wikis).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2729464&group_…
Bugs item #2692895, was opened at 2009-03-18 23:49
Message generated for change (Comment added) made by dasch88
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2692895&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: other
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: imagetransfer.py does not work
Initial Comment:
the -tolang and -tofamily options are not used, when trying to transfer images from commons to another wiki with this parameter specified I get the error "The image is already on Wikimedia Commons" but I want the images in a local wiki - that means to move them from Commons
I'm using:
Pywikipedia [http] trunk/pywikipedia (r6514, Mar 17 2009, 15:25:21)
Python 2.6 (trunk:66714:66715M, Oct 1 2008, 18:36:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)]
----------------------------------------------------------------------
Comment By: DaSch (dasch88)
Date: 2009-04-04 01:49
Message:
Same problem
Seams to me that the -tolang and -tofamily arguments are not used at all
Using:
Pywikipedia [http] trunk/pywikipedia (r6569, Apr 03 2009, 16:17:41)
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2692895&group_…
Bugs item #2729138, was opened at 2009-04-04 01:37
Message generated for change (Tracker Item Submitted) made by dasch88
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2729138&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: None
Priority: 5
Private: No
Submitted By: DaSch (dasch88)
Assigned to: Nobody/Anonymous (nobody)
Summary: 'desc' is not defined
Initial Comment:
Traceback (most recent call last):
File "imageharvest.py", line 113, in <module>
desc += [arg]
NameError: name 'desc' is not defined
Pywikipedia [http] trunk/pywikipedia (r6569, Apr 03 2009, 16:17:41)
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2729138&group_…
Revision: 6569
Author: a_engels
Date: 2009-04-03 16:17:41 +0000 (Fri, 03 Apr 2009)
Log Message:
-----------
Download more pages at a time
Modified Paths:
--------------
trunk/pywikipedia/disambredir.py
Modified: trunk/pywikipedia/disambredir.py
===================================================================
--- trunk/pywikipedia/disambredir.py 2009-04-01 11:18:59 UTC (rev 6568)
+++ trunk/pywikipedia/disambredir.py 2009-04-03 16:17:41 UTC (rev 6569)
@@ -5,7 +5,7 @@
each link that goes to a redirect page whether it should be replaced.
"""
#
-# (C) André Engels, 2006
+# (C) André Engels and others, 2006-2009
#
# Distributed under the terms of the MIT license.
#
@@ -108,16 +108,11 @@
continue
return text
-def workon(page):
- try:
- text = page.get()
- except wikipedia.IsRedirectPage:
- return
+def workon(page, links):
+ text = page.get()
# Show the title of the page we're working on.
# Highlight the title in purple.
wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title())
- links = page.linkedPages()
- wikipedia.getall(mysite,links)
for page2 in links:
try:
target = page2.getRedirectTarget()
@@ -150,8 +145,20 @@
# only work on articles
generator = pagegenerators.NamespaceFilterPageGenerator(generator, [0])
generator = pagegenerators.PreloadingGenerator(generator)
+ pagestodo = []
+ pagestoload = []
for page in generator:
- workon(page)
+ if page.isRedirectPage():
+ continue
+ linked = page.linkedPages()
+ pagestodo.append((page,linked))
+ pagestoload += linked
+ if len(pagestoload) > 49:
+ wikipedia.getall(mysite,pagestoload)
+ for page, links in pagestodo:
+ workon(page,links)
+ pagestoload = []
+ pagestodo = []
finally:
wikipedia.stopme()