Feature Requests item #2785017, was opened at 2009-05-01 09:01
Message generated for change (Comment added) made by sigmaoctantis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2785017&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
Priority: 5
Private: No
Submitted By: Multichill (multichill)
Assigned to: Multichill (multichill)
Summary: Update interwiki's with commonscat.py
Initial Comment:
Commonscat.py should update interwiki's at Commons when working on a category. Some code is already available, but not the policy on how to update the links. We have several sources:
-interwiki links to articles on the Commons category
-interwiki links to categoires on the Commons category
-interwiki links to articles at the Wikipedia article
-interwiki links to categories at the Wikipedia category
Not clear how to deal with this. We don't want bots constantly changing the links at a Commons category because multiple categories at some Wikipedia link to the same Commons category. Interwiki conflicts are probably going to be a source of problems too.
----------------------------------------------------------------------
Comment By: sigmaoctantis (sigmaoctantis)
Date: 2009-05-02 13:55
Message:
and
Commons category => Wikipedia article
----------------------------------------------------------------------
Comment By: sigmaoctantis (sigmaoctantis)
Date: 2009-05-02 13:49
Message:
A solution might be:
- Wikipedia article => Commons category
- Wikipedia category => Commons category
- Commons gallery => Wikipedia article
(Commons article = Commons gallery)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2785017&group_…
Feature Requests item #2785017, was opened at 2009-05-01 09:01
Message generated for change (Comment added) made by sigmaoctantis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2785017&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
Priority: 5
Private: No
Submitted By: Multichill (multichill)
Assigned to: Multichill (multichill)
Summary: Update interwiki's with commonscat.py
Initial Comment:
Commonscat.py should update interwiki's at Commons when working on a category. Some code is already available, but not the policy on how to update the links. We have several sources:
-interwiki links to articles on the Commons category
-interwiki links to categoires on the Commons category
-interwiki links to articles at the Wikipedia article
-interwiki links to categories at the Wikipedia category
Not clear how to deal with this. We don't want bots constantly changing the links at a Commons category because multiple categories at some Wikipedia link to the same Commons category. Interwiki conflicts are probably going to be a source of problems too.
----------------------------------------------------------------------
Comment By: sigmaoctantis (sigmaoctantis)
Date: 2009-05-02 13:49
Message:
A solution might be:
- Wikipedia article => Commons category
- Wikipedia category => Commons category
- Commons gallery => Wikipedia article
(Commons article = Commons gallery)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2785017&group_…
Bugs item #2784477, was opened at 2009-04-30 12:34
Message generated for change (Comment added) made by sigmaoctantis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2784477&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: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: sigmaoctantis (sigmaoctantis)
Assigned to: Nobody/Anonymous (nobody)
Summary: TypeError with "-new" option in pagegenerators.py
Initial Comment:
Error message: "TypeError: newpages() got an unexpected keyword argument 'namespace'
newpages() got an unexpected keyword argument 'namespace'"
Removing ", namespace=namespace" fixes it, but might break it, if this a namespace other than 0 is available somewhere else.
----------------------------------------------------------------------
Comment By: sigmaoctantis (sigmaoctantis)
Date: 2009-05-02 13:45
Message:
yes, it was out of sync. It works now. Thank you for looking into this.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-05-02 10:21
Message:
Works for me. Probably you have an edited version of wikipedia.py, where
newpages function has no namespace parameter.
Next time you send a bug report, please include uncut traceback.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2784477&group_…
Bugs item #2785594, was opened at 2009-05-02 12:21
Message generated for change (Comment added) made by liangent
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2785594&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: Russell Blau (russblau)
Summary: Page.backlinks cannot work well on some pages
Initial Comment:
on zhwiki,
tuple(Page(Link(u'Wikipedia:沙盒')).backlinks())
NOTE: 沙盒 means sandbox in chinese
raises exception: RuntimeError: getredirtarget: 'redirects' contains no key for page WP:SB.
NOTE: WP:SB is a redirect to Wikipedia:沙盒, and WP is a namespace alias of Wikipedia
no matter what value i use for filterRedirects parameter
i cannot find what's the problem...
----------------------------------------------------------------------
>Comment By: liangent (liangent)
Date: 2009-05-02 15:11
Message:
i found something abnormal
currently, WP: is an alias of Wikipedia:, however, in api query, <bl
pageid="100223" ns="0" title="WP:SB" redirect="" /> is returned.
see
http://zh.wikipedia.org/w/api.php?action=query&list=backlinks&bltitle=Wikip…
this caused the problem
i reported it here, https://bugzilla.wikimedia.org/show_bug.cgi?id=17701 ,
but should pywikibot handle this abnormal situation?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2785594&group_…
Bugs item #2784477, was opened at 2009-04-30 18:34
Message generated for change (Comment added) made by cosoleto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2784477&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: Closed
>Resolution: Works For Me
Priority: 5
Private: No
Submitted By: sigmaoctantis (sigmaoctantis)
Assigned to: Nobody/Anonymous (nobody)
Summary: TypeError with "-new" option in pagegenerators.py
Initial Comment:
Error message: "TypeError: newpages() got an unexpected keyword argument 'namespace'
newpages() got an unexpected keyword argument 'namespace'"
Removing ", namespace=namespace" fixes it, but might break it, if this a namespace other than 0 is available somewhere else.
----------------------------------------------------------------------
>Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-05-02 16:21
Message:
Works for me. Probably you have an edited version of wikipedia.py, where
newpages function has no namespace parameter.
Next time you send a bug report, please include uncut traceback.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2784477&group_…
Patches item #2785623, was opened at 2009-05-02 15:48
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2785623&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: Accepted
Priority: 5
Private: No
Submitted By: liangent (liangent)
Assigned to: Nobody/Anonymous (nobody)
Summary: small mistake in page.py
Initial Comment:
Index: pywikibot/pywikibot/page.py
===================================================================
--- pywikibot/pywikibot/page.py (revision 6695)
+++ pywikibot/pywikibot/page.py (working copy)
@@ -675,7 +675,7 @@
watch = False
else:
unwatch = not watch
- if not force and not self.botMayEdit:
+ if not force and not self.botMayEdit():
raise pywikibot.PageNotSaved(
"Page %s not saved; editing restricted by {{bots}} template"
% self.title(asLink=True))
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-05-02 16:10
Message:
corrected in r6788 :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2785623&group_…
Patches item #2785623, was opened at 2009-05-02 13:48
Message generated for change (Settings changed) made by liangent
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2785623&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: small mistake in page.py
Initial Comment:
Index: pywikibot/pywikibot/page.py
===================================================================
--- pywikibot/pywikibot/page.py (revision 6695)
+++ pywikibot/pywikibot/page.py (working copy)
@@ -675,7 +675,7 @@
watch = False
else:
unwatch = not watch
- if not force and not self.botMayEdit:
+ if not force and not self.botMayEdit():
raise pywikibot.PageNotSaved(
"Page %s not saved; editing restricted by {{bots}} template"
% self.title(asLink=True))
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2785623&group_…
Patches item #2785623, was opened at 2009-05-02 13:48
Message generated for change (Tracker Item Submitted) made by liangent
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2785623&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: liangent (liangent)
Assigned to: Nobody/Anonymous (nobody)
Summary: small mistake in page.py
Initial Comment:
Index: pywikibot/pywikibot/page.py
===================================================================
--- pywikibot/pywikibot/page.py (revision 6695)
+++ pywikibot/pywikibot/page.py (working copy)
@@ -675,7 +675,7 @@
watch = False
else:
unwatch = not watch
- if not force and not self.botMayEdit:
+ if not force and not self.botMayEdit():
raise pywikibot.PageNotSaved(
"Page %s not saved; editing restricted by {{bots}} template"
% self.title(asLink=True))
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2785623&group_…
Bugs item #2785594, was opened at 2009-05-02 12:21
Message generated for change (Tracker Item Submitted) made by liangent
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2785594&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: Russell Blau (russblau)
Summary: Page.backlinks cannot work well on some pages
Initial Comment:
on zhwiki,
tuple(Page(Link(u'Wikipedia:沙盒')).backlinks())
NOTE: 沙盒 means sandbox in chinese
raises exception: RuntimeError: getredirtarget: 'redirects' contains no key for page WP:SB.
NOTE: WP:SB is a redirect to Wikipedia:沙盒, and WP is a namespace alias of Wikipedia
no matter what value i use for filterRedirects parameter
i cannot find what's the problem...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2785594&group_…
Patches item #2783431, was opened at 2009-04-29 08:54
Message generated for change (Comment added) made by cosoleto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2783431&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: titles from file for pagegenerators.py
Initial Comment:
Additional option "-plainfile" reads titles from text files without square brackets ("-file")
----------------------------------------------------------------------
>Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-05-02 13:59
Message:
I think I will commit this patch tomorrow with a slightly changed
docstring.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-05-01 07:08
Message:
looks good to me. I was pretty sure that some generator already allowed to
use one title per line, but I can't find it anymore. (?)
----------------------------------------------------------------------
Comment By: sigmaoctantis (sigmaoctantis)
Date: 2009-04-30 20:11
Message:
It is better than two separate options. I tested it and it works with files
in both formats.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-30 19:40
Message:
A preliminary patch to enhance -file option as described is attached. Any
comments?
----------------------------------------------------------------------
Comment By: sigmaoctantis (sigmaoctantis)
Date: 2009-04-30 18:14
Message:
Thanks, I updated it accordingly. Feel free to combine the two.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-30 18:09
Message:
f.readline() should be used instead of re.findall().
I think we have a too populated list of options. Probably it's better to
change -file to interpret line as page titles when no [[title]] is found,
instead of adding yet another option.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2783431&group_…