Patches item #1820649, was opened at 2007-10-26 14:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1820649&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: Rotem Liss (rotemliss)
Assigned to: Nobody/Anonymous (nobody)
Summary: Reason is double-encoded when moving pages
Initial Comment:
The reason is double-encoded when moving pages. Thus, python throws an exception when a user tries to move a page with a non-ASCII reason. Attaching a patch to remove the double-encoding.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1820649&group_…
Revision: 4481
Author: wikipedian
Date: 2007-10-26 07:17:15 +0000 (Fri, 26 Oct 2007)
Log Message:
-----------
made use of inheritance
Modified Paths:
--------------
trunk/pywikipedia/families/wikipedia_family.py
trunk/pywikipedia/family.py
Modified: trunk/pywikipedia/families/wikipedia_family.py
===================================================================
--- trunk/pywikipedia/families/wikipedia_family.py 2007-10-26 07:13:08 UTC (rev 4480)
+++ trunk/pywikipedia/families/wikipedia_family.py 2007-10-26 07:17:15 UTC (rev 4481)
@@ -887,9 +887,19 @@
'zu' : u'Main Page',
}
+ def get_known_families(self, site):
+ # In Swedish Wikipedia 's:' is part of page title not a family
+ # prefix for 'wikisource'.
+ if site.lang == 'sv':
+ d = self.known_families.copy()
+ d.pop('s') ; d['src'] = 'wikisource'
+ return d
+ else:
+ return self.known_families
+
def version(self, code):
return "1.11"
-
+
def dbName(self, code):
# returns the name of the MySQL database
# for historic reasons, the databases are called wikixx instead of
Modified: trunk/pywikipedia/family.py
===================================================================
--- trunk/pywikipedia/family.py 2007-10-26 07:13:08 UTC (rev 4480)
+++ trunk/pywikipedia/family.py 2007-10-26 07:17:15 UTC (rev 4481)
@@ -2259,12 +2259,6 @@
self.namespaces[num][code]=val
def get_known_families(self, site):
- # In Swedish Wikipedia 's:' is part of page title not a family
- # prefix for 'wikisource'.
- if site.lang == 'sv' and site.family.name in ['wikipedia']:
- d = self.known_families.copy()
- d.pop('s') ; d['src'] = 'wikisource'
- return d
return self.known_families
def linktrail(self, code, fallback = '_default'):
Bugs item #1820187, was opened at 2007-10-25 20:50
Message generated for change (Comment added) made by wikipedian
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820187&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: Fixed
Priority: 5
Private: No
Submitted By: AnMaster (anmaster)
Assigned to: Nobody/Anonymous (nobody)
Summary: "Target link has different family"
Initial Comment:
I'm not sure what to call this but well it is odd. In any case it shouldn't traceback IMO.
$ python -O interwiki.py -start:! -whenneeded -confirm: -lang:ru
Checked for running processes. 1 processes currently running, including the current process.
Missing main page name
NOTE: Number of pages queued is 0, trying to add 60 more.
Retrieving Allpages special page for gentoo:ru from %21, namespace 0
Target link 'Gentoo-Wiki:Community Portal' has different family 'gentoo-wiki'
Exception in Page constructor
site=gentoo:ru, title=Gentoo-Wiki:Community Portal, insite=gentoo:ru, defaultNamespace=0
Dump ru (gentoo) saved
Traceback (most recent call last):
File "interwiki.py", line 1581, in ?
bot.run()
File "interwiki.py", line 1358, in run
self.queryStep()
File "interwiki.py", line 1332, in queryStep
self.oneQuery()
File "interwiki.py", line 1300, in oneQuery
site = self.selectQuerySite()
File "interwiki.py", line 1274, in selectQuerySite
self.generateMore(globalvar.maxquerysize - mycount)
File "interwiki.py", line 1208, in generateMore
page = self.pageGenerator.next()
File "/home/arvid/wikibots/gentoo-wiki/pagegenerators.py", line 515, in DuplicateFilterPageGenerator
for page in generator:
File "/home/arvid/wikibots/gentoo-wiki/pagegenerators.py", line 117, in AllpagesPageGenerator
for page in wikipedia.getSite().allpages(start=start, namespace=namespace, includeredirects = includeredirects):
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 4368, in allpages
yield Page(self, hit)
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 380, in __init__
self._site = getSite(otherlang, familyName)
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 4925, in getSite
_sites[key] = Site(code=code, fam=fam, user=user, persistent_http=persistent_http)
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 3560, in __init__
self.family = Family(fam, fatal = False)
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 3383, in Family
exec "import %s_family as myfamily" % fam
File "<string>", line 1
import gentoo-wiki_family as myfamily
^
SyntaxError: invalid syntax
----------------------------------------------------------------------
>Comment By: Daniel Herding (wikipedian)
Date: 2007-10-26 09:13
Message:
Logged In: YES
user_id=880694
Originator: NO
fixed in CVS
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820187&group_…
Bugs item #1820282, was opened at 2007-10-25 22:38
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282&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: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py for language codes including hyphen
Initial Comment:
When i tried running featured.py with switches:
-fromlang:be-x-old
-fromlang:roa-tara
it actually started processing.
Only later i realized those languages are not implemented in featured.py. I don't really understand what it was processing but it definitely was not the corresponding language.
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2007-10-25 22:49
Message:
Logged In: YES
user_id=1037345
Originator: YES
I just tried for implemented language codes zh-yue and zh-classical. No
work is done by the bot. It doesn't even try to download the template
linking pages.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282&group_…
Bugs item #1820282, was opened at 2007-10-25 22:38
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282&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: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py for language codes including hyphen
Initial Comment:
When i tried running featured.py with switches:
-fromlang:be-x-old
-fromlang:roa-tara
it actually started processing.
Only later i realized those languages are not implemented in featured.py. I don't really understand what it was processing but it definitely was not the corresponding language.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282&group_…
Patches item #1820253, was opened at 2007-10-25 21:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1820253&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: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: Correction to Swedish featured article category
Initial Comment:
Please replace line 130 of featured.py by:
'sv': (CAT, u"Kategori:Wikipedia:Utmärkta artiklar"),
This corrects the category link. Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1820253&group_…
Bugs item #1820187, was opened at 2007-10-25 20:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820187&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: AnMaster (anmaster)
Assigned to: Nobody/Anonymous (nobody)
Summary: "Target link has different family"
Initial Comment:
I'm not sure what to call this but well it is odd. In any case it shouldn't traceback IMO.
$ python -O interwiki.py -start:! -whenneeded -confirm: -lang:ru
Checked for running processes. 1 processes currently running, including the current process.
Missing main page name
NOTE: Number of pages queued is 0, trying to add 60 more.
Retrieving Allpages special page for gentoo:ru from %21, namespace 0
Target link 'Gentoo-Wiki:Community Portal' has different family 'gentoo-wiki'
Exception in Page constructor
site=gentoo:ru, title=Gentoo-Wiki:Community Portal, insite=gentoo:ru, defaultNamespace=0
Dump ru (gentoo) saved
Traceback (most recent call last):
File "interwiki.py", line 1581, in ?
bot.run()
File "interwiki.py", line 1358, in run
self.queryStep()
File "interwiki.py", line 1332, in queryStep
self.oneQuery()
File "interwiki.py", line 1300, in oneQuery
site = self.selectQuerySite()
File "interwiki.py", line 1274, in selectQuerySite
self.generateMore(globalvar.maxquerysize - mycount)
File "interwiki.py", line 1208, in generateMore
page = self.pageGenerator.next()
File "/home/arvid/wikibots/gentoo-wiki/pagegenerators.py", line 515, in DuplicateFilterPageGenerator
for page in generator:
File "/home/arvid/wikibots/gentoo-wiki/pagegenerators.py", line 117, in AllpagesPageGenerator
for page in wikipedia.getSite().allpages(start=start, namespace=namespace, includeredirects = includeredirects):
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 4368, in allpages
yield Page(self, hit)
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 380, in __init__
self._site = getSite(otherlang, familyName)
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 4925, in getSite
_sites[key] = Site(code=code, fam=fam, user=user, persistent_http=persistent_http)
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 3560, in __init__
self.family = Family(fam, fatal = False)
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 3383, in Family
exec "import %s_family as myfamily" % fam
File "<string>", line 1
import gentoo-wiki_family as myfamily
^
SyntaxError: invalid syntax
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820187&group_…
Revision: 4479
Author: cosoleto
Date: 2007-10-25 13:47:01 +0000 (Thu, 25 Oct 2007)
Log Message:
-----------
bugfix: console_encoding default value is set to 'None' when output is redirected (for this reason a cron job fail and return "TypeError: encode() argument 1 must be string, not None").
Modified Paths:
--------------
trunk/pywikipedia/config.py
Modified: trunk/pywikipedia/config.py
===================================================================
--- trunk/pywikipedia/config.py 2007-10-24 15:38:24 UTC (rev 4478)
+++ trunk/pywikipedia/config.py 2007-10-25 13:47:01 UTC (rev 4479)
@@ -429,8 +429,15 @@
print " Now: ",nt
del nt,ot
else:
- print "WARNING: Configuration variable %r is defined but unknown. Misspelled?"%_key
+ print "WARNING: Configuration variable %r is defined but unknown. Misspelled?" %_key
+# Fix up default console_encoding
+if console_encoding == None:
+ if __sys.platform=='win32':
+ console_encoding = 'cp850'
+ else:
+ console_encoding = 'iso-8859-1'
+
# Save base_dir for use by other modules
base_dir = _base_dir
#
Support Requests item #1813173, was opened at 2007-10-14 13:22
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1813173&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
Priority: 5
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: 'Title ... not found in list. Expected one of ...'
Initial Comment:
I'm constantly getting this message while processing [[en:Democratic Republic of the Congo]]:
---
Getting 1 pages from wikipedia:ka...
BUG>> title kongos demokratiuli respublika ([[ka:kongos demokratiuli respublika]]) not found in list
Expected one of: [[ka:kongos demokratiuli respublika?]]
---
The ka article (title is yellow/transliterated) existswithout the '?'. Why does the bot expect the page title to have that '?' at the end?
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2007-10-24 22:03
Message:
Logged In: YES
user_id=1037345
Originator: YES
Is there any way of going around this? Maybe by using the article name
returned by Special:Export instead of the name given by the interwiki
(being aware of redirects)? This problem is expanding because one bad new
interwiki is enough for the bot to spread the mistake to all Wikipedias and
then it's harder to correct.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2007-10-24 00:14
Message:
Logged In: YES
user_id=1037345
Originator: YES
It seems interwiki.py itself is adding those invisible characters.
Take a look at:
http://en.wikipedia.org/w/index.php?title=Williamsburg%2C_Colorado&diff=166…
There you can see a first bot add (by Rei-bot) which adds a pt interwiki
with invisible character.
The next change by MalafayaBot happens after I manually correct one of the
interwikis by removing the invisible character.
----------------------------------------------------------------------
Comment By: Daniel Herding (wikipedian)
Date: 2007-10-14 23:48
Message:
Logged In: YES
user_id=880694
Originator: NO
This happens with titles that include invisible left-to-right or
right-to-left control characters. These are omitted in Special:Export or
something like that, I have forgotten what exactly happens.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2007-10-14 14:05
Message:
Logged In: YES
user_id=1037345
Originator: YES
I think I got to a conclusion:
there seemed to be an invisible character in the ka interwiki in all
Wikipedias. After deleting and retyping the interwiki in English Wikipedia
(http://en.wikipedia.org/w/index.php?title=Democratic_Republic_of_the_Congo&…),
the bot now says there are 2 interwikis while processing: one plain title
and the other one with the yellow '?'.
The problem is that apparently when the bot fetches the page 'kongos
demokratiuli respublika?' it actually works and fetches the page 'kongos
demokratiuli respublika' (as if it were an implicit redirect).
Another problem is that the bot tries to replace the bad interwiki (the
one with '?') by the correct one (without it), MediaWiki detects 'no
changes' and just ignores the page update. So the incorrect interwiki will
still prevail until a major update to the page by the bot is made.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1813173&group_…