Revision: 6585
Author: nicdumz
Date: 2009-04-10 07:27:15 +0000 (Fri, 10 Apr 2009)
Log Message:
-----------
end + start timestamp parameters: if pywikibot.Timestamp objects are used,
they need to be str()'ed before passing them to the API
Modified Paths:
--------------
branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py
===================================================================
--- branches/rewrite/pywikibot/site.py 2009-04-10 03:12:10 UTC (rev 6584)
+++ branches/rewrite/pywikibot/site.py 2009-04-10 07:27:15 UTC (rev 6585)
@@ -1259,8 +1259,8 @@
@type limit: int
@param startid: retrieve revisions starting with this revid
@param endid: stop upon retrieving this revid
- @param starttime: retrieve revisions starting at this timestamp
- @param endtime: stop upon reaching this timestamp
+ @param starttime: retrieve revisions starting at this Timestamp
+ @param endtime: stop upon reaching this Timestamp
@param rvdir: if false, retrieve newest revisions first (default);
if true, retrieve earliest first
@param user: retrieve only revisions authored by this user
@@ -1332,9 +1332,9 @@
if endid:
rvgen.request[u"rvendid"] = endid
if starttime:
- rvgen.request[u"rvstart"] = starttime
+ rvgen.request[u"rvstart"] = str(starttime)
if endtime:
- rvgen.request[u"rvend"] = endtime
+ rvgen.request[u"rvend"] = str(endtime)
if user:
rvgen.request[u"rvuser"] = user
elif excludeuser:
@@ -1644,8 +1644,8 @@
containing keys corresponding to the block properties (see
http://www.mediawiki.org/wiki/API:Query_-_Lists for documentation).
- @param starttime: start iterating at this timestamp
- @param endtime: stop iterating at this timestamp
+ @param starttime: start iterating at this Timestamp
+ @param endtime: stop iterating at this Timestamp
@param reverse: if True, iterate oldest blocks first (default: newest)
@param blockids: only iterate blocks with these id numbers
@param users: only iterate blocks affecting these usernames or IPs
@@ -1665,9 +1665,9 @@
bkgen.request["bkprop"] = \
"id|user|by|timestamp|expiry|reason|range|flags"
if starttime:
- bkgen.request["bkstart"] = starttime
+ bkgen.request["bkstart"] = str(starttime)
if endtime:
- bkgen.request["bkend"] = endtime
+ bkgen.request["bkend"] = str(endtime)
if reverse:
bkgen.request["bkdir"] = "newer"
if blockids:
@@ -1733,8 +1733,8 @@
"patrol", "merge")
@param user: only iterate entries that match this user name
@param page: only iterate entries affecting this page
- @param start: only iterate entries from and after this timestamp
- @param end: only iterate entries up to and through this timestamp
+ @param start: only iterate entries from and after this Timestamp
+ @param end: only iterate entries up to and through this Timestamp
@param reverse: if True, iterate oldest entries first (default: newest)
@param limit: only iterate up to this many entries
@@ -1756,9 +1756,9 @@
if page is not None:
legen.request["letitle"] = page.title(withSection=False)
if start is not None:
- legen.request["lestart"] = start
+ legen.request["lestart"] = str(start)
if end is not None:
- legen.request["leend"] = end
+ legen.request["leend"] = str(end)
if reverse:
legen.request["ledir"] = "newer"
if isinstance(limit, int):
@@ -1771,8 +1771,8 @@
showRedirects=None, showPatrolled=None):
"""Iterate recent changes.
- @param start: timestamp to start listing from
- @param end: timestamp to end listing at
+ @param start: Timestamp to start listing from
+ @param end: Timestamp to end listing at
@param reverse: if True, start with oldest changes (default: newest)
@param limit: iterate no more than this number of entries
@param namespaces: iterate changes to pages in these namespaces only
@@ -1807,9 +1807,9 @@
rcprop="user|comment|timestamp|title|ids"
"|redirect|patrolled|loginfo|flags")
if start is not None:
- rcgen.request["rcstart"] = start
+ rcgen.request["rcstart"] = str(start)
if end is not None:
- rcgen.request["rcend"] = end
+ rcgen.request["rcend"] = str(end)
if reverse:
rcgen.request["rcdir"] = "newer"
if isinstance(limit, int):
@@ -1885,8 +1885,8 @@
@param user: Iterate contributions by this user (name or IP)
@param userprefix: Iterate contributions by all users whose names
or IPs start with this substring
- @param start: Iterate contributions starting at this timestamp
- @param end: Iterate contributions ending at this timestamp
+ @param start: Iterate contributions starting at this Timestamp
+ @param end: Iterate contributions ending at this Timestamp
@param reverse: Iterate oldest contributions first (default: newest)
@param limit: Maximum number of contributions to iterate
@param namespaces: Only iterate contributions in these namespaces
@@ -1914,9 +1914,9 @@
if userprefix:
ucgen.request["ucuserprefix"] = userprefix
if start is not None:
- ucgen.request["ucstart"] = start
+ ucgen.request["ucstart"] = str(start)
if end is not None:
- ucgen.request["ucend"] = end
+ ucgen.request["ucend"] = str(end)
if reverse:
ucgen.request["ucdir"] = "newer"
if isinstance(limit, int):
@@ -1934,8 +1934,8 @@
Iterated values will be in same format as recentchanges.
- @param start: Iterate revisions starting at this timestamp
- @param end: Iterate revisions ending at this timestamp
+ @param start: Iterate revisions starting at this Timestamp
+ @param end: Iterate revisions ending at this Timestamp
@param reverse: Iterate oldest revisions first (default: newest)
@param namespaces: only iterate revisions to pages in these
namespaces (default: all)
@@ -1962,9 +1962,9 @@
wlprop="user|comment|timestamp|title|ids|flags")
#TODO: allow users to ask for "patrol" as well?
if start is not None:
- wlgen.request["wlstart"] = start
+ wlgen.request["wlstart"] = str(start)
if end is not None:
- wlgen.request["wlend"] = end
+ wlgen.request["wlend"] = str(end)
if reverse:
wlgen.request["wldir"] = "newer"
if isinstance(limit, int):
@@ -1993,8 +1993,8 @@
is true, the toplevel dict will contain a 'token' key as well.
@param page: The page to check for deleted revisions
- @param start: Iterate revisions starting at this timestamp
- @param end: Iterate revisions ending at this timestamp
+ @param start: Iterate revisions starting at this Timestamp
+ @param end: Iterate revisions ending at this Timestamp
@param reverse: Iterate oldest revisions first (default: newest)
@param limit: Iterate no more than this number of revisions.
@param get_text: If True, retrieve the content of each revision and
@@ -2038,9 +2038,9 @@
if get_text:
drgen.request['drprop'] = drgen.request['drprop'] + "|content|token"
if start is not None:
- drgen.request["drstart"] = start
+ drgen.request["drstart"] = str(start)
if end is not None:
- drgen.request["drend"] = end
+ drgen.request["drend"] = str(end)
if reverse:
drgen.request["drdir"] = "newer"
if isinstance(limit, int):
Patches item #2748606, was opened at 2009-04-09 22:52
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2748606&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: David Crochet (crochet_david)
Assigned to: Nobody/Anonymous (nobody)
Summary: char missing
Initial Comment:
one char missing after wikiversity families update
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-10 05:12
Message:
Thanks, and sorry about this :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2748606&group_…
Bugs item #2356220, was opened at 2008-11-28 17:42
Message generated for change (Comment added) made by cosoleto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2356220&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: 7
Private: No
Submitted By: shizhao (wikishizhao)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix newpages()
Initial Comment:
fix username in newpages() on wikipedia.py
----------------------------------------------------------------------
>Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-10 01:05
Message:
I don't use HEAD but this bug report looks as closed by mistake. Patches
attached aren't ok.
----------------------------------------------------------------------
Comment By: SourceForge Robot (sf-robot)
Date: 2009-03-18 19:54
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-01-27 10:11
Message:
Are the issue and the patch still current? If so, please confirm, check if
the patch still applies, and upload a revised patch. Remove outdated
patch(es) in any case.
----------------------------------------------------------------------
Comment By: shizhao (wikishizhao)
Date: 2008-11-29 05:30
Message:
is python 2.5+. This Mediawiki update add class="mw-userlink" and
class="new mw-userlink", so pywikipedia also update.
----------------------------------------------------------------------
Comment By: Legoktm (legoktm)
Date: 2008-11-29 05:01
Message:
What version of python are you using? I get this error while running
2.3.5, but not with 2.5+.
----------------------------------------------------------------------
Comment By: Legoktm (legoktm)
Date: 2008-11-29 05:01
Message:
What version of python are you using? I get this error while running
2.3.5, but not with 2.5+.
----------------------------------------------------------------------
Comment By: Legoktm (legoktm)
Date: 2008-11-29 04:58
Message:
whoops, wrong bug
----------------------------------------------------------------------
Comment By: Legoktm (legoktm)
Date: 2008-11-29 04:58
Message:
What version of python are you using? I get this error while running
2.3.5, but not with 2.5+.
----------------------------------------------------------------------
Comment By: shizhao (wikishizhao)
Date: 2008-11-28 18:07
Message:
add fix new user.
File Added: wikipedia.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2356220&group_…
Bugs item #1908157, was opened at 2008-03-05 18:08
Message generated for change (Comment added) made by cosoleto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1908157&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: AndreasJS (andreasjs)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot edit large page in Python 2.5
Initial Comment:
Cannot edit large page in Python 2.5.
A socket error 35 occurs. It consistently occurs if the page is > about 30 kbyte.
Woks OK in python 2.3.
andreas-schwabs-computer:~/Desktop/pywikipedia andreas$ python basic.py -family:wikipedia -lang:en -page:User:AndreasJS/test
Checked for running processes. 1 processes currently running, including the current process.
Getting 1 pages from wikipedia:en...
>>> User:AndreasJS/test <<<
- Test Test [[image:Wikipedia.png|thumb|This is the [[logo]] of Wikinews]]
+ Test Test Test [[image:Wikipedia.png|thumb|This is the [[logo]] of Wikinews]]
Do you want to accept these changes? ([y]es, [N]o) y
Sleeping for 5.6 seconds, 2008-03-05 11:57:19
Changing page [[en:User:AndreasJS/test]]
Traceback (most recent call last):
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 1287, in _putPage
response, data = self.site().postForm(address, predata, sysop)
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 4014, in postForm
raise ServerError(e)
ServerError: (35, 'Resource temporarily unavailable')
Got a server error when putting [[User:AndreasJS/test]]; will retry in 1 minute.
Changing page [[en:User:AndreasJS/test]]
Traceback (most recent call last):
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 1287, in _putPage
response, data = self.site().postForm(address, predata, sysop)
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 4014, in postForm
raise ServerError(e)
ServerError: (35, 'Resource temporarily unavailable')
Got a server error when putting [[User:AndreasJS/test]]; will retry in 2 minutes.
Changing page [[en:User:AndreasJS/test]]
Traceback (most recent call last):
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 1287, in _putPage
response, data = self.site().postForm(address, predata, sysop)
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 4014, in postForm
raise ServerError(e)
ServerError: (35, 'Resource temporarily unavailable')
Got a server error when putting [[User:AndreasJS/test]]; will retry in 4 minutes.
----------
andreas-schwabs-computer:~/Desktop/pywikipedia andreas$ python
Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
System Software Overview:
System Version: Mac OS X 10.4.11 (8S2167)
Kernel Version: Darwin 8.11.1
Boot Volume: Macintosh HD
Computer Name: Andreas Schwab’s Computer
User Name: Andreas Schwab (andreas)
----------------------------------------------------------------------
>Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-10 00:35
Message:
What about latest Python version (2.6.1)?
Doesn't look as reported to Python issue tracker, though.
----------------------------------------------------------------------
Comment By: Pietrodn (pietrodn)
Date: 2008-04-18 17:29
Message:
Logged In: YES
user_id=1887175
Originator: NO
I have the same problem (and use Mac OS X 10.5.2).
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-03-10 02:15
Message:
Logged In: YES
user_id=1738850
Originator: YES
There is a much easier solution:
Add the following line to user-config.py:
socket_timeout = None
Note: Apparently, the socket timeout is broken in the combination python
2.5 and MacOS 10.4. If socket_timeout is set to any number, error 35 occurs
when putting pages larger than ca. 30 kb.
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-03-10 00:27
Message:
Logged In: YES
user_id=1738850
Originator: YES
After reading the following thread:
http://www.cherrypy.org/ticket/598
I came up with the following solution:
conn.endheaders()
if hasattr(conn.sock, 'setblocking'): #####
conn.sock.setblocking(1) ######
conn.send(data)
I am not 100% sure if this is safe, but maybe someone socket-savvy can
find out by reading the above thread.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-03-08 23:19
Message:
Logged In: NO
Sitll doesn't work:
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2008-03-08 21:53
Message:
Logged In: YES
user_id=687283
Originator: NO
This probably is a bug in an updated version of urllib2 in python2.5+.
Could you try updating your python install and see if the problem remains?
----------------------------------------------------------------------
Comment By: Pietrodn (pietrodn)
Date: 2008-03-05 21:51
Message:
Logged In: YES
user_id=1887175
Originator: NO
I also have Mac OS X 10.4.11 + Python 2.5 and have the same problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1908157&group_…
Feature Requests item #1768728, was opened at 2007-08-06 19:47
Message generated for change (Comment added) made by crochet_david
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1768728&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: 7
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Multilingual development
Initial Comment:
English speaking at end
==Francais== Texte d'origine
Bonjour
Je voudrais vous proposer un système qui permet de rendre le robot multilingue. En effet, tous les messages envoyé à la console sont anglophone. Or le but d'un robot est de s'adapter à la multitude des languages pouvant exister de la part des utilisateurs. C'est pour cela que je vous propose le système suivant :
Création d'un nouveau répertoire 'lang'. Dans ce répertoire s'y trouverait des fichiers de type XX.py (XX étant le code ISO 639 de la langue). Donc ce répertoire contiendra 1 ficher par code de langue existant.
Lorsque les différents programmes veulent afficher un message sur la console, la commande utilisé est très souvent 'wikipedia.output' ou 'wikipedia.input'. Le travail de cette commande serait d'appeller le fichier xx.py avec le numéro du message à renvoyer en paramètre, le choix du xx serait donnée par la variable mylang de user-config.py. le fichier xx.py enverrais alors le message à afficher en tenant compte des différentes variables de type %s (ou autre) bien entendu
Exemple :
dans user-config.py, j'ai "mylang = 'fr'"
Replace.py à la ligne 375 contient la commande "wikipedia.input(u'Please enter the new text:')",
Le nouveau système coderait "wikipedia.input(u'Please enter the new text:')" par "wikipedia.input.message(284)"
appelerait donc lang/fr.py et lui demanderais de lui retourner le message n° 284 qui serait "s'il vous plais, entrez le nouveaux texte :" et le lui retourne.
Voila, en esperant avoir compris ma demande.
Je vous remercie de votre écoute
==English== Text translates since French by a machine translation system
Hello
I would like to propose you a system which allows to return the multilingual robot. Indeed, all the messages messenger in the console are English-speaking. Now the purpose of a robot is to adapt itself to the multitude of the languages which can exist on behalf of the users. It is for it that I propose you the following system:
Creation of a new directory ' lang '. In this directory would be files of type XX.py (XX there being the code ISO 639 of the language). Thus this directory will contain 1 file by existing code of language.
When the various programs want to post a message on the console, the order used is very often ' wikipedia.output ' or ' wikipedia.input '. The work of this order would be to call the xx.py file with the number of the message to be sent back in parameter, the choice of the xx would be given by the mylang variable to user-config.py
The xx.py file would send then the message to be posted(shown) by taking into account various variables of type %s (or other) naturally
Example:
In user-config.py, I have " mylang = ' fr ' "
Replace.py in the line 375 contains the command " wikipedia.input (u' Please enter the new text: ') ",
The new system would code " wikipedia.input (u' Please enter the new text: ') "by" wikipedia.input.message (284) " call thus lang/fr.py and would ask it to return it the message n° 284 which would be " s'il vous plais, entrez le nouveaux texte : ".
Here we are, by hoping to have understood my demand.
I thank you for your listening
----------------------------------------------------------------------
Comment By: David Crochet (crochet_david)
Date: 2009-04-09 23:11
Message:
Something new with the dev meeting in Berlin?
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2007-08-24 22:24
Message:
Logged In: YES
user_id=687283
Originator: NO
Update: Because of the limitations of the normal xgettext implementation,
I am writing my own version, using the python compiler package. With some
luck, it will be possible to maintain the original inputChoice format this
way (as there is no reason to use a string anymore; the string-to-translate
can be generated from a function parameter that is a list, or a dict, or
.... ).
When this implementation is done, only three functions (wikipedia.input,
wikipedia.output and wikipedia.inputChoice) need to be adapted (and
possibly we need to change wikipedia.Error to translate the error).
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2007-08-08 17:08
Message:
Logged In: YES
user_id=687283
Originator: NO
Check
http://svn.wikimedia.org/viewvc/pywikipedia/branches/pywikipedia/i18n/input…
and see if you like it. I wrote a new function; the system is as follows:
retval = i18nChoice("Do you want to save?", "[('yes', 'y'), ('no', 'n')]",
'yes')
instead of a key, the options *name* is given as parameter, and returned.
This returns, with a dutch translation:
Wilt u opslaan? ([j]a, [n]ee) n
then retval == 'no'
To use this, we need to use xgettext:
xgettext --keyword=i18nChoice:1,2 ic.py
and we get plural defenitions:
msgid "Do you want to save?"
msgid_plural "[('yes', 'y'), ('no', 'n')]"
msgstr[0] "Wilt u opslaan?"
msgstr[1] "[('ja', 'j'), ('nee', 'n')]"
Maybe not the nicest solution, but the best one I could find. The
alternative would be
retval = i18nChoice(_("Do you want to save?"), "[('yes', 'y'), ('no',
'n')]", 'yes')
with
xgettext --keyword=i18nChoice,2 ic.py
(and the corresponding changes in the function, of course.)
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2007-08-08 02:14
Message:
Logged In: YES
user_id=687283
Originator: NO
Take a look at my proposal at http://pywiki.pastey.net/71924 . Readability
still is not too good; another way would be to create a new input function
and let gettext see it as translatable strings. No idea if gettext can
handle multiple parameters, but I assume it can handle at least two ;)
----------------------------------------------------------------------
Comment By: Daniel Herding (wikipedian)
Date: 2007-08-08 00:31
Message:
Logged In: YES
user_id=880694
Originator: NO
Current status:
I have changed the text colorization system so that it is now possible to
internationalize colorized strings.
There is now a branch called i18n which has gettext support. It works
fine, and the selflink.py script can be run in German. There is a new
config variable to set the UI lang, it will default to mylang and fall back
to English if the chosen language is unsupported.
One disadvantage is that source code readability suffers. Before:
choice = wikipedia.inputChoice(u'\nWhat shall be done with this
selflink?', ['unlink', 'make bold', 'skip', 'edit', 'more context'], ['U',
'b', 's', 'e', 'm'], 'u')
After:
choice = wikipedia.inputChoice(_(u'\nWhat shall be done with this
selflink?'), [_('unlink'), _('make bold'), _('skip'), _('edit'), _('more
context')], [_('u [unlink hotkey]'), _('b [make bold hotkey]'), _('s [skip
hotkey]'), _('e [edit hotkey]'), _('m [more context hotkey]')], _('u
[unlink hotkey]'))
valhallasw and I have discussed how to modify inputChoice() to make it
less cluttered, but we didn't find a convincing solution. For example,
inputChoice could be changed so that it works like this:
choice = wikipedia.inputChoice(_(u'What shall be done with this
selflink?'), _(u'[u]nlink, make [b]old, [s]kip, [e]dit, [m]ore context'),
0)
so that it automatically parses the [brackets] to find out the hotkeys,
and returns an integer for the option that was chosen. But integers make
the code very hard to read and maintain when there are long if-elif
constructions (... elif choice == 12 ...).
So, we currently don't know how to do it better. I think having full i18n
is worth cluttering up the code a little bit.
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2007-08-07 15:28
Message:
Logged In: YES
user_id=855050
Originator: NO
A good idea; however, it should be implemented using the standard Python
'gettext' module, rather than reinventing the wheel.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2007-08-07 00:41
Message:
Logged In: YES
user_id=687283
Originator: NO
I have no idea if gettext is usable on non-unix platforms, and whether it
allows to use locally saved translations. If it does, I think we might give
it a try. We would need to change all 'text %s %s' % (self.title(),
newtitle) commands to their dictionary relatives, 'text %(title)s
%(newtitle)s' % {'title': self.title(), 'newtitle': newtitle). Not a small
job, but doable, I suppose.
If gettext is not (easily) available on win32, we might write our own
system. I do not like the idea of using integers though ;)
----------------------------------------------------------------------
Comment By: Daniel Herding (wikipedian)
Date: 2007-08-06 22:15
Message:
Logged In: YES
user_id=880694
Originator: NO
Your approach works for static strings like wikipedia.input(u'Please enter
the new text: '), but it doesn't work for dynamic ones like output(u'Page
%s moved to %s' % (self.title(), newtitle)).
Instead, we could use gettext:
http://docs.python.org/lib/module-gettext.html
What do you think?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1768728&group_…
Patches item #2748606, was opened at 2009-04-09 22:52
Message generated for change (Tracker Item Submitted) made by crochet_david
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2748606&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: David Crochet (crochet_david)
Assigned to: Nobody/Anonymous (nobody)
Summary: char missing
Initial Comment:
one char missing after wikiversity families update
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2748606&group_…
Bugs item #1729765, was opened at 2007-06-02 02:43
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1729765&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: 7
Private: No
Submitted By: siebrand (siebrand)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py: templates with <noinclude>
Initial Comment:
Doing a template namespace run with interwiki.py an edit was made in fr.wikipedia[1] to a template containing a <noinclude> and no existing interwikis. interwiki.py added the interwikis outside to <noinclude> section, effectively adding a lot of interwiki links to pages that should not have gotten the links. The change was reverted and all 70 (damn) wikis I could have made edits on now have to be checked for possible errors.
Not sure if and how to fix this.
Another issue would be adding interwiki links to a template that does not contain a <noinclude> section. Should interwiki links be added there 'as is', should they be placed within <noinclude>, or should no changes be made at all?
http://fr.wikipedia.org/w/index.php?title=Mod%C3%A8le:Coor&diff=17522740&ol…
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-09 19:18
Message:
Closed several duplicate bugs on the same topic.
Here are the one containing interesting info :
https://sourceforge.net/tracker/index.php?func=detail&aid=1710764&group_id=…
A patch (not reviewed?):
https://sourceforge.net/tracker/index.php?func=detail&aid=1527779&group_id=…
Raising priority...
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2007-06-20 14:50
Message:
Logged In: YES
user_id=687283
Originator: NO
Is there any reason not to have interwiki links inside a <noinclude>
section? I can only think of a handful of pages that have an use for
included interwiki's (village pump, for example).
----------------------------------------------------------------------
Comment By: Purodha B Blissenbach (purodha)
Date: 2007-06-03 14:56
Message:
Logged In: YES
user_id=46450
Originator: NO
See also: bug 603141 at
https://sourceforge.net/tracker/index.php?func=detail&aid=1674677&group_id=…
----------------------------------------------------------------------
Comment By: Purodha B Blissenbach (purodha)
Date: 2007-06-03 02:48
Message:
Logged In: YES
user_id=46450
Originator: NO
See also bug #1721918 - imho different, but likely to be treated in the
very same piece of code.
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2007-06-02 12:36
Message:
Logged In: YES
user_id=1777493
Originator: NO
Duplicate with 1710764 ?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1729765&group_…
Bugs item #1710764, was opened at 2007-05-01 21:01
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1710764&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: Closed
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: Multichill (multichill)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki's on template
Initial Comment:
I ran my bot at http://nl.wikipedia.org/wiki/Categorie:Teenage_Mutant_Ninja_Turtles
command : python2.4 interwiki.py -cat:Teenage_Mutant_Ninja_Turtles -autonomous
My bot produced this edit : http://en.wikipedia.org/w/index.php?title=Template%3ATeenage_Mutant_Ninja_T…
The interwiki link is added at the top and is not between noinclude tags. Pages which include this template now also have an interwiki link they shouldnt have.
Interwiki links on a template should be between <noinclude> </noinclude> tags and at the bottom of the page.
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-09 19:15
Message:
duplicate with #1729765
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2007-08-25 17:40
Message:
Logged In: NO
Other examples:
http://absurdopedia.wikia.com/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%B…http://desencyclopedie.wikia.com/index.php?title=Mod%C3%A8le%3ACaution&diff…http://nonsensopedia.wikia.com/index.php?title=Szablon:Klik&diff=prev&oldid…
also cosmetic_changes.py proposes this wrong change:
- {{end box}}<hr /><includeonly>[[fr:project:test]][[la:project:pagina
experimentalis]]</includeonly><noinclude>[[Category:Sectional
templates|{{PAGENAME}}]]</noinclude>
+ {{end box}}<hr
/><includeonly></includeonly><noinclude>[[en:Category:Sectional
templates|{{PAGENAME}}]]
+ </noinclude>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1710764&group_…