Hi Jeffrey!<br><br>Thanks VERY much for taking time to help me. Seeing it in black-and-white I see the problem now. Thank you.<br><br>That said, I have already taken your advice on moving to PyTZ. I just needed more capability than the <a href="http://python.org">python.org</a> example TZInfo gave me. <br>
<br>In any event, thank you very much for taking time. I really appreciate it.<br><br>And thanks again for this very valuable library!<br><br>I'm pretty new to the world of iCalendar. Quick question for you:<br><br>Can I use VObject to create the contents of a meeting-request email that would could be sent to an Outlook or Google Calendar user? I assume so but haven't gotten to that yet.<br>
<br>By the way, my site Schoolicity (a school management site that just recently went live -- <a href="https://www.schoolicity.com">https://www.schoolicity.com</a>) makes extensive use of your library (for its calendar sync feature, mostly). If you're looking for endorsements, feel free to add me to the list.<br>
<br>Take care,<br>Keyton<br><br><br><br><div class="gmail_quote">On Fri, Aug 28, 2009 at 11:12 PM, Jeffrey Harris <span dir="ltr"><<a href="mailto:jeffrey@osafoundation.org">jeffrey@osafoundation.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Keyton,<br>
<div class="im"><br>
> First and foremost, thank you for sharing your VObject library with the<br>
> world. It's a very nice way to handle these issues and I really<br>
> appreciate its use.<br>
<br>
</div>Thanks! Err, I mean you're welcome ;)<br>
<div class="im"><br>
> The tzinfo class I'm using is the USTimeZone class from the Python site<br>
> (<a href="http://docs.python.org/library/datetime.html#tzinfo-objects" target="_blank">http://docs.python.org/library/datetime.html#tzinfo-objects</a>).<br>
<br>
</div>This was a head-scratcher for me, so I stepped through it and figured<br>
out what's happening.<br>
<br>
You need to remove the first part of the dst() method, the part that says:<br>
<br>
if dt is None or dt.tzinfo is None:<br>
# An exception may be sensible here, in one or both cases.<br>
# It depends on how you want to treat them. The default<br>
# fromutc() implementation (called by the default astimezone()<br>
# implementation) passes a datetime with dt.tzinfo is self.<br>
return ZERO<br>
<br>
This was a really silly thing for them to include in the example.<br>
There's no requirement in the actual documentation that dst be handed<br>
something whose tzinfo class matches the original, and vobject's tzinfo<br>
-> VTIMEZONE mechanism is currently handing naive datetimes to the<br>
tzinfo class for testing.<br>
<br>
Since the official example lists this code, vobject should fix this,<br>
since I'm sure you won't be the last to use that example (as an aside,<br>
I'd recommend using PyTZ or something like it, rather than that sample<br>
code). For now, though, just remove that counter-productive test and<br>
you should be off and running...<br>
<br>
Sincerely,<br>
Jeffrey<br>
<br>
_______________________________________________<br>
VObject mailing list<br>
<a href="mailto:VObject@lists.skyhouseconsulting.com">VObject@lists.skyhouseconsulting.com</a><br>
<a href="http://lists.skyhouseconsulting.com/mailman/listinfo/vobject" target="_blank">http://lists.skyhouseconsulting.com/mailman/listinfo/vobject</a><br>
</blockquote></div><br>