Bugs item #2009068, was opened at 2008-07-02 20:39
Message generated for change (Comment added) made by btongminh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2009068&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: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: diskcache files could be deleted when bot finishes
Initial Comment:
Currently, using diskcache, cache files are created in the folder "cache". But they do not get deleted on proper exits. If you run the bot once more, a new cache file (for each wiki) is created:
1st run: msg-wikipedia-eo-wpovcxkn
2nd run: msg-wikipedia-eo-oqxakgvsy
etc.
When the bot finishes, all current *cache* files (c|sh)ould be deleted.
----------------------------------------------------------------------
>Comment By: Bryan (btongminh)
Date: 2008-07-02 21:37
Message:
Logged In: YES
user_id=1806226
Originator: NO
Really strange that that destructor does not work. Perhaps add this
function to wikipedia.stopme() ?
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-07-02 21:28
Message:
Logged In: YES
user_id=181280
Originator: NO
I consider this a bug report, not a feature request because that it's
expected behaviour.
diskcache.py:
def __del__(self):
self.cache_file.close()
import os
os.unlink(self.cache_path)
os = None
os.unlink() delete the file (http://docs.python.org/lib/os-file-dir.html).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2009068&group_…
Bugs item #2009068, was opened at 2008-07-02 20:39
Message generated for change (Comment added) made by cosoleto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2009068&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: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: diskcache files could be deleted when bot finishes
Initial Comment:
Currently, using diskcache, cache files are created in the folder "cache". But they do not get deleted on proper exits. If you run the bot once more, a new cache file (for each wiki) is created:
1st run: msg-wikipedia-eo-wpovcxkn
2nd run: msg-wikipedia-eo-oqxakgvsy
etc.
When the bot finishes, all current *cache* files (c|sh)ould be deleted.
----------------------------------------------------------------------
>Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-07-02 21:28
Message:
Logged In: YES
user_id=181280
Originator: NO
I consider this a bug report, not a feature request because that it's
expected behaviour.
diskcache.py:
def __del__(self):
self.cache_file.close()
import os
os.unlink(self.cache_path)
os = None
os.unlink() delete the file (http://docs.python.org/lib/os-file-dir.html).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2009068&group_…
Feature Requests item #2009068, was opened at 2008-07-02 20:39
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2009068&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: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: diskcache files could be deleted when bot finishes
Initial Comment:
Currently, using diskcache, cache files are created in the folder "cache". But they do not get deleted on proper exits. If you run the bot once more, a new cache file (for each wiki) is created:
1st run: msg-wikipedia-eo-wpovcxkn
2nd run: msg-wikipedia-eo-oqxakgvsy
etc.
When the bot finishes, all current *cache* files (c|sh)ould be deleted.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2009068&group_…
Bugs item #2009004, was opened at 2008-07-02 20: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=2009004&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: Log file location not set consistently on Windows
Initial Comment:
I noticed that if I start interwiki.py with the command "interwiki.py -log ..." on Windows XP, its log file interwiki.log is created in the pywikipedia root directory, e.g. C:\svn\pywikipedia\interwiki.log.
However, if I use the command "python interwiki.py -log ...", the log file is properly created in the logs subdirectory, e.g. C:\svn\pywikipedia\logs\interwiki.log.
This is caused by the fact that sys.argv[0] is different depending on how you start interwiki.py: "interwiki.py" sets sys.argv[0] to "C:\svn\pywikipedia\interwiki.py", while "python interwiki.py" sets it to "interwiki.py" without the path. The function calledModuleName() in wikipedia.py uses sys.argv[0] to determine the module name, and setLogfileStatus() uses the module name to construct the log file name.
Can we use os.path.basename() in calledModuleName() to normalize the module name, or would this break something else?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2009004&group_…
Bugs item #2008947, was opened at 2008-07-02 18:06
Message generated for change (Settings changed) made by melancholie
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2008947&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: 3
Private: No
Submitted By: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py -after:zzzz (CAT method) should begin at "zzzz"
Initial Comment:
featured.py -after:zzzz should begin at "zzzz" if method is CAT.
Beginning URL should be e.g.:
http://zh.wikipedia.org/w/index.php?title=Category:%E7%89%B9%E8%89%B2%E6%9D…
Currently the bot begins with "!"; the number of featured articles could be read from the text "...out of 2,118 total." (without calculating?)...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2008947&group_…
Bugs item #2008947, was opened at 2008-07-02 18:06
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=2008947&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: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py -after:zzzz (CAT method) should begin at "zzzz"
Initial Comment:
featured.py -after:zzzz should begin at "zzzz" if method is CAT.
Beginning URL should be e.g.:
http://zh.wikipedia.org/w/index.php?title=Category:%E7%89%B9%E8%89%B2%E6%9D…
Currently the bot begins with "!"; the number of featured articles could be read from the text "...out of 2,118 total." (without calculating?)...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2008947&group_…
I am running replace.py and have several questions. Any help on any of the
questions would be appreciated.
* Can I replace only the first result per page?
* Can I exclude hits within a wikilink, url or header? E.g. can I look for
appropriate technology but ensure it's not inside a wikilink, e.g.
* [[Peter's appropriate technology lamp]] or
* [[Wikipedia:Appropriate technology|appropriate technology stuff at
Wikipedia]]) or
* http://forum.permaculture.org (if I'm looking for "permaculture").
* == Permaculture program ==
Thanks - and thanks also to Merlijn van Deen for answering my last question.
--
Chris Watkins (a.k.a. Chriswaterguy)
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
Blog: chriswaterguy.livejournal.com/
Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a
percentage of your purchase supports Appropedia - at no extra cost.
Where men are the most sure and arrogant, they are commonly the most
mistaken, and have there given reins to passion, without that proper
deliberation and suspense, which can alone secure them from the grossest
absurdities. -- David Hume
Bugs item #2008756, was opened at 2008-07-02 12:26
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=2008756&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: login
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: ulana merops (spacebirdy)
Assigned to: Nobody/Anonymous (nobody)
Summary: readd inuktitut wiktionary to family
Initial Comment:
Dear all, please readd the inuktitut wiktionary (language code iu) to the wiktionary families, so login.py allows to log in to this wiktionary to work there.
It had been closed accidentally although there were people actively contributing. It had been reopened already, so please remove this error from pywikipediabot too.
Many thanks in advance.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2008756&group_…
I was just making a fresh install, to see if that would solve my problem
with the bots not running successfully.
I saw that in the family file there is the following (using the example from
Appropedia):
self.namespaces[4] = {
'_default': u'Appropedia', #Specify the project namespace here.
Other
} #namespaces will be set to
MediaWiki default.
self.namespaces[5] = {
'_default': u'Appropedia talk',
I'm trying to get a deeper understanding here - what is the purpose of this?
In our case we have 2 custom namespaces, so I assume I need to add these
here as well:
self.namespaces[100] = {
'_default': u'Portal',
self.namespaces[101] = {
'_default': u'Portal talk',
self.namespaces[102] = {
'_default': u'Original', #Specify the project namespace here.
Other
} #namespaces will be set to
MediaWiki default.
self.namespaces[103] = {
'_default': u'Original talk',
Thanks,
Chris
--
Chris Watkins (a.k.a. Chriswaterguy)
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
Blog: chriswaterguy.livejournal.com/
Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a
percentage of your purchase supports Appropedia - at no extra cost.
Where men are the most sure and arrogant, they are commonly the most
mistaken, and have there given reins to passion, without that proper
deliberation and suspense, which can alone secure them from the grossest
absurdities. -- David Hume