http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9518
Revision: 9518
Author: xqt
Date: 2011-09-08 20:51:52 +0000 (Thu, 08 Sep 2011)
Log Message:
-----------
copied the wrong error class in r9514
Modified Paths:
--------------
trunk/pywikipedia/tag_nowcommons.py
Modified: trunk/pywikipedia/tag_nowcommons.py
===================================================================
--- trunk/pywikipedia/tag_nowcommons.py 2011-09-08 20:48:36 UTC (rev 9517)
+++ trunk/pywikipedia/tag_nowcommons.py 2011-09-08 20:51:52 UTC (rev 9518)
@@ -21,8 +21,8 @@
from pywikibot import i18n
-class NothingFound(pywikibot.Error):
- """ An exception indicating that a regex has return [] instead of results."""
+class NoEnoughData(pywikibot.Error):
+ """ Error class for when the user doesn't specified all the data needed """
def main(args):
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9516
Revision: 9516
Author: xqt
Date: 2011-09-08 20:43:48 +0000 (Thu, 08 Sep 2011)
Log Message:
-----------
patch for clean_sandbox.py, patch (bug #3406436) submitted by meno25.
Modified Paths:
--------------
trunk/pywikipedia/clean_sandbox.py
Modified: trunk/pywikipedia/clean_sandbox.py
===================================================================
--- trunk/pywikipedia/clean_sandbox.py 2011-09-08 20:41:51 UTC (rev 9515)
+++ trunk/pywikipedia/clean_sandbox.py 2011-09-08 20:43:48 UTC (rev 9516)
@@ -50,12 +50,12 @@
content = {
'commons': u'{{Sandbox}}\n<!-- Please edit only below this line. -->',
'als':u'{{subst:/Vorlage}}',
- 'ar': u'{{من فضلك اترك هذا السطر ولا تعدله (عنوان ساحة التجربة)}}\n<!-- مرحبا! خذ راحتك في تجربة مهارتك في التنسيق والتحرير أسفل هذا السطر. هذه الصفحة لتجارب التعديل ، سيتم تفريغ هذه الصفحة كل 6 ساعات. -->',
+ 'ar': u'{{عنوان الملعب}}\n<!-- مرحبا! خذ راحتك في تجربة مهارتك في التنسيق والتحرير أسفل هذا السطر. هذه الصفحة لتجارب التعديل ، سيتم تفريغ هذه الصفحة كل 12 ساعة. -->',
'bar':u'{{Bitte erst NACH dieser Zeile schreiben! (Begrüßungskasten)}}\r\n',
'cs': u'{{subst:/uhrabat}}',
'da': u'{{subst:Sandkasse tekst}}',
'de': u'{{Bitte erst NACH dieser Zeile schreiben! (Begrüßungskasten)}}\r\n',
- 'en': u'{{Please leave this line alone (sandbox heading)}}\n<!-- Hello! Feel free to try your formatting and editing skills below this line. As this page is for editing experiments, this page will automatically be cleaned every 12 hours. -->',
+ 'en': u'{{Sandbox heading}}\n<!-- Hello! Feel free to try your formatting and editing skills below this line. As this page is for editing experiments, this page will automatically be cleaned every 12 hours. -->',
'fa': u'{{subst:User:Amirobot/sandbox}}',
'fi': u'{{subst:Hiekka}}',
'he': u'{{ארגז חול}}\n<!-- נא לערוך מתחת לשורה זו בלבד, תודה. -->',
@@ -82,7 +82,7 @@
sandboxTitle = {
'commons': u'Project:Sandbox',
'als':u'Project:Sandchaschte',
- 'ar': u'Project:ساحة التجربة',
+ 'ar': u'Project:ملعب',
'bar':u'Project:Spielwiese',
'cs': u'Project:Pískoviště',
'da': u'Project:Sandkassen',
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9514
Revision: 9514
Author: xqt
Date: 2011-09-08 20:05:00 +0000 (Thu, 08 Sep 2011)
Log Message:
-----------
missing error class added
Modified Paths:
--------------
trunk/pywikipedia/tag_nowcommons.py
Modified: trunk/pywikipedia/tag_nowcommons.py
===================================================================
--- trunk/pywikipedia/tag_nowcommons.py 2011-09-06 22:51:33 UTC (rev 9513)
+++ trunk/pywikipedia/tag_nowcommons.py 2011-09-08 20:05:00 UTC (rev 9514)
@@ -20,6 +20,11 @@
from nowcommons import nowCommons
from pywikibot import i18n
+
+class NothingFound(pywikibot.Error):
+ """ An exception indicating that a regex has return [] instead of results."""
+
+
def main(args):
generator = None;
always = False
@@ -33,7 +38,7 @@
generator = genFactory.getCombinedGenerator()
if not generator:
- raise add_text.NoEnoughData('You have to specify the generator you want to use for the script!')
+ raise NoEnoughData('You have to specify the generator you want to use for the script!')
pregenerator = pagegenerators.PreloadingGenerator(generator)