Feature Requests item #1777751, was opened at 2007-08-20 09:17
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1777751&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: interwiki.py in categories
Initial Comment:
It would be helpful to add functionality to interwiki.py to work with categories and subcategories, not just with articles contained within, i.e. to treat category pages as they were normal articles. Additional key to existing -cat option or whatever, please.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2007-09-29 02:03
Message:
Logged In: NO
Hum, I think that the 2 comments information under need to be add to the
-help of interwiki.py
----------------------------------------------------------------------
Comment By: Marc-Etienne Vargenau (vargenau)
Date: 2007-08-21 01:49
Message:
Logged In: YES
user_id=1118700
Originator: NO
Hello,
I do not know if this was the original question, but there is still
something
I cannot do with subcategories.
Consider:
http://en.wikipedia.org/wiki/Category:France
The Category:France has 21 subcategories and 2 pages in it.
python interwiki.py Category:France
will work on the category itself.
python interwiki.py -cat:France
will work on the two pages France and Portal:France
How do I work on the 21 subcategories (i.e. category:Communications in
France,
etc.)?
Regards,
Marc-Etienne
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2007-08-20 14:33
Message:
Logged In: NO
You can already work on categories interwiki. For example : python
interwiki.py -start:Category:Spain
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1777751&group_…
Bugs item #1804648, was opened at 2007-09-29 01: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=1804648&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
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki block with protected pages
Initial Comment:
Hello
I would like to add a new fonction when interwiki want to edit a protected page.
When interwiki want to edit an protected page, it want to use the sysop account if it exist.
If interwiki can't use the sysop account, he stop this edition and go to the next on the todo list.
I propose that interwiki add to the talk page this :
"
==Interwiki checking by [[user:name_of_the_bot_]]==
I would to change the interwiki links in this page, but the protection make that I can't. So, somebody would to make this :
* Adding [[en:The_link_to_add]
* Replace [[fr:The_link_to_replace]]
* Erase [[es:The_link_to_erase]]
Thanks.
~~~~
"
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1804648&group_…
Feature Requests item #1804482, was opened at 2007-09-29 05:23
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=1804482&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: John Vandenberg (zeroj)
Assigned to: Nobody/Anonymous (nobody)
Summary: Query API CLI
Initial Comment:
query.py provides access to the Query.php API, but there is no command line interface for it. The attached patch provides one.
This patch on this bug needs to be fixed first:
https://sourceforge.net/tracker/index.php?func=detail&aid=1804103&group_id=…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1804482&group_…
Revision: 4374
Author: huji
Date: 2007-09-28 18:51:41 +0000 (Fri, 28 Sep 2007)
Log Message:
-----------
*Updating the translate() function, to work with a nested dictionary of messages.
*Updating basic.py file accordingly.
*This version is NOT a working version.
*The rest of modules should also be updated according to the changes in wikipedia.py
Modified Paths:
--------------
branches/pywikipedia/messages/basic.py
branches/pywikipedia/messages/wikipedia.py
Modified: branches/pywikipedia/messages/basic.py
===================================================================
--- branches/pywikipedia/messages/basic.py 2007-09-28 11:38:13 UTC (rev 4373)
+++ branches/pywikipedia/messages/basic.py 2007-09-28 18:51:41 UTC (rev 4374)
@@ -29,10 +29,6 @@
class BasicBot:
# Edit summary message that should be used.
# NOTE: Put a good description here, and add translations, if possible!
- msg = {
- 'de': u'Bot: Ändere ...',
- 'en': u'Robot: changing ...',
- }
def __init__(self, generator, debug):
"""
@@ -47,7 +43,7 @@
def run(self):
# Set the edit summary message
- wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), self.msg))
+ wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), 'test'))
for page in self.generator:
self.treat(page)
Modified: branches/pywikipedia/messages/wikipedia.py
===================================================================
--- branches/pywikipedia/messages/wikipedia.py 2007-09-28 11:38:13 UTC (rev 4373)
+++ branches/pywikipedia/messages/wikipedia.py 2007-09-28 18:51:41 UTC (rev 4374)
@@ -4635,12 +4635,12 @@
return []
-def translate(code, dict):
+def translate(code, msg):
"""
- Given a language code and a dictionary, returns the dictionary's value for
- key 'code' if this key exists; otherwise tries to return a value for an
- alternative language that is most applicable to use on the Wikipedia in
- language 'code'.
+ Given a language code and a message name, it returns the value appropriate
+ edit comment, according to message dictionary in message.py, if this key
+ exists; otherwise tries to return a value for an alternative language that
+ is most applicable to use on the Wikipedia in language 'code'.
The language itself is always checked first, then languages that
have been defined to be alternatives, and finally English. If none of
the options gives result, we just take the first language in the
@@ -4650,15 +4650,26 @@
if hasattr(code,'lang'):
code = code.lang
- if dict.has_key(code):
- return dict[code]
+ #TEMP: Defined messages temporarily here
+ messages = {'en' : {'test' : u'Test message'}, 'test' : {'test' : u'Maesagi testi'}}
+
+ if messages.has_key(code):
+ dict = messages[code]
+ if dict.has_key(msg):
+ return dict[msg]
for alt in altlang(code):
- if dict.has_key(alt):
- return dict[alt]
- if dict.has_key('en'):
- return dict['en']
+ if messages.has_key(alt):
+ dict = messages[alt]
+ if dict.has_key(msg):
+ return dict[msg]
+ if messages.has_key('en'):
+ dict = messages['en']
+ if dict.has_key(msg):
+ return dict[msg]
+ dict = messages.values()[0]
return dict.values()[0]
+
def showDiff(oldtext, newtext):
"""
Prints a string showing the differences between oldtext and newtext.
Support Requests item #1804183, was opened at 2007-09-28 14:31
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1804183&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: Deleted
Priority: 5
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't get valid graph file
Initial Comment:
I tried generating a graph file for conflicting articles.
I set
interwiki_graph = True
in user_config.py.
I installed:
pydot v0.9.10
pyparsing v1.4.7
GraphViz v2.1.4.1
I tried with format PNG, SVG and DOT and the result is always an empty file, i.e., wikipedia-pt-****.png is always zero bytes in length.
What could be wrong?
Thanks.
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2007-09-28 14:39
Message:
Logged In: YES
user_id=1037345
Originator: YES
I had to restart the DOS prompt after installing GraphViz cause it looks
for the executables in the PATH environment variable which was not updated
in the old DOS prompt.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1804183&group_…
Support Requests item #1804183, was opened at 2007-09-28 14:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1804183&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: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't get valid graph file
Initial Comment:
I tried generating a graph file for conflicting articles.
I set
interwiki_graph = True
in user_config.py.
I installed:
pydot v0.9.10
pyparsing v1.4.7
GraphViz v2.1.4.1
I tried with format PNG, SVG and DOT and the result is always an empty file, i.e., wikipedia-pt-****.png is always zero bytes in length.
What could be wrong?
Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1804183&group_…