SF.net SVN: fclient: [93] trunk/sandbox/fcp/fcp2_0_client.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <ju...@us...> - 2008-01-30 14:36:33
|
Revision: 93
http://fclient.svn.sourceforge.net/fclient/?rev=93&view=rev
Author: jurner
Date: 2008-01-30 06:36:38 -0800 (Wed, 30 Jan 2008)
Log Message:
-----------
...
Modified Paths:
--------------
trunk/sandbox/fcp/fcp2_0_client.py
Modified: trunk/sandbox/fcp/fcp2_0_client.py
===================================================================
--- trunk/sandbox/fcp/fcp2_0_client.py 2008-01-30 14:35:57 UTC (rev 92)
+++ trunk/sandbox/fcp/fcp2_0_client.py 2008-01-30 14:36:38 UTC (rev 93)
@@ -1625,8 +1625,17 @@
def cb(event, msg):
root=Config(configDataMsg=msg)
for node in root.walk():
- print node.key()
+ key = node.key()
+ if key is None: # skip root
+ continue
+ print key
+ for keyName, values in sorted(node.values.items()):
+ print ' ' + keyName
+ for valueClass, (value, valueType) in sorted(values.items()):
+ print ' %s=%r (%s)' % (valueClass, value, valueType)
+ #c.setDebugVerbosity(c.DebugVerbosity.Warning)
+
c.events.ConfigData += cb
c.getConfig()
for i in xrange(10):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|