Bugs item #1899414, was opened at 2008-02-22 03:42
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899414&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: Invalid
Priority: 5
Private: No
Submitted By: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: two attribute error in FreeBSD (wikipedia.py)
Initial Comment:
>python interwiki.py -lang:zh -autonomous -continue
......
Updating links on page [[pms:Ucrain-a]].
WARNING: [[cu:OuÇÓÇÙÇÈÇÑÇÖÇÈ]] is either deleted or has a mismatching disambiguation state.
Changes to be made: a modifica: [[gv:Yn Ookraan]]
- [[gv:Yn Ookraane]]
+ [[gv:Yn Ookraan]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 4.4 seconds, 2008-02-22 01:50:31
Changing page [[pms:Ucrain-a]]
Dump zh (wikipedia) saved
Traceback (most recent call last):
File "interwiki.py", line 1645, in ?
bot.run()
File "interwiki.py", line 1409, in run
self.queryStep()
File "interwiki.py", line 1388, in queryStep
subj.finish(self)
File "interwiki.py", line 976, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1127, in replaceLinks
status, reason, data = page.put(newtext, comment = wikipedia.translate(page.site().lang, msg)[0] + mods)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1215, in put
return self._putPage(newtext, comment, watchArticle, minorEdit, newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1307, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4302, in has_mediawiki_message
v = self.mediawiki_message(key)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4258, in mediawiki_message
value = tree.textarea.string.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
>python redirect.py double -always -lang:en
....When the code start to detect target, it return back this error.
Traceback (most recent call last):
File "redirect.py", line 399, in ?
main()
File "redirect.py", line 395, in main
bot.run()
File "redirect.py", line 350, in run
self.fix_double_redirects()
File "redirect.py", line 271, in fix_double_redirects
targetPage = newRedir.getRedirectTarget()
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1663, in getRedirectTarget
target = ex.message
AttributeError: IsRedirectPage instance has no attribute 'message'
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2008-02-22 08:41
Message:
Logged In: YES
user_id=855050
Originator: NO
The first error is a duplicate of bug 1898827; the second one cannot be
duplicated--
>>> import wikipedia
Checked for running processes. 1 processes currently running, including
the current process.
>>> p = wikipedia.Page(wikipedia.getSite(), "Napoleon") # on en:wiki
>>> p.getRedirectTarget()
Page{[[Napoleon I of France]]}
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-02-22 08:34
Message:
Logged In: YES
user_id=1963242
Originator: NO
right, he commited while I posted that :)
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-02-22 08:29
Message:
Logged In: YES
user_id=1327030
Originator: NO
The first problem was bug 1898827, which was fixed by russblau.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-02-22 08:20
Message:
Logged In: YES
user_id=1963242
Originator: NO
I believe that this would be a proper fix :
Index: wikipedia.py
===================================================================
--- wikipedia.py (révision 5068)
+++ wikipedia.py (copie de travail)
@@ -1660,7 +1665,7 @@
except NoPage:
raise
except IsRedirectPage, ex:
- target = ex.message
+ target = ex[0]
if '|' in target:
warnings.warn("'%s' has a | character, this makes no
sense"
% target, Warning)
@@ -4258,9 +4264,9 @@
tree = BeautifulSoup(mwpage,
convertEntities=BeautifulSoup.HTML_ENTITIES,
parseOnlyThese=SoupStrainer("textarea"))
- if tree.textarea is not None:
+ try:
value = tree.textarea.string.strip()
- else:
+ except AttributeError:
value = None
if value:
self._mediawiki_messages[key.lower()] = value
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899414&group_…
Bugs item #1899414, was opened at 2008-02-22 09:42
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899414&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: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: two attribute error in FreeBSD (wikipedia.py)
Initial Comment:
>python interwiki.py -lang:zh -autonomous -continue
......
Updating links on page [[pms:Ucrain-a]].
WARNING: [[cu:OuÇÓÇÙÇÈÇÑÇÖÇÈ]] is either deleted or has a mismatching disambiguation state.
Changes to be made: a modifica: [[gv:Yn Ookraan]]
- [[gv:Yn Ookraane]]
+ [[gv:Yn Ookraan]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 4.4 seconds, 2008-02-22 01:50:31
Changing page [[pms:Ucrain-a]]
Dump zh (wikipedia) saved
Traceback (most recent call last):
File "interwiki.py", line 1645, in ?
bot.run()
File "interwiki.py", line 1409, in run
self.queryStep()
File "interwiki.py", line 1388, in queryStep
subj.finish(self)
File "interwiki.py", line 976, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1127, in replaceLinks
status, reason, data = page.put(newtext, comment = wikipedia.translate(page.site().lang, msg)[0] + mods)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1215, in put
return self._putPage(newtext, comment, watchArticle, minorEdit, newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1307, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4302, in has_mediawiki_message
v = self.mediawiki_message(key)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4258, in mediawiki_message
value = tree.textarea.string.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
>python redirect.py double -always -lang:en
....When the code start to detect target, it return back this error.
Traceback (most recent call last):
File "redirect.py", line 399, in ?
main()
File "redirect.py", line 395, in main
bot.run()
File "redirect.py", line 350, in run
self.fix_double_redirects()
File "redirect.py", line 271, in fix_double_redirects
targetPage = newRedir.getRedirectTarget()
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1663, in getRedirectTarget
target = ex.message
AttributeError: IsRedirectPage instance has no attribute 'message'
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-02-22 14:34
Message:
Logged In: YES
user_id=1963242
Originator: NO
right, he commited while I posted that :)
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-02-22 14:29
Message:
Logged In: YES
user_id=1327030
Originator: NO
The first problem was bug 1898827, which was fixed by russblau.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-02-22 14:20
Message:
Logged In: YES
user_id=1963242
Originator: NO
I believe that this would be a proper fix :
Index: wikipedia.py
===================================================================
--- wikipedia.py (révision 5068)
+++ wikipedia.py (copie de travail)
@@ -1660,7 +1665,7 @@
except NoPage:
raise
except IsRedirectPage, ex:
- target = ex.message
+ target = ex[0]
if '|' in target:
warnings.warn("'%s' has a | character, this makes no
sense"
% target, Warning)
@@ -4258,9 +4264,9 @@
tree = BeautifulSoup(mwpage,
convertEntities=BeautifulSoup.HTML_ENTITIES,
parseOnlyThese=SoupStrainer("textarea"))
- if tree.textarea is not None:
+ try:
value = tree.textarea.string.strip()
- else:
+ except AttributeError:
value = None
if value:
self._mediawiki_messages[key.lower()] = value
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899414&group_…
Bugs item #1899414, was opened at 2008-02-22 10:42
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899414&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: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: two attribute error in FreeBSD (wikipedia.py)
Initial Comment:
>python interwiki.py -lang:zh -autonomous -continue
......
Updating links on page [[pms:Ucrain-a]].
WARNING: [[cu:OuÇÓÇÙÇÈÇÑÇÖÇÈ]] is either deleted or has a mismatching disambiguation state.
Changes to be made: a modifica: [[gv:Yn Ookraan]]
- [[gv:Yn Ookraane]]
+ [[gv:Yn Ookraan]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 4.4 seconds, 2008-02-22 01:50:31
Changing page [[pms:Ucrain-a]]
Dump zh (wikipedia) saved
Traceback (most recent call last):
File "interwiki.py", line 1645, in ?
bot.run()
File "interwiki.py", line 1409, in run
self.queryStep()
File "interwiki.py", line 1388, in queryStep
subj.finish(self)
File "interwiki.py", line 976, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1127, in replaceLinks
status, reason, data = page.put(newtext, comment = wikipedia.translate(page.site().lang, msg)[0] + mods)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1215, in put
return self._putPage(newtext, comment, watchArticle, minorEdit, newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1307, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4302, in has_mediawiki_message
v = self.mediawiki_message(key)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4258, in mediawiki_message
value = tree.textarea.string.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
>python redirect.py double -always -lang:en
....When the code start to detect target, it return back this error.
Traceback (most recent call last):
File "redirect.py", line 399, in ?
main()
File "redirect.py", line 395, in main
bot.run()
File "redirect.py", line 350, in run
self.fix_double_redirects()
File "redirect.py", line 271, in fix_double_redirects
targetPage = newRedir.getRedirectTarget()
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1663, in getRedirectTarget
target = ex.message
AttributeError: IsRedirectPage instance has no attribute 'message'
----------------------------------------------------------------------
>Comment By: Rotem Liss (rotemliss)
Date: 2008-02-22 15:29
Message:
Logged In: YES
user_id=1327030
Originator: NO
The first problem was bug 1898827, which was fixed by russblau.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-02-22 15:20
Message:
Logged In: YES
user_id=1963242
Originator: NO
I believe that this would be a proper fix :
Index: wikipedia.py
===================================================================
--- wikipedia.py (révision 5068)
+++ wikipedia.py (copie de travail)
@@ -1660,7 +1665,7 @@
except NoPage:
raise
except IsRedirectPage, ex:
- target = ex.message
+ target = ex[0]
if '|' in target:
warnings.warn("'%s' has a | character, this makes no
sense"
% target, Warning)
@@ -4258,9 +4264,9 @@
tree = BeautifulSoup(mwpage,
convertEntities=BeautifulSoup.HTML_ENTITIES,
parseOnlyThese=SoupStrainer("textarea"))
- if tree.textarea is not None:
+ try:
value = tree.textarea.string.strip()
- else:
+ except AttributeError:
value = None
if value:
self._mediawiki_messages[key.lower()] = value
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899414&group_…
Feature Requests item #1246815, was opened at 2005-07-28 16:38
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1246815&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: category.py partlyremove -cat:anything
Initial Comment:
Hello!
In our wiki we have several categories on each article.
If I want to remove a cat but want to have the rest to
stay as they are the current category.py won't help.
category.py remove with cat=example1 would remove all
articles in example1.
Can you please add a function that all articles in a
special cat may have another cat removed.
So category.py remove -cat:example1 would ask which cat
should be removed and then have that one be removed in
all retrieved pages.
Thanks in advance
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-02-22 14:26
Message:
Logged In: YES
user_id=1963242
Originator: NO
I agree with that last comment.
Request like "Remove from parent category articles which are already in
one subcategory" are more and more common.
I have used several ugly hacks to do this, (The only thing you need is the
list of articles in both the parent cat and in one of its subcategories, so
intersecting two outputs from pagegenerators.py *will* do, but... meh :( )
so that would definitely be a nice script to have :)
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-02-22 03:28
Message:
Logged In: NO
There is a need to be able to remove one category tag from all pages that
are in some other category or one of a set of categories. For instance
[[category:people]] or [[category:biography]] on many wikis fills rapidly
with pages that belong in one of the subcategories. There needs to be a way
to automatically remove the parent category from any page that is in the
subcategories, leaving behind only the pages that have no existing
subcategorization and need to be sorted manually.
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2007-04-26 21:27
Message:
Logged In: YES
user_id=1107255
Originator: NO
Please let us know if this feature request is still applicable to the
current code. If no response is given, the feature request will be denied
and the issue will be closed one month from now. This message was added in
an effort to reduce the number of open issues on this project. Siebrand
----------------------------------------------------------------------
Comment By: Rob W.W. Hooft (hooft)
Date: 2006-12-26 13:27
Message:
Logged In: YES
user_id=47476
Originator: NO
The obvious solution is to separate the action from the page generator.
Not something I will do right now, but it prompted me to review the general
solution to make a page generator based on command line arguments.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2005-07-28 17:01
Message:
Logged In: NO
Or what do you think about this:
category.py remove -fromcat:cat1 -removecat:cat2
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1246815&group_…
Bugs item #1899414, was opened at 2008-02-22 09:42
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899414&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: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: two attribute error in FreeBSD (wikipedia.py)
Initial Comment:
>python interwiki.py -lang:zh -autonomous -continue
......
Updating links on page [[pms:Ucrain-a]].
WARNING: [[cu:OuÇÓÇÙÇÈÇÑÇÖÇÈ]] is either deleted or has a mismatching disambiguation state.
Changes to be made: a modifica: [[gv:Yn Ookraan]]
- [[gv:Yn Ookraane]]
+ [[gv:Yn Ookraan]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 4.4 seconds, 2008-02-22 01:50:31
Changing page [[pms:Ucrain-a]]
Dump zh (wikipedia) saved
Traceback (most recent call last):
File "interwiki.py", line 1645, in ?
bot.run()
File "interwiki.py", line 1409, in run
self.queryStep()
File "interwiki.py", line 1388, in queryStep
subj.finish(self)
File "interwiki.py", line 976, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1127, in replaceLinks
status, reason, data = page.put(newtext, comment = wikipedia.translate(page.site().lang, msg)[0] + mods)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1215, in put
return self._putPage(newtext, comment, watchArticle, minorEdit, newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1307, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4302, in has_mediawiki_message
v = self.mediawiki_message(key)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4258, in mediawiki_message
value = tree.textarea.string.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
>python redirect.py double -always -lang:en
....When the code start to detect target, it return back this error.
Traceback (most recent call last):
File "redirect.py", line 399, in ?
main()
File "redirect.py", line 395, in main
bot.run()
File "redirect.py", line 350, in run
self.fix_double_redirects()
File "redirect.py", line 271, in fix_double_redirects
targetPage = newRedir.getRedirectTarget()
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1663, in getRedirectTarget
target = ex.message
AttributeError: IsRedirectPage instance has no attribute 'message'
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-02-22 14:20
Message:
Logged In: YES
user_id=1963242
Originator: NO
I believe that this would be a proper fix :
Index: wikipedia.py
===================================================================
--- wikipedia.py (révision 5068)
+++ wikipedia.py (copie de travail)
@@ -1660,7 +1665,7 @@
except NoPage:
raise
except IsRedirectPage, ex:
- target = ex.message
+ target = ex[0]
if '|' in target:
warnings.warn("'%s' has a | character, this makes no
sense"
% target, Warning)
@@ -4258,9 +4264,9 @@
tree = BeautifulSoup(mwpage,
convertEntities=BeautifulSoup.HTML_ENTITIES,
parseOnlyThese=SoupStrainer("textarea"))
- if tree.textarea is not None:
+ try:
value = tree.textarea.string.strip()
- else:
+ except AttributeError:
value = None
if value:
self._mediawiki_messages[key.lower()] = value
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899414&group_…
Bugs item #1898827, was opened at 2008-02-21 10:30
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1898827&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: Hugo.arg (hugoarg)
Assigned to: Nobody/Anonymous (nobody)
Summary: pms wiki bug
Initial Comment:
There is a bug at interwiki.py. When my bot adds any interwiki link to Piemonteis (pms) wikipedia, bot stops work and shows following message:
Changing page [[pms:Ligurin]]
Dump pms (wikipedia) saved
Traceback (most recent call last):
File "C:\Python25\pywikipedia\interwiki.py", line 1645, in <module>
bot.run()
File "C:\Python25\pywikipedia\interwiki.py", line 1409, in run
self.queryStep()
File "C:\Python25\pywikipedia\interwiki.py", line 1388, in queryStep
subj.finish(self)
File "C:\Python25\pywikipedia\interwiki.py", line 976, in finish
if self.replaceLinks(page, new, bot):
File "C:\Python25\pywikipedia\interwiki.py", line 1127, in replaceLinks
status, reason, data = page.put(newtext, comment = wikipedia.translate(page.
site().lang, msg)[0] + mods)
File "C:\Python25\pywikipedia\wikipedia.py", line 1215, in put
return self._putPage(newtext, comment, watchArticle, minorEdit, newPage, sel
f.site().getToken(sysop = sysop), sysop = sysop)
File "C:\Python25\pywikipedia\wikipedia.py", line 1307, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "C:\Python25\pywikipedia\wikipedia.py", line 4302, in has_mediawiki_messa
ge
v = self.mediawiki_message(key)
File "C:\Python25\pywikipedia\wikipedia.py", line 4258, in mediawiki_message
value = tree.textarea.string.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2008-02-22 08:14
Message:
Logged In: YES
user_id=855050
Originator: NO
fixed in r5069. The bug was triggered because an admin on wiki:pms
blanked the contents of [[MediaWiki:Spamprotectiontitle]] but didn't delete
the page.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1898827&group_…
Revision: 5069
Author: russblau
Date: 2008-02-22 13:13:08 +0000 (Fri, 22 Feb 2008)
Log Message:
-----------
Fix bug 1898827 - pms wiki bug (empty MediaWiki: page)
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2008-02-21 21:01:20 UTC (rev 5068)
+++ trunk/pywikipedia/wikipedia.py 2008-02-22 13:13:08 UTC (rev 5069)
@@ -4258,7 +4258,7 @@
tree = BeautifulSoup(mwpage,
convertEntities=BeautifulSoup.HTML_ENTITIES,
parseOnlyThese=SoupStrainer("textarea"))
- if tree.textarea is not None:
+ if tree.textarea is not None and tree.textarea.string is not None:
value = tree.textarea.string.strip()
else:
value = None
Bugs item #1899422, was opened at 2008-02-22 00:54
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=1899422&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: tlh to be removed from wiktionaries
Initial Comment:
Interwiki links to 'tlh' don't work any longer in wiktionaries. Klingon wiktionary seems to be closed. Interwiki links should be removed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899422&group_…
Bugs item #1899414, was opened at 2008-02-22 16:42
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=1899414&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: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: two attribute error in FreeBSD (wikipedia.py)
Initial Comment:
>python interwiki.py -lang:zh -autonomous -continue
......
Updating links on page [[pms:Ucrain-a]].
WARNING: [[cu:OuÇÓÇÙÇÈÇÑÇÖÇÈ]] is either deleted or has a mismatching disambiguation state.
Changes to be made: a modifica: [[gv:Yn Ookraan]]
- [[gv:Yn Ookraane]]
+ [[gv:Yn Ookraan]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 4.4 seconds, 2008-02-22 01:50:31
Changing page [[pms:Ucrain-a]]
Dump zh (wikipedia) saved
Traceback (most recent call last):
File "interwiki.py", line 1645, in ?
bot.run()
File "interwiki.py", line 1409, in run
self.queryStep()
File "interwiki.py", line 1388, in queryStep
subj.finish(self)
File "interwiki.py", line 976, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1127, in replaceLinks
status, reason, data = page.put(newtext, comment = wikipedia.translate(page.site().lang, msg)[0] + mods)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1215, in put
return self._putPage(newtext, comment, watchArticle, minorEdit, newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1307, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4302, in has_mediawiki_message
v = self.mediawiki_message(key)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4258, in mediawiki_message
value = tree.textarea.string.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
>python redirect.py double -always -lang:en
....When the code start to detect target, it return back this error.
Traceback (most recent call last):
File "redirect.py", line 399, in ?
main()
File "redirect.py", line 395, in main
bot.run()
File "redirect.py", line 350, in run
self.fix_double_redirects()
File "redirect.py", line 271, in fix_double_redirects
targetPage = newRedir.getRedirectTarget()
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 1663, in getRedirectTarget
target = ex.message
AttributeError: IsRedirectPage instance has no attribute 'message'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1899414&group_…