Revision: 4499
Author: warddr
Date: 2007-11-04 16:29:35 +0000 (Sun, 04 Nov 2007)
Log Message:
-----------
spamremove.py : small NL-spellingfix
spelling/README : small spellingfix
spelling-nl.txt : added some words while running spellcheck.py (checked at woordenlijst.org)
Modified Paths:
--------------
trunk/pywikipedia/spamremove.py
trunk/spelling/README
trunk/spelling/spelling-nl.txt
Modified: trunk/pywikipedia/spamremove.py
===================================================================
--- trunk/pywikipedia/spamremove.py 2007-11-03 19:47:50 UTC (rev 4498)
+++ trunk/pywikipedia/spamremove.py 2007-11-04 16:29:35 UTC (rev 4499)
@@ -27,7 +27,7 @@
msg = {
'de': u'Entferne in Spam-Blacklist eingetragenen Weblink auf %s',
'en': u'Removing links to spammed site %s',
- 'nl': u'Links naar gespamde site %s verwijderd',
+ 'nl': u'Links naar gespamde site: %s verwijderd',
'pt': u'Removendo links de spam do site %s',
}
spamSite = ''
Modified: trunk/spelling/README
===================================================================
--- trunk/spelling/README 2007-11-03 19:47:50 UTC (rev 4498)
+++ trunk/spelling/README 2007-11-04 16:29:35 UTC (rev 4499)
@@ -1,2 +1,2 @@
-The spelling files are not part of the release because they're very large. If you need them, please get them from SVN server:
+The spelling files are not part of the release because they're very large. If you need them, please get them from the SVN server:
http://svn.wikimedia.org/svnroot/pywikipedia/trunk/spelling/
\ No newline at end of file
Modified: trunk/spelling/spelling-nl.txt
===================================================================
--- trunk/spelling/spelling-nl.txt 2007-11-03 19:47:50 UTC (rev 4498)
+++ trunk/spelling/spelling-nl.txt 2007-11-04 16:29:35 UTC (rev 4499)
@@ -1,4 +1,4 @@
-1
+1
1 '60
1 '90
0 'Patafysica 'patafysica
@@ -248347,3 +248347,23 @@
1 †
1 €
1 →
+1 schoenmaat
+1 wereldbeker
+0 papagaai papegaai
+1 spoorweghalte
+1 rippen
+1 audio-cd
+1 audio-cd's
+1 bestandstype
+0 bekenste bekendste
+0 illigaal illegaal
+1 Gallië
+1 winterkamp
+1 artsenvereniging
+1 staalarbeider
+0 succevolle succesvolle
+0 ambitieuse ambitieuze
+0 ambiteuse ambitieuze
+0 relatie's relaties
+1 sportjournalistiek
+1 stadspoort
Bugs item #1825517, was opened at 2007-11-04 04:21
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=1825517&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: interwiki.py, redirect.py: Adding Korean
Initial Comment:
I request adding the Korean translation of bot's edit summary.
interwiki.py:
'ko': (u'로봇이 ', u'더함', u'지움', u'바꿈')
redirect.py:
msg_double 'ko': (u'로봇: 이중 넘겨주기 수정')
reason_broken 'ko': (u'로봇: 끊긴 넘겨주기')
[[wikipedia:ko:User:피첼]]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1825517&group_…
Revision: 4498
Author: warddr
Date: 2007-11-03 19:47:50 +0000 (Sat, 03 Nov 2007)
Log Message:
-----------
There still was a link to CVS
Modified Paths:
--------------
trunk/spelling/README
Modified: trunk/spelling/README
===================================================================
--- trunk/spelling/README 2007-11-02 08:01:46 UTC (rev 4497)
+++ trunk/spelling/README 2007-11-03 19:47:50 UTC (rev 4498)
@@ -1 +1,2 @@
-The spelling files are not part of the release because they're very large. If you need them, please get them from CVS server: http://pywikipediabot.cvs.sourceforge.net/pywikipediabot/pywikipedia/spelli…
+The spelling files are not part of the release because they're very large. If you need them, please get them from SVN server:
+http://svn.wikimedia.org/svnroot/pywikipedia/trunk/spelling/
\ No newline at end of file
> Multilingual development (jira testing)
> ---------------------------------------
Hello all,
This was the first test of the JIRA bug tracker, located on the wikimedia
toolserver. Because of the limitations of the sourceforge bug tracker, we
are thinking about moving to this tracker. This, however, does have two
important downsides.
First of all, how can we convert/copy bugs transparently? Sourceforge.net
has an export functionality, so this should be technically possible.
Rerouting existing bug owners to the new tracker should be fairly easy by
submitting a link to the bug reports at sourceforge.
Secondly, how can we prevent people from using the old bug tracker? Fixing
the web site should be easy, but I think there might be some leftover
links on meta, etc. Tracking this - again - should not be hard, but it
needs to be done.
For now, the trackers will coexist; the jira tracker being the test
tracker and the sourceforge one being the stable tracker. Feel free to
play around with the jira tracker at
https://jira.ts.wikimedia.org/browse/PYWP-2 :)
Best regards
--valhallasw
Revision: 4497
Author: huji
Date: 2007-11-02 08:01:46 +0000 (Fri, 02 Nov 2007)
Log Message:
-----------
* Added inforation about the gettranslation() function to the beginning of the file.
Modified Paths:
--------------
branches/pywikipedia/messages/wikipedia.py
Modified: branches/pywikipedia/messages/wikipedia.py
===================================================================
--- branches/pywikipedia/messages/wikipedia.py 2007-11-02 07:56:45 UTC (rev 4496)
+++ branches/pywikipedia/messages/wikipedia.py 2007-11-02 08:01:46 UTC (rev 4497)
@@ -81,6 +81,10 @@
translate(xx, dict): dict is a dictionary, giving text depending on language,
xx is a language. Returns the text in the most applicable language for
the xx: wiki
+gettranslation(xx, msg): msg is a string which contains the English versin of
+ and edit summary, xx is a langauge. Returns the edit summary in the most
+ applicable langauge for the xx: wiki. Uses the nested dictionaries located
+ at messages.py
setUserAgent(text): Sets the string being passed to the HTTP server as
the User-agent: header. Defaults to 'Pywikipediabot/1.0'.
Revision: 4496
Author: huji
Date: 2007-11-02 07:56:45 +0000 (Fri, 02 Nov 2007)
Log Message:
-----------
* Renaming the new translate() function to gettranslation() to allow adding the old translate() function back.
* Changing other modules accordingly, to use this newly named gettranslation() function.
* Adding translate() function back in wikipedia.py to allow user-created bots to work the previous way.
* Adding details about why we have two function for transalting edit summaries.
Modified Paths:
--------------
branches/pywikipedia/messages/basic.py
branches/pywikipedia/messages/capitalize_redirects.py
branches/pywikipedia/messages/catall.py
branches/pywikipedia/messages/category.py
branches/pywikipedia/messages/catlib.py
branches/pywikipedia/messages/clean_sandbox.py
branches/pywikipedia/messages/commons_link.py
branches/pywikipedia/messages/copyright_clean.py
branches/pywikipedia/messages/cosmetic_changes.py
branches/pywikipedia/messages/messages.py
branches/pywikipedia/messages/wikipedia.py
Modified: branches/pywikipedia/messages/basic.py
===================================================================
--- branches/pywikipedia/messages/basic.py 2007-11-01 17:24:35 UTC (rev 4495)
+++ branches/pywikipedia/messages/basic.py 2007-11-02 07:56:45 UTC (rev 4496)
@@ -43,7 +43,7 @@
def run(self):
# Set the edit summary message
- wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), u'Adding "test" to the beginning of the page.'))
+ wikipedia.setAction(wikipedia.gettranslation(wikipedia.getSite(), u'Adding "test" to the beginning of the page.'))
for page in self.generator:
self.treat(page)
Modified: branches/pywikipedia/messages/capitalize_redirects.py
===================================================================
--- branches/pywikipedia/messages/capitalize_redirects.py 2007-11-01 17:24:35 UTC (rev 4495)
+++ branches/pywikipedia/messages/capitalize_redirects.py 2007-11-02 07:56:45 UTC (rev 4496)
@@ -62,7 +62,7 @@
if self.acceptall or choice in ['y', 'Y']:
try:
wikipedia.setAction(
- wikipedia.translate(wikipedia.getSite(), u'Robot: Create redirect to [[%s]]')
+ wikipedia.gettranslation(wikipedia.getSite(), u'Robot: Create redirect to [[%s]]')
% page_t)
np.put(u"#REDIRECT [[%s]]" % page_t)
print
Modified: branches/pywikipedia/messages/catall.py
===================================================================
--- branches/pywikipedia/messages/catall.py 2007-11-01 17:24:35 UTC (rev 4495)
+++ branches/pywikipedia/messages/catall.py 2007-11-02 07:56:45 UTC (rev 4496)
@@ -60,7 +60,7 @@
for p in list:
cattitle="%s:%s" % (site.category_namespace(), p)
pllist.append(wikipedia.Page(site,cattitle))
- page.put(wikipedia.replaceCategoryLinks(page.get(), pllist), comment = wikipedia.translate(site.lang, u'Bot: Changing categories'))
+ page.put(wikipedia.replaceCategoryLinks(page.get(), pllist), comment = wikipedia.gettranslation(site.lang, u'Bot: Changing categories'))
docorrections=True
start=[]
Modified: branches/pywikipedia/messages/category.py
===================================================================
--- branches/pywikipedia/messages/category.py 2007-11-01 17:24:35 UTC (rev 4495)
+++ branches/pywikipedia/messages/category.py 2007-11-02 07:56:45 UTC (rev 4496)
@@ -230,7 +230,7 @@
newcatTitle = newcatTitle[:1].capitalize() + newcatTitle[1:]
# set edit summary message
- wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), u'Adding [[Category:%s]]') % newcatTitle)
+ wikipedia.setAction(wikipedia.gettranslation(wikipedia.getSite(), u'Adding [[Category:%s]]') % newcatTitle)
cat_namespace = wikipedia.getSite().category_namespaces()[0]
@@ -290,7 +290,7 @@
if self.editSummary:
wikipedia.setAction(self.editSummary)
else:
- wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), u'Robot: Changing %s') % self.oldCat.title())
+ wikipedia.setAction(wikipedia.gettranslation(wikipedia.getSite(), u'Robot: Changing %s') % self.oldCat.title())
def run(self):
newCat = catlib.Category(wikipedia.getSite(), 'Category:' + self.newCatTitle)
@@ -310,9 +310,9 @@
catlib.change_category(subcategory, self.oldCat, newCat, comment = self.editSummary, inPlace=self.inPlace)
if self.oldCat.exists() and self.moveCatPage:
# try to copy page contents to new cat page
- if self.oldCat.copyAndKeep(self.newCatTitle, wikipedia.translate(wikipedia.getSite(), cfd_templates)):
+ if self.oldCat.copyAndKeep(self.newCatTitle, wikipedia.gettranslation(wikipedia.getSite(), cfd_templates)):
if self.oldCat.isEmpty() and self.deleteEmptySourceCat == True:
- reason = wikipedia.translate(wikipedia.getSite(), u'Robot: Category was moved to [[Category:%s|%s]]') % (self.newCatTitle, self.newCatTitle)
+ reason = wikipedia.gettranslation(wikipedia.getSite(), u'Robot: Category was moved to [[Category:%s|%s]]') % (self.newCatTitle, self.newCatTitle)
if self.batchMode:
self.oldCat.delete(reason, False)
else:
@@ -342,7 +342,7 @@
if self.editSummary:
wikipedia.setAction(self.editSummary)
else:
- wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), u'Robot: Listifying from %s (%d entries)') % (self.cat.title(), len(listOfArticles)))
+ wikipedia.setAction(wikipedia.gettranslation(wikipedia.getSite(), u'Robot: Listifying from %s (%d entries)') % (self.cat.title(), len(listOfArticles)))
listString = ""
for article in listOfArticles:
@@ -379,7 +379,7 @@
if self.editSummary:
wikipedia.setAction(self.editSummary)
else:
- wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), u'Robot: Removing from %s') % self.cat.title())
+ wikipedia.setAction(wikipedia.gettranslation(wikipedia.getSite(), u'Robot: Removing from %s') % self.cat.title())
def run(self):
articles = self.cat.articlesList(recurse = 0)
@@ -400,7 +400,7 @@
if self.useSummaryForDeletion:
reason = self.editSummary
else:
- reason = wikipedia.translate(wikipedia.getSite(), u'Robot: Category was disbanded')
+ reason = wikipedia.gettranslation(wikipedia.getSite(), u'Robot: Category was disbanded')
if self.batchMode:
self.cat.delete(reason, False)
else:
@@ -550,7 +550,7 @@
cat = catlib.Category(wikipedia.getSite(), 'Category:' + self.catTitle)
# get edit summary message
- wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), msg_change) % cat.title())
+ wikipedia.setAction(wikipedia.gettranslation(wikipedia.getSite(), msg_change) % cat.title())
articles = cat.articlesList(recurse = False)
if len(articles) == 0:
@@ -615,7 +615,7 @@
# create a list of wiki links to the supercategories
supercat_names.append('[[:%s|%s]]' % (supercats[i].title(), supercats[i].title().split(':', 1)[1]))
# print this list, separated with commas
- result += ' ' + wikipedia.translate(wikipedia.getSite(), u'(also in %s)') % ', '.join(supercat_names)
+ result += ' ' + wikipedia.gettranslation(wikipedia.getSite(), u'(also in %s)') % ', '.join(supercat_names)
result += '\n'
if currentDepth < self.maxDepth:
for subcat in self.catDB.getSubcats(cat):
Modified: branches/pywikipedia/messages/catlib.py
===================================================================
--- branches/pywikipedia/messages/catlib.py 2007-11-01 17:24:35 UTC (rev 4495)
+++ branches/pywikipedia/messages/catlib.py 2007-11-02 07:56:45 UTC (rev 4496)
@@ -358,7 +358,7 @@
else:
wikipedia.output('Moving text from %s to %s.' % (self.title(), targetCat.title()))
authors = ', '.join(self.contributingUsers())
- creationSummary = wikipedia.translate(wikipedia.getSite(), u'Robot: Moved from %s. Authors: %s') % (self.title(), authors)
+ creationSummary = wikipedia.gettranslation(wikipedia.getSite(), u'Robot: Moved from %s. Authors: %s') % (self.title(), authors)
targetCat.put(self.get(), creationSummary)
return True
@@ -378,7 +378,7 @@
else:
wikipedia.output('Moving text from %s to %s.' % (self.title(), targetCat.title()))
authors = ', '.join(self.contributingUsers())
- creationSummary = wikipedia.translate(wikipedia.getSite(), msg_created_for_renaming) % (self.title(), authors)
+ creationSummary = wikipedia.gettranslation(wikipedia.getSite(), msg_created_for_renaming) % (self.title(), authors)
newtext = self.get()
for regexName in cfdTemplates:
matchcfd = re.compile(r"{{%s.*?}}" % regexName, re.IGNORECASE)
Modified: branches/pywikipedia/messages/clean_sandbox.py
===================================================================
--- branches/pywikipedia/messages/clean_sandbox.py 2007-11-01 17:24:35 UTC (rev 4495)
+++ branches/pywikipedia/messages/clean_sandbox.py 2007-11-02 07:56:45 UTC (rev 4496)
@@ -55,15 +55,15 @@
mySite = wikipedia.getSite()
while True:
now = time.strftime("%d %b %Y %H:%M:%S (UTC)", time.gmtime())
- localSandboxTitle = wikipedia.translate(mySite, sandboxTitle)
+ localSandboxTitle = wikipedia.gettranslation(mySite, sandboxTitle)
sandboxPage = wikipedia.Page(mySite, localSandboxTitle)
try:
text = sandboxPage.get()
- translatedContent = wikipedia.translate(mySite, content)
+ translatedContent = wikipedia.gettranslation(mySite, content)
if text.strip() == translatedContent.strip():
wikipedia.output(u'The sandbox is still clean, no change necessary.')
else:
- translatedMsg = wikipedia.translate(mySite, u'Robot: This page will automatically be cleaned.')
+ translatedMsg = wikipedia.gettranslation(mySite, u'Robot: This page will automatically be cleaned.')
sandboxPage.put(translatedContent, translatedMsg)
except wikipedia.EditConflict:
wikipedia.output(u'*** Loading again because of edit conflict.\n')
Modified: branches/pywikipedia/messages/commons_link.py
===================================================================
--- branches/pywikipedia/messages/commons_link.py 2007-11-01 17:24:35 UTC (rev 4495)
+++ branches/pywikipedia/messages/commons_link.py 2007-11-02 07:56:45 UTC (rev 4496)
@@ -70,7 +70,7 @@
self.acceptall = True
if self.acceptall or choice in ['y', 'Y']:
try:
- msg = wikipedia.translate(wikipedia.getSite(), u'Robot: Include commons template')
+ msg = wikipedia.gettranslation(wikipedia.getSite(), u'Robot: Include commons template')
page.put(text, msg)
except wikipedia.EditConflict:
wikipedia.output(u'Skipping %s because of edit conflict' % (page.title()))
@@ -114,7 +114,7 @@
self.acceptall = True
if self.acceptall or choice in ['y', 'Y']:
try:
- msg = wikipedia.translate(wikipedia.getSite(), u'Robot: Include commonscat template')
+ msg = wikipedia.gettranslation(wikipedia.getSite(), u'Robot: Include commonscat template')
page.put(text, msg)
except wikipedia.EditConflict:
wikipedia.output(u'Skipping %s because of edit conflict' % (page.title()))
Modified: branches/pywikipedia/messages/copyright_clean.py
===================================================================
--- branches/pywikipedia/messages/copyright_clean.py 2007-11-01 17:24:35 UTC (rev 4495)
+++ branches/pywikipedia/messages/copyright_clean.py 2007-11-02 07:56:45 UTC (rev 4496)
@@ -62,7 +62,7 @@
wikipedia.output('* ' + revid)
return False
-cat = catlib.Category(wikipedia.getSite(), 'Category:%s' % wikipedia.translate(wikipedia.getSite(), reports_cat))
+cat = catlib.Category(wikipedia.getSite(), 'Category:%s' % wikipedia.gettranslation(wikipedia.getSite(), reports_cat))
gen = pagegenerators.CategorizedPageGenerator(cat, recurse = True)
for page in gen:
@@ -132,7 +132,7 @@
output += data[next_head.start():next_head.end()] + '\n'
add_separator = False
- add_comment = u'%s: %s' % (wikipedia.translate(wikipedia.getSite(), u'Removing'),", ".join(comment_entry))
+ add_comment = u'%s: %s' % (wikipedia.gettranslation(wikipedia.getSite(), u'Removing'),", ".join(comment_entry))
# remove useless newlines
output = re.sub("(?m)^\n", "", output)
Modified: branches/pywikipedia/messages/cosmetic_changes.py
===================================================================
--- branches/pywikipedia/messages/cosmetic_changes.py 2007-11-01 17:24:35 UTC (rev 4495)
+++ branches/pywikipedia/messages/cosmetic_changes.py 2007-11-02 07:56:45 UTC (rev 4496)
@@ -304,7 +304,7 @@
self.generator = generator
self.acceptall = acceptall
# Load default summary message.
- wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), u'Robot: Cosmetic changes'))
+ wikipedia.setAction(wikipedia.gettranslation(wikipedia.getSite(), u'Robot: Cosmetic changes'))
def treat(self, page):
try:
Modified: branches/pywikipedia/messages/messages.py
===================================================================
--- branches/pywikipedia/messages/messages.py 2007-11-01 17:24:35 UTC (rev 4495)
+++ branches/pywikipedia/messages/messages.py 2007-11-02 07:56:45 UTC (rev 4496)
@@ -9,7 +9,7 @@
u'Adding "test" to the beginning of the page.':
{
'nl':u'"Test" toegevoegd aan het begin van de pagina.',
- 'fa':u'افزودن «Test» به ابتدای صفحه',
+ 'fa':u'افزودن «Test» به ابتدای صفحه',
},
#capitalize_redirects.py
u'Robot: Create redirect to [[%s]]':
Modified: branches/pywikipedia/messages/wikipedia.py
===================================================================
--- branches/pywikipedia/messages/wikipedia.py 2007-11-01 17:24:35 UTC (rev 4495)
+++ branches/pywikipedia/messages/wikipedia.py 2007-11-02 07:56:45 UTC (rev 4496)
@@ -4535,7 +4535,7 @@
# languages to be:
# xx:, then fr:, then ru:, then en:
# you let altlang return ['fr','ru'].
-# This code is used by translate() below.
+# This code is used by translate() and gettranslation() below.
def altlang(code):
if code=='aa':
@@ -4634,9 +4634,38 @@
return ['io','eo']
return []
+def translate(code, xdict):
+ """Return the most appropriate translation from a translation dict.
-def translate(code, msg):
+ Given a language code and a dictionary, returns the dictionary's value for
+ key 'code' if this key exists; otherwise tries to return a value for an
+ alternative language that is most applicable to use on the Wikipedia in
+ language 'code'.
+
+ The language itself is always checked first, then languages that
+ have been defined to be alternatives, and finally English. If none of
+ the options gives result, we just take the first language in the
+ list.
+
+ User created bots can use translate() for ease. Built-in bots are suposed
+ to use gettranslation() instead, which allows a further advance towards
+ gettext().
"""
+ # If a site is given instead of a code, use its language
+ if hasattr(code,'lang'):
+ code = code.lang
+
+ if xdict.has_key(code):
+ return xdict[code]
+ for alt in altlang(code):
+ if xdict.has_key(alt):
+ return xdict[alt]
+ if xdict.has_key('en'):
+ return xdict['en']
+ return xdict.values()[0]
+
+def gettranslation(code, msg):
+ """
Given a language code and a message name, it returns the value appropriate
edit comment, according to message dictionary in message.py, if this key
exists; otherwise tries to return a value for an alternative language that
@@ -4645,6 +4674,11 @@
have been defined to be alternatives, and finally English. If none of
the options gives result, we just take the first language in the
list.
+
+ User bots can use translate() instead, and include the translations in a
+ dictionary inside the bot code. Built-in bots use gettranslation() which
+ requires the messages to be included in message.py; this allows further
+ advancements by using gettext() in future.
"""
edit_summaries = messages.edit_summaries
Bugs item #1824399, was opened at 2007-11-02 00:51
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1824399&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: Crash of featured.py while processing Indonesian Wikipedia
Initial Comment:
When running featured.py, when it gets to process the Indonesian (id) Wikipedia, it consistently crashes on article [[Roumders]]:
$> featured.py -lang:ka -fromlang:id-
Checked for running processes. 1 processes currently running, including the current process.
Getting references to [[id:Templat:Pilihan]]
>>> Hindu <<<
(cached) Hindu -> induizmi
(......)
>>> Roumders <<<
Exception in Page constructor
site=wikipedia:id, title=[[id:Sofbol]], insite=wikipedia:id, defaultNamespace=0
Traceback (most recent call last):
File "D:\Work\pywikipediabot-HEAD\pywikipedia\featured.py", line 308, in <modu
le>
featuredWithInterwiki(fromsite, wikipedia.getSite())
File "D:\Work\pywikipediabot-HEAD\pywikipedia\featured.py", line 248, in featu
redWithInterwiki
a=wikipedia.Page(a.site(),a.getRedirectTarget())
File "D:\Work\pywikipediabot-HEAD\pywikipedia\wikipedia.py", line 318, in __in
it__
t = html2unicode(title)
File "D:\Work\pywikipediabot-HEAD\pywikipedia\wikipedia.py", line 3348, in html2unicode
text = text[i:]
TypeError: 'Page' object is unsubscriptable
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2007-11-02 01:35
Message:
Logged In: YES
user_id=1037345
Originator: YES
Actually, the crash seems to happen on article [[Sofbol]]...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1824399&group_…
Bugs item #1824399, was opened at 2007-11-02 00:51
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=1824399&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: Crash of featured.py while processing Indonesian Wikipedia
Initial Comment:
When running featured.py, when it gets to process the Indonesian (id) Wikipedia, it consistently crashes on article [[Roumders]]:
$> featured.py -lang:ka -fromlang:id-
Checked for running processes. 1 processes currently running, including the current process.
Getting references to [[id:Templat:Pilihan]]
>>> Hindu <<<
(cached) Hindu -> induizmi
(......)
>>> Roumders <<<
Exception in Page constructor
site=wikipedia:id, title=[[id:Sofbol]], insite=wikipedia:id, defaultNamespace=0
Traceback (most recent call last):
File "D:\Work\pywikipediabot-HEAD\pywikipedia\featured.py", line 308, in <modu
le>
featuredWithInterwiki(fromsite, wikipedia.getSite())
File "D:\Work\pywikipediabot-HEAD\pywikipedia\featured.py", line 248, in featu
redWithInterwiki
a=wikipedia.Page(a.site(),a.getRedirectTarget())
File "D:\Work\pywikipediabot-HEAD\pywikipedia\wikipedia.py", line 318, in __in
it__
t = html2unicode(title)
File "D:\Work\pywikipediabot-HEAD\pywikipedia\wikipedia.py", line 3348, in html2unicode
text = text[i:]
TypeError: 'Page' object is unsubscriptable
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1824399&group_…
Support Requests item #1805771, was opened at 2007-10-01 17:21
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1805771&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: Interwiki bot not adding link to valid section
Initial Comment:
In article [[en:Lancia Musa]], the interwiki [[fr:Lancia Musa]] is in fact a redirect to a section within an article ([[fr:Fiat Idea et Lancia Musa#Lancia Musa]]). According to past behavior, the bot should add this link (to the section) to linke articles. In fact, what happens is that it tries to delete the fr interwiki from other articles. I think this may be a recent bug but I'm not sure. Can you please check it out? Thanks.
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2007-11-01 17:31
Message:
Logged In: YES
user_id=1037345
Originator: YES
No news on this?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1805771&group_…