[Zope] Calendar (was: Portal idea)

chas panda@skinnyhippo.com
Sun, 05 Sep 1999 04:37:58 +0900


>>>> a) one-off events. eg. you specify the dates.
>>>>    eg. 19 oct 1999, 2 nov 1999  for event A
>>>>        1 nov 1999               for event B
>>>>       ....
>>>>    which results in a one-to-many relationship
>
>I don't think there are many applications where an rdb is really going to be
>much cleaner than the ZODB. (Though I think there may be a number of
>situations where the ZODB is cleaner, but maybe I'm just an object bigot :)
>
>The really straightforward thing to do would be something like this:
>
>Event ZClass (inherits from CatalogAware, ObjectManager)
> - EventDate ZClass (may inherit from CatalogAware for doing date-range
>manipulation)
>
>Event could have a function, as Itamar suggested, that zips through the
>EventDate objects (<dtml-in "objectValues('EventDate')">) and sees if there
>is a match.
>
>Or, you could grab all matching EventDate objects (through the Catalog) and
>then use parent[1] to get the Event info.
>
>This is a one-to-many relationship with no redundancy, and it should perform
>pretty well, I think.

ok, i'll give that a shot then if only to get my head around odb's.

gotta admit that a lot of my bias towards the rdb is based on the fact
that mysql (our weapon of choice) has proven itself to be an incredible
speed daemon (i mean, they sacrifice transactions, which i don't need, 
in the name of speed). 

but don't worry, i'll go into this with an open mind... 

and thanks for setting me straight :)

chas