Revision: 6565
Author: russblau
Date: 2009-03-30 13:56:29 +0000 (Mon, 30 Mar 2009)
Log Message:
-----------
Fix import statements; "scripts" is no longer in the pywikibot package (though I'm not clear on why that choice was made)
Modified Paths:
--------------
branches/rewrite/scripts/replace.py
Modified: branches/rewrite/scripts/replace.py
===================================================================
--- branches/rewrite/scripts/replace.py 2009-03-28 17:27:58 UTC (rev 6564)
+++ branches/rewrite/scripts/replace.py 2009-03-30 13:56:29 UTC (rev 6565)
@@ -118,11 +118,11 @@
import sys, re, time
import pywikibot
from pywikibot import pagegenerators, catlib, config
-from pywikibot.scripts import editarticle
+from scripts import editarticle
import webbrowser
# Imports predefined replacements tasks from fixes.py
-import pywikibot.scripts.fixes as fixes
+import scripts.fixes as fixes
# This is required for the text that is shown when you run this script
# with the parameter -help.
Bugs item #2718954, was opened at 2009-03-28 15:45
Message generated for change (Tracker Item Submitted) made by silvonen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2718954&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: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Outdated cywiki namespace name
Initial Comment:
I got this warning when running interwiki.py:
WARNING: Outdated family file wikipedia: namespace['cy'][7] is 'Sgwrs Delwedf', but should be 'Sgwrs Delwedd'
> python version.py
Pywikipedia [http] trunk/pywikipedia (r6563, Mar 28 2009, 02:05:57)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2718954&group_…
Bugs item #2716315, was opened at 2009-03-27 06:38
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2716315&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: NicDumZ — Nicolas Dumazet (nicdumz)
Assigned to: Russell Blau (russblau)
>Summary: undetected session termination
Initial Comment:
I have a script which runs everyday on the toolserver to update French maintenance pages related to WP1.0 evaluation ( http://fr.wikipedia.org/wiki/Projet:Am%C3%A9rique_pr%C3%A9colombienne/%C3%8… ).
The main action is to retrieve list of articles from categories. I have included a very simplified version of the script if anyone needs to know what the bot was doing.
And once every month or so (remember, it's a daily task), I get an ApiError about limit:
Traceback (most recent call last):
File "/home/nicdumz/pywikipedia/statistiques.py", line 79, in <module>
for p in pwsite.categorymembers(cat, namespaces=[1]):
File "/home/nicdumz/pywikipedia/pywikibot/data/api.py", line 428, in __iter__
self.data = self.request.submit()
File "/home/nicdumz/pywikipedia/pywikibot/data/api.py", line 260, in submit
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: gcmlimit: gcmlimit may not be over 500 (set to 5000) for users
It looks like a session issue, the bot getting logged out in the middle of his task: today, the bot had already retrieved the contents of ~500 categories before crashing
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-28 03:10
Message:
Updating the title: It was definitely a session termination. I got asked
for a password on the next run, and it would explain why this bug would
only occur every month or so.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2716315&group_…
Bugs item #2717511, was opened at 2009-03-27 22:45
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2717511&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: MGA73 (mga73)
Assigned to: Nobody/Anonymous (nobody)
Summary: The category_redirect.py needs minor fix to work on da-wiki
Initial Comment:
The line(s):
u"Robot: tilføjer omdirigeringsskabelon for
vedligeholdelse",
Should not be divided in tow lines. It works when i change it into one line:
u"Robot: tilføjer omdirigeringsskabelon for vedligeholdelse",
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-28 03:07
Message:
fixed in r6563
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2717511&group_…
Bugs item #2717511, was opened at 2009-03-27 22:45
Message generated for change (Tracker Item Submitted) made by mga73
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2717511&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: MGA73 (mga73)
Assigned to: Nobody/Anonymous (nobody)
Summary: The category_redirect.py needs minor fix to work on da-wiki
Initial Comment:
The line(s):
u"Robot: tilføjer omdirigeringsskabelon for
vedligeholdelse",
Should not be divided in tow lines. It works when i change it into one line:
u"Robot: tilføjer omdirigeringsskabelon for vedligeholdelse",
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2717511&group_…