Patches item #1881758, was opened at 2008-01-29 03:59
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=1881758&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: Swedish summaries for a few scripts
Initial Comment:
I've noticed that some of the scripts are missing Swedish summaries, so here are a few new ones:
==add_text.py==
'sv': u'Bot: Lägger till %s'
==archivebot.py==
'sv': {
'ArchiveFull': u'(ARKIV FULLT)',
'InitialArchiveHeader': u'{{arkiv}}',
'PageSummary': u'Arkiverar %(count)d trådar (%(why)s) till %(archives)s.',
'ArchiveSummary': u'Arkiverar %(count)d trådar från [[%(from)s]].',
'OlderThanSummary': u'äldre än',
}
==basic.py==
'sv': u'Bot: Ändrar ...'
==capitalize_redirects.py==
'sv': u'Bot: Omdirigerar till [[%s]]'
==catall.py==
'sv':u'Bot: Ändrar kategori'
==catlib.py==
'sv':u'Bot: Flyttad från %s. Författare: %s'
==cosmetic_changes.py==
msg_standalone: 'sv': u'Bot: Kosmetiska ändringar'
msg_append: 'sv': u'kosmetiska ändringar'
==delete.py==
msg_simple_delete: 'sv': u'Bot: Tar bort fillista.'
msg_delete_category: 'sv': u'Bot: Tar bort alla sidor i kategori %s'
msg_delete_links: 'sv': u'Bot: Tar bort alla sidor länkade från %s'
msg_delete_images: 'sv': u'Bot: Tar bort alla bilder på sida %s'
==editarticle.py==
'sv': u'Manuell redigering: %s'
==fixes.py==
'sv': u'Bot: Konverterar/korrigerar HTML'
==fixing_redirects.py==
msg: 'sv': u'Bot: Rättar omdirigeringar'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1881758&group_…
Bugs item #1881742, was opened at 2008-01-29 12:27
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=1881742&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: Dashiva (magnusrk)
Assigned to: Nobody/Anonymous (nobody)
Summary: Casing problem with mediawiki_message
Initial Comment:
mediawiki_message in wikipedia.py uses the PHP view of Special:Allmessages as fallback if the specific message page is missing (common in older MW versions).
However, this only registers messages with the first letter lowercase, while regular page access is first letter CI. There are six calls to mediawiki_message using uppercased first letters in wikipedia.py alone, probably many more elsewhere (based on current HEAD).
mediawiki_message should lowercase the first letter of the requested message name before doing the lookup.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1881742&group_…
Patches item #1880834, was opened at 2008-01-27 14:54
Message generated for change (Comment added) made by andreasjs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880834&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: AndreasJS (andreasjs)
Assigned to: Nobody/Anonymous (nobody)
Summary: add standard doc for genFactory.handleArg()
Initial Comment:
The documentation for the pagegenerator factory is contained in wikipedia.pagegenerators.parameterHelp and is imported as a macro into the pages using the factory, thus keeping it always up to date in all files. This is standard and is here extended to the files that did not use this feature.
add_text.py
blockpageschecker.py
inline_images.py
lonelypages.py
----------------------------------------------------------------------
>Comment By: AndreasJS (andreasjs)
Date: 2008-01-27 14:58
Message:
Logged In: YES
user_id=1738850
Originator: YES
File Added: lonelypages.py
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-01-27 14:57
Message:
Logged In: YES
user_id=1738850
Originator: YES
File Added: lonelypages.py
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-01-27 14:57
Message:
Logged In: YES
user_id=1738850
Originator: YES
File Added: inline_images.diff
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-01-27 14:56
Message:
Logged In: YES
user_id=1738850
Originator: YES
File Added: add_text.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880834&group_…
Patches item #1880834, was opened at 2008-01-27 14:54
Message generated for change (Comment added) made by andreasjs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880834&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: AndreasJS (andreasjs)
Assigned to: Nobody/Anonymous (nobody)
Summary: add standard doc for genFactory.handleArg()
Initial Comment:
The documentation for the pagegenerator factory is contained in wikipedia.pagegenerators.parameterHelp and is imported as a macro into the pages using the factory, thus keeping it always up to date in all files. This is standard and is here extended to the files that did not use this feature.
add_text.py
blockpageschecker.py
inline_images.py
lonelypages.py
----------------------------------------------------------------------
>Comment By: AndreasJS (andreasjs)
Date: 2008-01-27 14:57
Message:
Logged In: YES
user_id=1738850
Originator: YES
File Added: lonelypages.py
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-01-27 14:57
Message:
Logged In: YES
user_id=1738850
Originator: YES
File Added: inline_images.diff
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-01-27 14:56
Message:
Logged In: YES
user_id=1738850
Originator: YES
File Added: add_text.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880834&group_…
Patches item #1880834, was opened at 2008-01-27 14:54
Message generated for change (Comment added) made by andreasjs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880834&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: AndreasJS (andreasjs)
Assigned to: Nobody/Anonymous (nobody)
Summary: add standard doc for genFactory.handleArg()
Initial Comment:
The documentation for the pagegenerator factory is contained in wikipedia.pagegenerators.parameterHelp and is imported as a macro into the pages using the factory, thus keeping it always up to date in all files. This is standard and is here extended to the files that did not use this feature.
add_text.py
blockpageschecker.py
inline_images.py
lonelypages.py
----------------------------------------------------------------------
>Comment By: AndreasJS (andreasjs)
Date: 2008-01-27 14:57
Message:
Logged In: YES
user_id=1738850
Originator: YES
File Added: inline_images.diff
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-01-27 14:56
Message:
Logged In: YES
user_id=1738850
Originator: YES
File Added: add_text.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880834&group_…
Patches item #1880834, was opened at 2008-01-27 14:54
Message generated for change (Comment added) made by andreasjs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880834&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: AndreasJS (andreasjs)
Assigned to: Nobody/Anonymous (nobody)
Summary: add standard doc for genFactory.handleArg()
Initial Comment:
The documentation for the pagegenerator factory is contained in wikipedia.pagegenerators.parameterHelp and is imported as a macro into the pages using the factory, thus keeping it always up to date in all files. This is standard and is here extended to the files that did not use this feature.
add_text.py
blockpageschecker.py
inline_images.py
lonelypages.py
----------------------------------------------------------------------
>Comment By: AndreasJS (andreasjs)
Date: 2008-01-27 14:56
Message:
Logged In: YES
user_id=1738850
Originator: YES
File Added: add_text.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880834&group_…
Patches item #1880834, was opened at 2008-01-27 14:54
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=1880834&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: AndreasJS (andreasjs)
Assigned to: Nobody/Anonymous (nobody)
Summary: add standard doc for genFactory.handleArg()
Initial Comment:
The documentation for the pagegenerator factory is contained in wikipedia.pagegenerators.parameterHelp and is imported as a macro into the pages using the factory, thus keeping it always up to date in all files. This is standard and is here extended to the files that did not use this feature.
add_text.py
blockpageschecker.py
inline_images.py
lonelypages.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880834&group_…
Bugs item #1878986, was opened at 2008-01-24 16:59
Message generated for change (Comment added) made by btongminh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1878986&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: Closed
Resolution: None
Priority: 7
Private: No
Submitted By: Filnik (filnik)
Assigned to: Nobody/Anonymous (nobody)
Summary: getUrl() has a problem. No timeout?
Initial Comment:
Hello, I've seen that in my processes there are some scripts that are started something like 1-2 weeks ago that are still running.
The problem is that the function getUrl() of wikipedia.py doesn't raise any error after x time (or, I suppose that's this the reason, otherwise we have a bot that is trying to get a page for 1 week without a specific reason...).
I've not fixed the Bug only because I've no idea how to fix it (I have never handle with HTTP connections directly on python) but Bryan has said:
<Bryan> yes, but that would require you to modify the socket settings
<Bryan> sock.settimeout(1500)
<Bryan> or you do select.select on the socket
<Bryan> which is very hard in pywiki
Some ideas? :-) The 1500 by the way is only a number, we should/can set it on config.py. I've set this bug with high priority because infinite loops on toolserver are really a big problem.
Thanks, Filnik
----------------------------------------------------------------------
>Comment By: Bryan (btongminh)
Date: 2008-01-27 19:16
Message:
Logged In: YES
user_id=1806226
Originator: NO
Is a config setting per r4944: config.socket_timeout
----------------------------------------------------------------------
Comment By: Filnik (filnik)
Date: 2008-01-27 15:59
Message:
Logged In: YES
user_id=1834469
Originator: YES
Seems that also my scripts are working correctly. Bug closed (thanks to
all :-))
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2008-01-27 13:31
Message:
Logged In: YES
user_id=855050
Originator: NO
OK to close. I ran a lengthy script on my home machine that has had
timeout problems in the past, and it worked fine.
----------------------------------------------------------------------
Comment By: Filnik (filnik)
Date: 2008-01-25 14:54
Message:
Logged In: YES
user_id=1834469
Originator: YES
Ok, thanks russblau, should I close the topic or you aren't sure at 100%
that it has been fixed? :-) Bye Filnik
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2008-01-24 23:41
Message:
Logged In: YES
user_id=855050
Originator: NO
Sorry, that last comment was me, and the revision was r4936
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-01-24 23:37
Message:
Logged In: NO
Added a 120-second timeout in r4796; seems to work in initial testing.
The problem with libcurl suggestion is that it would require every user of
every bot to download and install one or more third-party packages.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-01-24 18:21
Message:
Logged In: YES
user_id=181280
Originator: NO
I am not sure PyWikipediaBot cause intensive cpu usage in Toolserver due
to this problem, anyway to fix temporary the no timeout problem seems there
is this easy solution:
import socket
socket.setdefaulttimeout(0.1)
urllib2.urlopen("http://cosoleto.free.fr").read()
[...]
urllib2.URLError: <urlopen error timed out>
urllib.urlopen("http://cosoleto.free.fr").read()
[...]
IOError: [Errno socket error] timed out
But I suggest libcurl (http://curl.haxx.se/libcurl/) to improve easily and
simplify the net side of the PyWikipedia code. libcurl is a feature rich
(persistant connections, trasparent compression support, etc...) and
portable URL transfer library written in C. Why not?
----------------------------------------------------------------------
Comment By: Bryan (btongminh)
Date: 2008-01-24 17:06
Message:
Logged In: YES
user_id=1806226
Originator: NO
Note that it is much easier to do settimeout if persistent_http was
working. Unfortunately, it is not. I disabled it some time ago
(http://fisheye.ts.wikimedia.org/browse/pywikipedia/trunk/pywikipedia/wikipe…)
saying it needs investigation. Anybody here who is having to do this
investigation? It would not only solve Filnik's bug
(site.conn.sock.settimeout), but it would also greatly improve performance
for single threaded bots.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1878986&group_…