Patches item #1880140, was opened at 2008-01-26 03:48 Message generated for change (Comment added) made by cosoleto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880140...
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: AndreasJS (andreasjs) Assigned to: Nobody/Anonymous (nobody) Summary: Decode Esperanto titles
Initial Comment: Titles have to be decoded from x convention for liks to work properly. Here is the patch:
Index: wikipedia.py =================================================================== --- wikipedia.py (revision 4939) +++ wikipedia.py (working copy) @@ -454,6 +454,8 @@ pass if underscore: title = title.replace(' ', '_') + if self.site().lang == 'eo': + title = decodeEsperantoX(title) return title
def titleWithoutNamespace(self, underscore=False):
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-06-13 12:19
Message: Logged In: YES user_id=181280 Originator: NO
Applied in r5305, undone in r5563.
See [ 1988771 ] Encoding issues with Esperanto (https://sourceforge.net/tracker/index.php?func=detail&aid=1988771&gr...)
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya) Date: 2008-01-26 15:50
Message: Logged In: YES user_id=1037345 Originator: NO
This seems to be working fine using "redirect.py -lang:eo double".
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs) Date: 2008-01-26 15:37
Message: Logged In: YES user_id=1738850 Originator: YES
File Added: wikipedia.diff
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1880140...
Hi,
I want to add some more pages to a local mediawiki installation using the pagefromfile.py script.
However, if the content of the page contains a link, e.g. [http://www.xxx.com 123] the creation of the page fails. Also I can not overwrite an existing page if the new content contains a link EXCEPT if the existing page contains already the exact same link, than the page can be overwritten without problem. If the content contains no link everything works fine.
As all the pages have been entered via the pagefromfile script I'm sure I could create the already existing pages including the links in their content using that script. I'm lost why that doesn't work anymore although I use the same user to log in?
In wikipedia.py in the putPage function the value of data - from the call data = response.read().decode(self.site().encoding()) - is obviously not "u''" as it should be but contains the whole code of the page.
response = conn.getresponse() returns for response.status '200' and for response.reason 'OK'.
Any idea what goes wrong? Thanks, Gu