[Vobject] hello, vobject plans

Matt Price matt.price at utoronto.ca
Fri Oct 22 01:02:37 CDT 2004


On Thu, Oct 21, 2004 at 02:06:18PM -0500, Jeffrey Harris wrote:
> Hi Matt,
> 
> I'm not able to reproduce your error.  The only change I made was to 
> replace:
> 
> aString = open('/home/matt/test_calendar/calendar.ics', 'r').read()
> f = StringIO.StringIO(aString)
thanks, that clears things up for me.
> 
> with
> 
> f = file('calendar.ics') #I put calendar.ics in the same dir
> 
> Note that StringIO makes a string act like a stream, you don't need it 
> if you've already got your string stored in a file.
> 
> Also note that:
> 
> if type(w) == 'vobject.ContentLine':
> 
> can be written
> 
> if isinstance(w, vobject.ContentLine):
> 

> which is a few more characters but more legible, I think (and it'll work 
> for subclasses of ContentLine, to boot).
>
excellent, thanks!
re: the ero\ror: I have in any case moved on so I don't think it's
worth trying to reproduce again at this point.  

m

 
> Sincerely,
> Jeffrey
> _______________________________________________
> Vobject mailing list
> Vobject at lists.skyhouseconsulting.com
> http://lists.skyhouseconsulting.com/mailman/listinfo/vobject

-------------------------------------------
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