[Vobject] hello, vobject plans
Matt Price
matt.price at utoronto.ca
Wed Oct 20 16:30:44 CDT 2004
On Wed, Oct 20, 2004 at 01:23:42PM -0500, Jeffrey Harris wrote:
> Hi Matt,
>
> >was fooling around a bit, I gues the code is a bit rough yet.
>
> Indeed, rough! Having people try things like this is very helpful,
> thanks for doing it. This is a relatively recently introduced bug, I'll
> fix it today.
thanks jeffrey. flood of mail from me today... wrote a little function
to prettyprint the contents of a Component:
def prettyPrint(Component, level = 0):
lines = Component.getChildren()
pre = ''
for i in range(level):
pre +=' '
for line in lines:
print pre, line.name #, type(line).__name__
if type(line).__name__ == 'Component':
prettyPrint(line, level + 1)
elif type(line).__name__ == 'ContentLine':
print pre, line.value
if line.params:
lineKeys= line.params.keys()
print pre, "params for ", line.name +':'
for aKey in lineKeys:
print pre + ' ', aKey, line.params[aKey]
print
I will move my pinkley little scripts over to vobject when I have
a chance...
m
-------------------------------------------
Matt Price matt.price at utoronto.ca
History Department, University of Toronto
(416) 978-2094
--------------------------------------------
please don't use the following addresses: zeus at derailleur.org
aardvark at derailleur.org
More information about the Vobject
mailing list