[Zope-CMF] Bug in CMF Calendar v. 1.3, still Type not portal_type
Heimo Laukkanen
huima@fountainpark.org
Fri, 09 Aug 2002 06:24:04 +0300
In CalendarTool.py there is:
def catalog_getevents(self, year, month):
""" given a year and month return a list of days that have=20
events """
first_date=3DDateTime(str(month)+'/1/'+str(year))
last_day=3Dcalendar.monthrange(year, month)[1]
last_date=3DDateTime(str(month)+'/'+str(last_day)+'/'+str(year))
query=3Dself.portal_catalog(**Type**=3Dself.calendar_types,
review_state=3D'published',
start=3D(first_date, last_date),
start_usage=3D'range:min:max',
sort_on=3D'start')
Type should be portal_type. That error is repeated a couple of times.
This caused me to lose a one nigths sleep, when in one CMF site Calendar=20
did not work and on the same machine new CMF site worked without any=20
problems. The problem came from the fact that in type tool I had changed=20
the Title of my Event - content. And after that in Catalog on Events=20
Type-index read 'Tapahtuma' ( which is event in finnish) not Event - and=20
the catalog tools search did not find those objects. However the=20
portal_type field was correct - as supposed to be.
I will put this to collector too.
--=20
Heimo Laukkanen
Oy Fountain Park Ltd
H=E4meentie 153 B, 00560 Helsinki, Finland
tel. +358 9 777 68 161, gsm +358 40 759 1110, fax +358 9 777 68 100
http://www.fountainpark.org