[CMF-checkins] CVS: CMF - Install.py:1.2
andrew@digicool.com
andrew@digicool.com
Fri, 8 Jun 2001 11:23:11 -0400 (EDT)
Update of /cvs-repository/CMF/CMFCalendar/Extensions
In directory korak.digicool.com:/tmp/cvs-serv19544/Extensions
Modified Files:
Install.py
Log Message:
*Due to overloading the DC expiration_date and effective_date
attributes, events were unviewable to anonymous and members of a
portal.
--Added start_date and end_date attributes to Event.py
--Added start and end methods to Event.py
--Fixed dtml methods to use the new methods and attributes
--- Updated File Install.py in package CMF --
--- Install.py 2001/05/30 22:08:37 1.1
+++ Install.py 2001/06/08 15:22:40 1.2
@@ -108,6 +108,12 @@
def install(self):
" Register the CMF Event with portal_types and friends "
out = StringIO()
+ catalog = getToolByName(self, 'portal_catalog')
+ c_catalog = catalog._catalog
+ c_catalog.addIndex('start', 'FieldIndex')
+ c_catalog.addIndex('end', 'FieldIndex')
+ c_catalog.addColumn('start')
+ c_catalog.addColumn('end')
typestool = getToolByName(self, 'portal_types')
skinstool = getToolByName(self, 'portal_skins')
metadatatool = getToolByName(self, 'portal_metadata')