[CMF-checkins] CVS: CMF/CMFCalendar - Event.py:1.11.2.1
Christian Theune
ct@gocept.com
Sat, 19 Oct 2002 11:29:09 -0400
Update of /cvs-repository/CMF/CMFCalendar
In directory cvs.zope.org:/tmp/cvs-serv11837
Modified Files:
Tag: ctheune-bug76-branch
Event.py
Log Message:
Bugfix for cmf collector issue 76
=== CMF/CMFCalendar/Event.py 1.11 => 1.11.2.1 ===
--- CMF/CMFCalendar/Event.py:1.11 Tue Aug 6 20:11:12 2002
+++ CMF/CMFCalendar/Event.py Sat Oct 19 11:29:09 2002
@@ -60,8 +60,8 @@
, description=''
, effective_date = None
, expiration_date = None
- , start_date = DateTime()
- , end_date = DateTime()
+ , start_date = None
+ , end_date = None
, location=''
, contact_name=''
, contact_email=''
@@ -121,8 +121,8 @@
, description=''
, effective_date = None
, expiration_date = None
- , start_date = DateTime()
- , end_date = DateTime()
+ , start_date = None
+ , end_date = None
, location=''
, contact_name=''
, contact_email=''
@@ -136,6 +136,11 @@
self.effective_date = effective_date
self.expiration_date = expiration_date
self.setStartDate(start_date)
+
+ if start_date is None:
+ start_date = DateTime()
+ if end_date is None:
+ end_date = start_date
if end_date < start_date:
end_date = start_date