Revision: 5949
Author: russblau
Date: 2008-10-10 14:14:04 +0000 (Fri, 10 Oct 2008)
Log Message:
-----------
Allow normalizeNamespace to work with Turkish dotted capital I.
Modified Paths:
--------------
trunk/pywikipedia/family.py
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/family.py
===================================================================
--- trunk/pywikipedia/family.py 2008-10-10 13:55:06 UTC (rev 5948)
+++ trunk/pywikipedia/family.py 2008-10-10 14:14:04 UTC (rev 5949)
@@ -2800,8 +2800,11 @@
if value in v: return v[0]
else:
if value == v: return v
- if value == self.namespace('_default', ns):
- return self.namespace(code, ns)
+ try:
+ if value == self.namespace('_default', ns):
+ return self.namespace(code, ns)
+ except KeyError:
+ pass
return value
def getNamespaceIndex(self, lang, namespace):
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2008-10-10 13:55:06 UTC (rev 5948)
+++ trunk/pywikipedia/wikipedia.py 2008-10-10 14:14:04 UTC (rev 5949)
@@ -5812,8 +5812,10 @@
If no match, return 'value' unmodified.
"""
- if not self.nocapitalize and value[0].islower():
- value = value[0].upper() + value[1:]
+ if not self.nocapitalize:
+ # make sure first letter gets normalized; there is at least
+ # one case ("İ") in which s.lower().upper() != s
+ value = value[0].lower().upper() + value[1:]
return self.family.normalizeNamespace(self.lang, value)
def namespaces(self):
Bugs item #2157483, was opened at 2008-10-10 15:53
Message generated for change (Settings changed) made by mauro742
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2157483&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: 6
Private: No
Submitted By: Mauro (mauro742)
Assigned to: Nobody/Anonymous (nobody)
Summary: Edit conflit prints html
Initial Comment:
When I want to save (put) a page and an edit conflit occurs, the framework prints the html code of edit conflit's page.
Pywikipedia [http] trunk/pywikipedia (r5945, Oct 10 2008, 11:16:07)
Python 2.5.2 (r252:60911, Sep 29 2008, 21:10:35)
[GCC 4.3.2]
----------------------------------------------------------------------
Comment By: Mauro (mauro742)
Date: 2008-10-10 16:11
Message:
This is the output:
Changing page [[...page...]]
Changing page has failed. Retrying.
Getting a token.
Sleeping for 5.5 seconds, 2008-10-10 15:36:06
Changing page [[...page...]]
ERROR: Unexpected response from wiki server.
200 (OK)
then follow the html
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2157483&group_…
Bugs item #2157483, was opened at 2008-10-10 15:53
Message generated for change (Comment added) made by mauro742
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2157483&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: 5
Private: No
Submitted By: Mauro (mauro742)
Assigned to: Nobody/Anonymous (nobody)
Summary: Edit conflit prints html
Initial Comment:
When I want to save (put) a page and an edit conflit occurs, the framework prints the html code of edit conflit's page.
Pywikipedia [http] trunk/pywikipedia (r5945, Oct 10 2008, 11:16:07)
Python 2.5.2 (r252:60911, Sep 29 2008, 21:10:35)
[GCC 4.3.2]
----------------------------------------------------------------------
Comment By: Mauro (mauro742)
Date: 2008-10-10 16:11
Message:
This is the output:
Changing page [[...page...]]
Changing page has failed. Retrying.
Getting a token.
Sleeping for 5.5 seconds, 2008-10-10 15:36:06
Changing page [[...page...]]
ERROR: Unexpected response from wiki server.
200 (OK)
then follow the html
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2157483&group_…
Bugs item #2157483, was opened at 2008-10-10 15:53
Message generated for change (Settings changed) made by mauro742
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2157483&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: 5
Private: No
Submitted By: Mauro (mauro742)
Assigned to: Nobody/Anonymous (nobody)
>Summary: Edit conflit prints html
Initial Comment:
When I want to save (put) a page and an edit conflit occurs, the framework prints the html code of edit conflit's page.
Pywikipedia [http] trunk/pywikipedia (r5945, Oct 10 2008, 11:16:07)
Python 2.5.2 (r252:60911, Sep 29 2008, 21:10:35)
[GCC 4.3.2]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2157483&group_…
Bugs item #2157483, was opened at 2008-10-10 15:53
Message generated for change (Settings changed) made by mauro742
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2157483&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: Deleted
Resolution: None
Priority: 5
Private: No
Submitted By: Mauro (mauro742)
Assigned to: Nobody/Anonymous (nobody)
Summary: On edit conflit framework prints html
Initial Comment:
When I want to save (put) a page and an edit conflit occurs, the framework prints the html code of edit conflit's page.
Pywikipedia [http] trunk/pywikipedia (r5945, Oct 10 2008, 11:16:07)
Python 2.5.2 (r252:60911, Sep 29 2008, 21:10:35)
[GCC 4.3.2]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2157483&group_…
Bugs item #2157483, was opened at 2008-10-10 15:53
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=2157483&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: 5
Private: No
Submitted By: Mauro (mauro742)
Assigned to: Nobody/Anonymous (nobody)
Summary: On edit conflit framework prints html
Initial Comment:
When I want to save (put) a page and an edit conflit occurs, the framework prints the html code of edit conflit's page.
Pywikipedia [http] trunk/pywikipedia (r5945, Oct 10 2008, 11:16:07)
Python 2.5.2 (r252:60911, Sep 29 2008, 21:10:35)
[GCC 4.3.2]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2157483&group_…
Revision: 5945
Author: filnik
Date: 2008-10-10 11:16:07 +0000 (Fri, 10 Oct 2008)
Log Message:
-----------
Standardizing italian messages. So now also other bots can easily use this bot on it.wiki
Modified Paths:
--------------
trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py 2008-10-09 23:39:47 UTC (rev 5944)
+++ trunk/pywikipedia/checkimages.py 2008-10-10 11:16:07 UTC (rev 5945)
@@ -90,6 +90,9 @@
# <------------------------------------------- Change only below! ----------------------------------------------------->#
#########################################################################################################################
+# NOTE: in the messages used by the Bot if you put __botnick__ in the text, it will automatically replaced
+# with the bot's nickname.
+
# That's what you want that will be added. (i.e. the {{no source}} with the right day/month/year )
n_txt = {
'commons':u'\n{{subst:nld}}',
@@ -195,7 +198,7 @@
'commons':u'The [[:Image:%s]] file seems to have a wrong extension, please check. ~~~~',
'en' :u'The [[:Image:%s]] file seems to have a wrong extension, please check. ~~~~',
'hu' :u'A [[:Kép:%s]] fájlnak rossz a kiterjesztése, kérlek ellenőrízd. ~~~~',
- 'it' :u'{{subst:Utente:Filbot/Ext|%s}} --~~~~',
+ 'it' :u'{{subst:Progetto:Coordinamento/Immagini/Bot/Messaggi/Ext|%s|__botnick__}} --~~~~',
'ko' :u'[[:그림:%s]]의 파일 형식이 잘못되었습니다. 확인 바랍니다.--~~~~',
'ta' :u'[[:படிமம்:%s]] இனங்காணப்படாத கோப்பு நீட்சியை கொண்டுள்ளது தயவு செய்து ஒரு முறை சரி பார்க்கவும் ~~~~',
'zh' :u'您好,你上傳的[[:Image:%s]]無法被識別,請檢查您的檔案,謝謝。--~~~~',
@@ -236,7 +239,7 @@
'de' :u'\n{{subst:Benutzer:ABF/D2|%s}} ~~~~ ',
'en' :u"{{subst:image source|Image:%s}} --~~~~",
'hu' :u"{{subst:adjforrást|Kép:%s}} \n Ezt az üzenetet ~~~ automatikusan helyezte el a vitalapodon, kérdéseddel fordulj a gazdájához, vagy a [[WP:KF|Kocsmafalhoz]]. --~~~~",
- 'it' :u"{{subst:Utente:Filbot/Senza licenza|%s}} --~~~~",
+ 'it' :u"{{subst:Progetto:Coordinamento/Immagini/Bot/Messaggi/Senza licenza|%s|__botnick__}} --~~~~",
'ja' :u"\n{{subst:Image copyright|Image:%s}}--~~~~",
'ko' :u'\n{{subst:사용자:김우진1/BotRFL|%s}} --~~~~',
'ta' :u'\n{{subst:Di-no license-notice|படிமம்:%s}} ~~~~ ',
@@ -262,7 +265,7 @@
'de':None,
'en': None,
'hu':u'\nSzia! Úgy tűnik a [[:Kép:%s]] képpel is hasonló a probléma, mint az előbbivel. Kérlek olvasd el a [[WP:KÉPLIC|feltölthető képek]]ről szóló oldalunk, és segítségért fordulj a [[WP:KF-JO|Jogi kocsmafalhoz]]. Köszönöm --~~~~',
- 'it':u':{{subst:Utente:Filbot/Senza licenza2|%s}} --~~~~',
+ 'it':u':{{subst:Progetto:Coordinamento/Immagini/Bot/Messaggi/Senza licenza2|%s|__botnick__}} --~~~~',
'ja':None,
'ta':None,
'zh':None,
@@ -353,7 +356,7 @@
'commons': u"""\n{{subst:User:Filnik/whitetemplate|Image:%s}}\n\n''This message was '''added automatically by [[User:__botnick__|__botnick__]]''', if you need some help about it, ask its master (~~~) or go to the [[Commons:Help desk]]''. --~~~~""",
'de': None,
'en': None,
- 'it': u"{{subst:Utente:Filbot/Template_insufficiente|%s}} --~~~~",
+ 'it': u"{{subst:Progetto:Coordinamento/Immagini/Bot/Messaggi/Template_insufficiente|%s|__botnick__}} --~~~~",
'ko': u"\n{{subst:User:김우진1/BotRFL|%s}} --~~~~",
'ta': None,
}
@@ -372,7 +375,7 @@
duplicates_user_talk_text = {
'commons':u'{{subst:User:Filnik/duplicates|Image:%s|Image:%s}}',
'en':None,
- 'it':u"{{subst:Utente:Filbot/duplicati|%s|%s}} --~~~~",
+ 'it':u"{{subst:Progetto:Coordinamento/Immagini/Bot/Messaggi/Duplicati|%s|%s|__botnick__}} --~~~~",
}
duplicates_comment_talk = {