Patches item #2784482, was opened at 2009-04-30 18:47
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2784482&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: sigmaoctantis (sigmaoctantis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Additional options for pagegenerators.py
Initial Comment:
Two other generators for pagegenerators.py
-xlink (similar to -link): reads links on a webpage rather than a file
-check : for WikiProject Check Wikipedia reports on toolserver
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:54
Message:
Submitter, please confirm this patch is still valid (too many changes to
MediaWiki and no time to test here)...
----------------------------------------------------------------------
Comment By: sigmaoctantis (sigmaoctantis)
Date: 2009-05-07 10:52
Message:
If there is interest, I could integrate the first generator with
"untaggedGenerator" in add_text.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2784482&group_…
Patches item #2787889, was opened at 2009-05-06 16:29
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2787889&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: rewrite
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: liangent (liangent)
Assigned to: Nobody/Anonymous (nobody)
Summary: getcurrenttime()
Initial Comment:
maybe this is better (less cost)
Index: pywikibot/pywikibot/site.py
===================================================================
--- pywikibot/pywikibot/site.py (revision 6836)
+++ pywikibot/pywikibot/site.py (working copy)
@@ -794,10 +794,10 @@
"""
r = api.Request(site=self,
- action="parse",
+ action="expandtemplates",
text="{{CURRENTTIMESTAMP}}")
result = r.submit()
- return re.search('\d+', result['parse']['text']['*']).group()
+ return re.search('\d+', result['expandtemplates']['*']).group()
def getcurrenttime(self):
"""Return a Timestamp object representing the current server time."""
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:53
Message:
This request may already be outdated, but please attach a proper patch.
Otherwise this patch will be rejected for certain after 2 weeks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2787889&group_…
Patches item #2791305, was opened at 2009-05-13 19:07
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2791305&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: Translations
Group: None
>Status: Closed
>Resolution: Rejected
Priority: 7
Private: No
Submitted By: Maurits (mcknol)
Assigned to: Nobody/Anonymous (nobody)
Summary: Neglected disamb-templates on several wiki's by interwiki.py
Initial Comment:
Please add {{surname}}, {{hndis}} and {{given name}} to the list of possible disambiguation templates on en.wikipedia for interwiki.py.
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:51
Message:
Rejected. No patch attached.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-05-28 03:24
Message:
Hello.
Can you read anywhere that someone has fixed the bug?
I can't. The bug is still marked as open.
Also, this has _always_ been like this. Always. Nothing has changed on
pywikipedia side for detection of templates for en.wikipedia, ever.
If someone feels he can implement a patch ( see
http://www.mail-archive.com/pywikipedia-l@lists.wikimedia.org/msg01202.html
) for details. Please go ahead, and implement it.
----------------------------------------------------------------------
Comment By: Carsrac (carsrac)
Date: 2009-05-27 16:35
Message:
I have tested it and surname and shipindex is not detected, please undo the
None change, because it is not working.
Please test before making changes. Now a lot of iw are removed automaticly
by the bots. And increase the priority of this bug.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2009-05-23 12:22
Message:
It not solved and I am running r6915.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-05-15 22:43
Message:
those templates are not officially disambiguation templates for
en.wikipedia, those are set index templates.
Please read
http://www.mail-archive.com/pywikipedia-l@lists.wikimedia.org/msg01202.html
about it =)
----------------------------------------------------------------------
Comment By: sigmaoctantis (sigmaoctantis)
Date: 2009-05-15 20:00
Message:
There is a list of these templates at
http://en.wikipedia.org/wiki/MediaWiki:Disambiguationspage
----------------------------------------------------------------------
Comment By: Maurits (mcknol)
Date: 2009-05-15 12:16
Message:
See also the interwiki's of these templates. None of them seems to be
included and therefore, interwiki.py makes many wrong decisions.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2791305&group_…
Patches item #2790445, was opened at 2009-05-12 06:30
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2790445&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: 7
Private: No
Submitted By: sigmaoctantis (sigmaoctantis)
>Assigned to: NicDumZ — Nicolas Dumazet (nicdumz)
Summary: Re 1843798: Add capabiliy to remember pages to replace.py
Initial Comment:
A new patch to implement toobaz's function with the changes suggested by wikipedian.
https://sourceforge.net/tracker/?func=detail&aid=1843798&group_id=93107&ati…
- solve_disambiguation.py and pagegenerators.py:
1. Generator and logging function for -primary option moved
from solve_disambiguation.py to pagegenerators.py
2. TODO in solve_disambiguation.py done:
generator now starts yielding before all referring pages have been found
3. makes use of new TextfilePageGenerator
4. code is a few lines shorter
- replace.py:
5. "-exclude" option from toobaz's patch implemented.
Allows to filter generator through a list of previously edited pages.
New pages are appended to the filter file based on choices made:
-exclude: logs to filter choice "N"
6. additional command line options for other settings:
-editonce: logs to filter choices "Y", "A"
-treatonce: logs to filter choices "Y", "A", "N"
-scanonce: logs to filter choices "Y", "A", "N"; no change
7. uses generator and file format from solve_disambiguation.py
(suggested by wikipedian below)
8. default filter filename is the name of the fix. Files are placed
in a subdirectory "replace".
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:49
Message:
Assigning to nicdumz for processing.
----------------------------------------------------------------------
Comment By: sigmaoctantis (sigmaoctantis)
Date: 2009-05-12 15:25
Message:
Thanks for the quick review. I will try to address the
various points and included a new version of the patch.
a. I added a bit more text to the source and reformatted
part of the code, but I didn't want to change existing
code more than needed.
b. generator:
- checks if the filter file exists
- reads it
- runs the next generator and skips pages in memory
Previously, it first run the next generator and then deleted
from its result pages that were in the filter file
c. replace.py command line options
I added several command line options to define which
pages should be skipped the next time. One could edit
replace.py directly, but it seemed cleaner to provide
all options at command line level.
toobaz excluded pages where a replacement was manually
rejected ("N"). The option "-exclude" will keep this
functionality.
Personally, I find it more useful to filter pages that
were edited in a previous run. This avoids that the bot
repeats the same edit later, after someone reverted
a previous edit. Option "-editonce" provides this.
"-treatonce" combines the two.
"-scanonce" avoids that the bot re-fetches the same page
in a 2nd run, even if the regex didn't match it in
the first run. (I fixed an omission for "skipped" in
the second patch)
Without the different options, the additions to replace.py
would be much shorter ..
d. I had to insert several "break" in replace.py to avoid
that nothing but "N" gets to the stage confusingly labeled
"choice must be 'N'" in the code.
e. FilterFileAppend is based on the function from
solve_disambiguation. The advantage of writing each
page to the file is that it wont miss one if it's
interrupted or crashes. This mode from
solve_disambiguation remains unchanged.
f. The same goes for the file format. Up to now, I didn't
have any problems with it and it worked ok with a
title "臺灣Taiwan&āàäà" I just tested. urlname was also
used by PrimaryIgnoreManager. For backward compatibility,
may it should be kept.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-05-12 12:47
Message:
Wow, that's a big patch =)
* codecs is fine with me
* can you avoid lines > 80 characters? I know that this is not something
we do everywhere, but that's bad looking code. Same goes for if foo: bar.
Please skip a line.
* can you document thoroughly what's being done? parameters in the
generators? In replace.py ? I find it really hard to understand the
"choice" table in the docstring explaining -scanonce & others.
* What's this:
+ f = codecs.open(filename, 'r', 'utf-8')
+ f.close()
??
I am also not convinced by the fact that after each page, FilterFileAppend
is called, and #1 path is computed, #2 a file is opened, written in, and
closed.
I'm thinking that a possible cleaner way to do this would be to have a
Filter object: put everything you need in it (an opened file descriptor, a
list of titles to ignore if you need to use this, etc...) and keep a
reference to it from the replace & disambig bots. How does that sound to
you?
I also know that Daniel wanted first to keep the same file format, but...
a couple of things are wrong here:
* if you output titles with page.urlname() it will not be possible to read
the file with TextfilePageGenerator afaik. Think of special characters,
being url encoded, and not decoded.
* if you want to use a Page title for a filename, you want
Page.titleforFilename, not Page.urlname
Thank you!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2790445&group_…
Patches item #2815371, was opened at 2009-07-01 20:56
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2815371&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: rewrite
Group: None
>Status: Closed
>Resolution: Rejected
Priority: 5
Private: No
Submitted By: almaghi (almaghi)
Assigned to: Nobody/Anonymous (nobody)
Summary: add-text.py: better help if no parameters given
Initial Comment:
add-text.py: better help if no parameters given in command.
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:48
Message:
Rejected. No patch attached.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2815371&group_…
Patches item #2818283, was opened at 2009-07-08 01:52
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2818283&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: Fixed
Priority: 5
Private: No
Submitted By: almaghi (almaghi)
Assigned to: Nobody/Anonymous (nobody)
Summary: New script to manage statistics
Initial Comment:
Create and update a Statistics wikitable
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:47
Message:
Added in r7355. Thanks.
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-10-02 11:47
Message:
Added in r7355. Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2818283&group_…
Patches item #2818283, was opened at 2009-07-08 01:52
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2818283&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: almaghi (almaghi)
Assigned to: Nobody/Anonymous (nobody)
Summary: New script to manage statistics
Initial Comment:
Create and update a Statistics wikitable
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:47
Message:
Added in r7355. Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2818283&group_…
Patches item #2835479, was opened at 2009-08-11 12:12
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2835479&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: rewrite
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jean-Daniel Fekete (jdfekte)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allowing xmlreader to read from stdin
Initial Comment:
XML dumps are huge and distributed in 7zip format now. This very small patch allows dumps to be read from the standard input using '-' as file name.
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:43
Message:
Submitter, please address comment dated 2009-08-11 13:45 by valhallasw.
Otherwise this patch will be rejected for certain after 2 weeks.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2009-08-11 13:45
Message:
I never see the point of programs adding '-' as magic filename. Unix has
/dev/stdin, dos/windows have CON. Secondly, it is probably better to use an
internal 7zip decompressor, as pipes tend to be slow.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2835479&group_…
Patches item #2868798, was opened at 2009-09-28 14:16
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2868798&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: Fixed
Priority: 6
Private: No
Submitted By: xqt (xqt)
Assigned to: Filnik (filnik)
Summary: Various bugfixes
Initial Comment:
censure.py
handle index error of page.previousRevision()
(solves #2848560)
config.py
set use_api default value to True
(solves various requests to r7267like #2867449, #2865679, #2862265, #2860410)
cosmetic_changes.py
additional features copied from fixes.py
redirect.py
additional exception handling
solve_disambiguation.py
deleted directories removed
weblinkchecker.py
(fix for #2783408)
wikipedia.py
patch #2848560 reverted
getting mediawiki-messages depending of current version
and solves various requests to r7267 like #2867449, #2865679, #2862265, #2860410
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:38
Message:
r7348-r7354. Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2868798&group_…
Bugs item #2783408, was opened at 2009-04-29 07:38
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2783408&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: Fixed
Priority: 5
Private: No
Submitted By: xqt (xqt)
Assigned to: Nobody/Anonymous (nobody)
Summary: weblinkchecker warning
Initial Comment:
__version__='$Id: weblinkchecker.py 6746 2009-04-28 06:25:09Z shizhao $'
no bug but a warning comes sometimes:
weblinkchecker.py:808: Syntax Warning: name 'day' is asigned to before global declaration global day
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:37
Message:
Fixed in r7353
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-28 14:18
Message:
patch comes with #2868798
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-15 18:16
Message:
patch added
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-08-10 21:15
Message:
The reason is that day is assigned first in line 792:
day = 7
This bug came with r6639
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2783408&group_…