[Vobject] hello, vobject plans
Matt Price
matt.price at utoronto.ca
Tue Oct 19 16:59:46 CDT 2004
was fooling around a bit, I gues the code is a bit rough yet. I
trried the following:
import StringIO, vobject, validation
#aString = open('/home/matt/test_calendar/calendar.ics', 'r').read()
aString = open('/home/matt/src/vobject/sampledata.txt', 'r').read()
f = StringIO.StringIO(aString)
cal = vobject.readComponents(f).next()
print cal
& got the following errors:
$ python my_test.py
Traceback (most recent call last):
File "my_test.py", line 5, in ?
cal = vobject.readComponents(f).next()
File "/home/matt/src/vobject/vobject.py", line 602, in
readComponents
elif vline.name == "VERSION":
topVobj().setVersionFromVersionLine(vline)
File "/home/matt/src/vobject/vobject.py", line 301, in
setVersionFromVersionLine
v=validation.getVersion(self.name, versionLine[2])
TypeError: unindexable object
versionLine seems to be set to the following:
<VERSION{}2.0>
anyway, justp laying.
matt
-------------------------------------------
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