From ajs17 at cornell.edu Wed Aug 10 02:39:10 2005 From: ajs17 at cornell.edu (Adam J Smith) Date: Tue, 9 Aug 2005 20:39:10 -0400 (EDT) Subject: [icalendar-dev] icalendar/zope documentation Message-ID: <39075.69.202.76.112.1123634350.squirrel@69.202.76.112> All, I have moved my documentation on the use of icalendar with Zope here: http://www.zope.org/Members/ajs17/barebones_icalendar It should at least look a little nicer printed. I still welcome suggestions, corrections, etc. ____________________________ adam smith ajs17 at cornell.edu 255-8893 215 ccc From maxm at mxm.dk Wed Aug 10 11:57:10 2005 From: maxm at mxm.dk (Max M) Date: Wed, 10 Aug 2005 11:57:10 +0200 Subject: [icalendar-dev] icalendar/zope documentation In-Reply-To: <39075.69.202.76.112.1123634350.squirrel@69.202.76.112> References: <39075.69.202.76.112.1123634350.squirrel@69.202.76.112> Message-ID: <42F9CF76.9000808@mxm.dk> Adam J Smith wrote: >All, > >I have moved my documentation on the use of icalendar with Zope here: > http://www.zope.org/Members/ajs17/barebones_icalendar > >It should at least look a little nicer printed. I still welcome >suggestions, corrections, etc. > > You do a lot of time parsing and formatting here that you dont need to. tempEvent['dtstart'] = event.get('dtstart', '') if tempEvent.get('dtstart', ''): start = time.strptime(tempEvent.get('dtstart', ''), '%Y%m%dT%H%M%S') tempEvent['dtstart_date'] = time.strftime('%Y%m%d', start) tempEvent['dtstart_time'] = time.strftime('%I:%M %p', start) tempEvent['sort_on'] = time.strftime('%H%M%S', start) If you use the decoded() method, you will get a parsed Python object. Eg a datetime object. dtstart = event.decoded('dtstart', '') if dtstart: tempEvent['dtstart'] = dtstart tempEvent['dtstart_date'] = dtstart.date() tempEvent['dtstart_time'] = dtstart.time() tempEvent['sort_on'] = dtstart.time() -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science From mihamina.rakotomandimby at etu.univ-orleans.fr Thu Aug 18 20:26:56 2005 From: mihamina.rakotomandimby at etu.univ-orleans.fr (Rakotomandimby Mihamina) Date: Thu, 18 Aug 2005 20:26:56 +0200 Subject: [icalendar-dev] RPM package FCx Message-ID: <1124389616.3682.101.camel@localhost.localdomain> Hi, Does someone have an RPM .spec file for icalendar? I'm gonna create & maintain one package because I need it otherwise. It will be for a Fedora Core 4 (and higher, later) -- Administration & Formation ? l'administration de serveurs d?di?s: http://www.google.fr/search?q=aspo+infogerance+serveur From mihamina.rakotomandimby at etu.univ-orleans.fr Fri Aug 19 17:43:17 2005 From: mihamina.rakotomandimby at etu.univ-orleans.fr (Rakotomandimby Mihamina) Date: Fri, 19 Aug 2005 17:43:17 +0200 Subject: [icalendar-dev] RPM package FCx In-Reply-To: <1124389616.3682.101.camel@localhost.localdomain> References: <1124389616.3682.101.camel@localhost.localdomain> Message-ID: <1124466197.5349.16.camel@localhost.localdomain> On Thu, 2005-08-18 at 20:26 +0200, Rakotomandimby Mihamina wrote: > Hi, > Does someone have an RPM .spec file for icalendar? > I'm gonna create & maintain one package because I need it otherwise. Well i did it. I will maintain a package for Fedora Core. I wiil see if there is somme human ressources needed in the debian packager team of this thing... -- Administration & Formation ? l'administration de serveurs d?di?s: http://www.google.fr/search?q=aspo+infogerance+serveur -------------- next part -------------- %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Summary: A RFC 2445 parser/generator of iCalender files. Name: python-icalendar Version: 0.10 Release: 1 License: Python License (CNRI Python License) Group: Development/Libraries URL: http://codespeak.net/icalendar/ Source0: iCalendar-%{version}.tgz BuildRequires: python >= 2.3 BuildRequires: python-devel >= 2.3 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: python %description This package can both generate and parse iCalender files, The aim is to make a package that is fully compliant to RFC 2445, well designed, simple to use and well documented. %prep # %setup -q %setup -n iCalendar -q %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT find -name "*.py"|xargs %{__perl} -pi -e "s:/usr/local/bin/python:%{__python}:" %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc CHANGES.txt CREDITS.txt INSTALL.txt LICENSE.txt README.txt TODO.txt version.txt %{python_sitearch}/icalendar/*.py %{python_sitearch}/icalendar/*.pyc %ghost %{python_sitearch}/icalendar/*.pyo %dir %{python_sitearch}/icalendar/ %changelog * Thu Aug 18 2005 Rakotomandimby Mihamina - icalendar-1 - Initial build. From simon.dahlbacka at gmail.com Mon Aug 29 19:54:25 2005 From: simon.dahlbacka at gmail.com (Simon Dahlbacka) Date: Mon, 29 Aug 2005 20:54:25 +0300 Subject: [icalendar-dev] create recurring events Message-ID: <571247205082910542e722b92@mail.gmail.com> Hi all, I'm a real newbie with the icalendar package so I might have missed something simple, but I cannot seem to get a recurring event generated (let's say, every sunday) I've tried something like event.add('freq', 'weekly; byday=su') but that escapes the ; event.add('freq', ['weekly', 'byday=su']) didn't work well either. I also saw the example with vCalAddress and tried to modify using f = vFrequency('weekly') f.params['byday'] = vText('su') no errors, but no cigar either.. /Simon From maxm at mxm.dk Tue Aug 30 00:10:46 2005 From: maxm at mxm.dk (Max M) Date: Tue, 30 Aug 2005 00:10:46 +0200 Subject: [icalendar-dev] create recurring events In-Reply-To: <571247205082910542e722b92@mail.gmail.com> References: <571247205082910542e722b92@mail.gmail.com> Message-ID: <431387E6.10606@mxm.dk> Simon Dahlbacka wrote: >Hi all, > >I'm a real newbie with the icalendar package so I might have missed >something simple, but I cannot seem to get a recurring event generated >(let's say, every sunday) > > > Look in PropertyValues.py under the vRecur class. There are a lot of examples in the doctests: >>> from iCalendar.PropertyValues import vRecur >>> r = vRecur(freq='weekly', byday='su') >>> r CaselessDict({'BYDAY': 'su', 'FREQ': 'weekly'}) >>> r.ical() 'BYDAY=SU;FREQ=WEEKLY' -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science