From e98ac0f4c2c3c0fa6ae451a6a288471d1b6cc8f8 Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Thu, 5 Aug 2010 13:45:02 -0400 Subject: [PATCH] Some improvements to the commands.process function - better process naming and informational output. Conflicts: plugins/String/plugin.py src/commands.py --- src/callbacks.py | 8 ++++---- src/version.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 7944981c5..4f5846285 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -993,11 +993,11 @@ class CommandProcess(world.SupyProcess): to run in processes. """ def __init__(self, target=None, args=(), kwargs={}): - self.command = args[0] - self.cb = target.im_self + pn = kwargs.pop('pn', 'Unknown') + cn = kwargs.pop('cn', 'unknown') procName = 'Process #%s (for %s.%s)' % (world.processesSpawned, - self.cb.name(), - self.command) + pn, + cn) log.debug('Spawning process %s (args: %r)', procName, args) self.__parent = super(CommandProcess, self) self.__parent.__init__(target=target, name=procName, diff --git a/src/version.py b/src/version.py index 798922f0a..9f6542864 100644 --- a/src/version.py +++ b/src/version.py @@ -1,3 +1,3 @@ """stick the various versioning attributes in here, so we only have to change them once.""" -version = '0.83.4.1+limnoria (2011-08-23T16:41:52+0200)' +version = '0.83.4.1+limnoria (2011-08-25T11:36:47+0200)'