[GRASS-SVN] r62348 - in grass/branches/releasebranch_7_0: . lib/python/pygrass/modules/interface
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 22 04:46:36 PDT 2014
Author: martinl
Date: 2014-10-22 04:46:36 -0700 (Wed, 22 Oct 2014)
New Revision: 62348
Modified:
grass/branches/releasebranch_7_0/
grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py
Log:
pygrass: Module.__call__() - print debug message
Property changes on: grass/branches/releasebranch_7_0
___________________________________________________________________
Added: svn:mergeinfo
+ /grass/trunk:62346
Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py 2014-10-22 11:41:19 UTC (rev 62347)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py 2014-10-22 11:46:36 UTC (rev 62348)
@@ -96,8 +96,8 @@
from grass.pygrass.modules.interface.flag import Flag
from grass.pygrass.modules.interface.typedict import TypeDict
from grass.pygrass.modules.interface.read import GETFROMTAG, DOC
+from grass.pygrass.messages import Messenger
-
class ParallelModuleQueue(object):
"""This class is designed to run an arbitrary number of pygrass Module
processes in parallel.
@@ -274,6 +274,8 @@
and keyword arguments to the grass module.
"""
def __init__(self, cmd, *args, **kargs):
+ self._msgr = Messenger()
+
if isinstance(cmd, unicode):
self.name = str(cmd)
elif isinstance(cmd, str):
@@ -348,9 +350,12 @@
self.__call__.__func__.__doc__ = self.__doc__
def __call__(self, *args, **kargs):
+ self._msgr.debug(1, "Module.__call__(): %s" % (self.get_bash()))
+
if not args and not kargs:
self.run()
return
+
#
# check for extra kargs, set attribute and remove from dictionary
#
More information about the grass-commit
mailing list