arek - in flumotion/trunk: . flumotion/launch
flumotion-commit at lists.fluendo.com
flumotion-commit at lists.fluendo.com
Tue Jul 10 19:01:00 CEST 2007
Author: arek
Date: Tue Jul 10 19:00:56 2007
New Revision: 5309
Modified:
flumotion/trunk/ChangeLog
flumotion/trunk/flumotion/launch/inspect.py
Log:
* flumotion/launch/inspect.py:
Add printing of plugs' property description strings and
right-align the property names. Fixes #717.
Modified: flumotion/trunk/ChangeLog
==============================================================================
--- flumotion/trunk/ChangeLog (original)
+++ flumotion/trunk/ChangeLog Tue Jul 10 19:00:56 2007
@@ -1,3 +1,9 @@
+2007-07-10 Arek Korbik <arkadini at gmail.com>
+
+ * flumotion/launch/inspect.py:
+ Add printing of plugs' property description strings and
+ right-align the property names. Fixes #717.
+
2007-07-10 Michael Smith <msmith at fluendo.com>
* flumotion/worker/Makefile.am:
Modified: flumotion/trunk/flumotion/launch/inspect.py
==============================================================================
--- flumotion/trunk/flumotion/launch/inspect.py (original)
+++ flumotion/trunk/flumotion/launch/inspect.py Tue Jul 10 19:00:56 2007
@@ -157,11 +157,15 @@
properties = [(x.getName(), x) for x in p.getProperties()]
properties.sort()
if properties:
+ indent = max([len(p[0]) for p in properties])
for k, v in properties:
- print (' %s: type %s, %s%s'
- % (k, v.getType(),
+ desc = v.getDescription()
+ print (' %s%s: type %s, %s%s'
+ % (' '*(indent-len(k)), k, v.getType(),
v.isRequired() and 'required' or 'optional',
v.isMultiple() and ', multiple ok' or ''))
+ if desc:
+ printMultiline(indent, desc)
print
if not handled:
err('Unknown component or plug `%s\'' % cname)
More information about the flumotion-commit
mailing list