SF.net SVN: fclient: [424] trunk/sandbox/fcp2/message.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-06-29 15:18:21
|
Revision: 424
http://fclient.svn.sourceforge.net/fclient/?rev=424&view=rev
Author: jUrner
Date: 2008-06-29 08:18:28 -0700 (Sun, 29 Jun 2008)
Log Message:
-----------
stringify msg params for readability
Modified Paths:
--------------
trunk/sandbox/fcp2/message.py
Modified: trunk/sandbox/fcp2/message.py
===================================================================
--- trunk/sandbox/fcp2/message.py 2008-06-29 12:39:15 UTC (rev 423)
+++ trunk/sandbox/fcp2/message.py 2008-06-29 15:18:28 UTC (rev 424)
@@ -123,6 +123,12 @@
for param, value in self.params.items():
if isinstance(param, PrivateParam):
continue
+
+ # convert python to fcp value if necessary
+ paramType = self._param_types_.get(param, None)
+ if paramType is not None:
+ value = paramType.pythonToFcp(value)
+
out.append('>> %s=%s' % (param, value))
if self.data is None:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|