http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11389
Revision: 11389 Author: drtrigon Date: 2013-04-19 13:20:22 +0000 (Fri, 19 Apr 2013) Log Message: ----------- new feature; introduced 'critical' output/logging function minor other change
Modified Paths: -------------- branches/rewrite/pywikibot/bot.py branches/rewrite/scripts/script_wui.py
Modified: branches/rewrite/pywikibot/bot.py =================================================================== --- branches/rewrite/pywikibot/bot.py 2013-04-19 12:53:14 UTC (rev 11388) +++ branches/rewrite/pywikibot/bot.py 2013-04-19 13:20:22 UTC (rev 11389) @@ -384,6 +384,10 @@ """Output a record to the log file.""" logoutput(text, decoder, newline, VERBOSE, **kwargs)
+def critical(text, decoder=None, newline=True, **kwargs): + """Output a debug record to the log file.""" + logoutput(text, decoder, newline, CRITICAL, **kwargs) + def debug(text, layer, decoder=None, newline=True, **kwargs): """Output a debug record to the log file.""" logoutput(text, decoder, newline, DEBUG, layer, **kwargs)
Modified: branches/rewrite/scripts/script_wui.py =================================================================== --- branches/rewrite/scripts/script_wui.py 2013-04-19 12:53:14 UTC (rev 11388) +++ branches/rewrite/scripts/script_wui.py 2013-04-19 13:20:22 UTC (rev 11389) @@ -57,7 +57,6 @@ # --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- # __version__ = '$Id$' -__framework_rev__ = '11384' # check: http://de.wikipedia.org/wiki/Hilfe:MediaWiki/Versionen __release_ver__ = '1.5' # increase minor (1.x) at re-merges with framework __release_rev__ = '%i' #
pywikipedia-svn@lists.wikimedia.org