Revision: 4448 Author: siebrand Date: 2007-10-14 23:12:15 +0000 (Sun, 14 Oct 2007)
Log Message: ----------- * nowcommons.py: fix for nl * category.py: "-match" now works with regex after command start
Modified Paths: -------------- trunk/pywikipedia/category.py trunk/pywikipedia/nowcommons.py
Modified: trunk/pywikipedia/category.py =================================================================== --- trunk/pywikipedia/category.py 2007-10-14 22:50:18 UTC (rev 4447) +++ trunk/pywikipedia/category.py 2007-10-14 23:12:15 UTC (rev 4448) @@ -816,8 +816,11 @@ showImages = True elif arg.startswith('-summary:'): editSummary = arg[len('-summary:'):] - elif arg.startswith('-match:'): - titleRegex = arg[len('-match:'):] + elif arg.startswith('-match'): + if len(arg) == len('-match'): + titleRegex = wikipedia.input(u'Which regular expression should affected objects match?') + else: + titleRegex = arg[len('-match:'):] elif arg == '-talkpages': talkPages = True elif arg == '-recurse':
Modified: trunk/pywikipedia/nowcommons.py =================================================================== --- trunk/pywikipedia/nowcommons.py 2007-10-14 22:50:18 UTC (rev 4447) +++ trunk/pywikipedia/nowcommons.py 2007-10-14 23:12:15 UTC (rev 4448) @@ -77,7 +77,6 @@ 'he', 'ia', 'lt', - 'nl', 'ro', ]