[CMF-checkins] CVS: CMF - Event.py:1.2
andrew@digicool.com
andrew@digicool.com
Wed, 6 Jun 2001 17:03:06 -0400 (EDT)
Update of /cvs-repository/CMF/CMFCalendar
In directory korak.digicool.com:/tmp/cvs-serv13045
Modified Files:
Event.py
Log Message:
*Bug fix
added isEffective method to override the DublinCore's
isEffectiveMethod to always return true
This bug stopped anyone but the owner from viewing an event
because of the isEffective check in standard_html_header.
--- Updated File Event.py in package CMF --
--- Event.py 2001/05/30 22:08:37 1.1
+++ Event.py 2001/06/06 21:03:05 1.2
@@ -195,6 +195,14 @@
self.contact_phone=contact_phone
self.event_url=event_url
+ security.declarePublic('isEffective')
+ def isEffective(self, date):
+ """
+ Overloading the DC effective requires events to show up outside their effective
+ dates
+ """
+ return 1
+
security.declarePublic('getExpirationStrings')
def getExpirationStrings(self):
"""