Hi everyone, I'm brewing an idea here about how I might use Zope to create a portal site for my school district that would be a resource for our community too. This has so many possibilities, I don't know where to start. I've been making a list of all the cool things I could include that would be of interest to parent and students alike. So far it's a long list. One of the items on the list is a community-wide calendar of events. I'm posting this note to see if this makes sense. For my ZCalendar, then, I would want to list things like school sporting event, school music concerts, city council meetings, etc. Obviously, I could structure it in such a way that would give one person responsibility for the sporting events, another for music, etc. So, if I'm understanding Zope, the thing to do would be to create a ZClass called 'event' with properties such as title, time, date, location, etc. Could I have additional properties for certain events? Let's say sporting events would also have properties like sport (e.g., football), score and opponent. Now I could use ZCatalog to gather all of the contributed events and publish them in some format that I design. Is this right? Now let's say that the big football game is over, and we'd like to publish the score on our site. Could I then go back to that event, add the information to the 'score' property and have ZCatalog publish the results? Am I in the ballpark with this? -Tim -- Timothy Wilson | "The faster you | Check out: Henry Sibley H.S. | go, the shorter | http://slashdot.org/ W. St. Paul, MN, USA | you are." | http://linux.com/ wilson@chem.umn.edu | -Einstein | http://www.mn-linux.org/
Tim Wilson wrote:
I'm brewing an idea here about how I might use Zope to create a portal site for my school district that would be a resource for our community too. This has so many possibilities, I don't know where to start. I've been making a list of all the cool things I could include that would be of interest to parent and students alike. So far it's a long list.
No doubt!
One of the items on the list is a community-wide calendar of events. I'm posting this note to see if this makes sense.
For my ZCalendar, then, I would want to list things like school sporting event, school music concerts, city council meetings, etc. Obviously, I could structure it in such a way that would give one person responsibility for the sporting events, another for music, etc.
So, if I'm understanding Zope, the thing to do would be to create a ZClass called 'event' with properties such as title, time, date, location, etc. Could I have additional properties for certain events? Let's say sporting events would also have properties like sport (e.g., football), score and opponent. Now I could use ZCatalog to gather all of the contributed events and publish them in some format that I design. Is this right?
You're correct!
Now let's say that the big football game is over, and we'd like to publish the score on our site. Could I then go back to that event, add the information to the 'score' property and have ZCatalog publish the results?
Since "score" isn't common to all events, I imagine it wouldn't be part of the catalog. Rather, it would be part of the object that is part of the catalog. Meaning, you wouldn't index on score. Perhaps to accomplish the goal of knowing the game is over you could just ask the catalog for things that have changed. When the score changes, the update time changes, and the catalog will know it...
Am I in the ballpark with this?
Ahh, a pun. :^) --Paul
So, if I'm understanding Zope, the thing to do would be to create a ZClass called 'event' with properties such as title, time, date, location, etc. Could I have additional properties for certain events? Let's say sporting events would also have properties like sport (e.g., football), score and opponent. Now I could use ZCatalog to gather all of the contributed events and publish them in some format that I design. Is this right?
You're correct!
just as a side note, you might want to think about the nature of the events. i've found that it's better to stick with rdb for events-listings because my events fall into 3 categories when it comes to the dates/times : 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 b) regular events. eg. each monday, wednesday and friday for event D each saturday at 4 pm for event E this is ok in zope c) between 2 dates. eg. starts on 2 october and ends 28 october. this is ok in zope too supporting all in zope started to make my head spin .. with an rdb it was pretty straight forward. i use zope for the sql methods though. still, if somebody has an idea for a schema in pure zope to manage the above, i'm all ears. in fact, this goes back to what must be ages old question of "when to use rdb vs zodb ?". any pointers ? chas
chas wrote:
just as a side note, you might want to think about the nature of the events. i've found that it's better to stick with rdb for events-listings because my events fall into 3 categories when it comes to the dates/times :
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
b) regular events. eg. each monday, wednesday and friday for event D each saturday at 4 pm for event E this is ok in zope
c) between 2 dates. eg. starts on 2 october and ends 28 october. this is ok in zope too
How about an abstract Event class. The class should have a method that given a date returns true/false depending if the event occurs on that date. Now you just subclass as needed to support recurring, one-off or ranges Event objects. Would this work? Could you then use ZCatalog to find all events occuring on a certain date? -- Itamar - itamars@ibm.net ---------------------------o----------------------------------------------o Perl/Gimp Greeting Cards | Trust? Ha! The US dollar is backed by ICBMs! | http://www.sealingwax.com | --Anonymous Coward, Slashdot |
At 07:27 PM 9/4/99 +0200, Itamar Shtull-Trauring wrote:
chas wrote:
just as a side note, you might want to think about the nature of the events. i've found that it's better to stick with rdb for events-listings because my events fall into 3 categories when it comes to the dates/times :
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
b) regular events. eg. each monday, wednesday and friday for event D each saturday at 4 pm for event E this is ok in zope
c) between 2 dates. eg. starts on 2 october and ends 28 october. this is ok in zope too
How about an abstract Event class. The class should have a method that given a date returns true/false depending if the event occurs on that date. Now you just subclass as needed to support recurring, one-off or ranges Event objects. Would this work?
at first blush, yes. but...
Could you then use ZCatalog to find all events occuring on a certain date?
... it still leaves the issue of storing the events of type 'a' within zcatalog... it's a one-to-many relationship. say you have an event that occurs on 1st Sept, 4th Sept, 11th Sept, 14th Sept... you end up having to store this in a list (which gets ugly quickly when doing loads of date manipulation) or multiple date fields (which introduces redundancy). i'm not saying its not doable (the lists are probably the way to go), just wondering whether the rdb is not the better solution. hell, it's a nice little thing to test out - will get back to you later on it . chas
Hello, I was wonderinng if it is possible to include a perl script on a zope page? when I try to use the <!--#include...--> zope sends and error (I can understand this as zope uses a include like syntax) but is there a way to do it? with I mean include es a server side process a polling script in to a normal page? ohhh BTW does anyone know how the printing option of the normal site works I try to use the Index_html?pp=1 syntax with no luck ... :( Any help would be terrific.... Sam
Francisco You could always write an external method that emulated the ssi include stuff, get it to return the returned stuff from the perl script and call it with a <dtml-var> wotsit. Phil ----- Original Message ----- From: Francisco Sam Castillo <fsam@proyecto-web.com.mx> To: <zope@zope.org> Sent: Saturday, September 04, 1999 10:56 PM Subject: [Zope] Perl scripts
Hello,
I was wonderinng if it is possible to include a perl script on a zope page? when I try to use the <!--#include...--> zope sends and error (I can understand this as zope uses a include like syntax) but is there a way to do it? with I mean include es a server side process a polling script in to a normal page?
ohhh BTW does anyone know how the printing option of the normal site works I try to use the Index_html?pp=1 syntax with no luck ... :(
Any help would be terrific....
Sam
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
Hello I was wondering if there is a way to create an online form (much like the one on 'zope' beta site) to register users, and grand access to the site as well as being able to authenticate them when attempting to log in? as well to store some data from them, has anyone work one anything like this? is it possible? One last question how does the Print version option on the main zope site works? Thanks Sam
participants (7)
-
chas -
Francisco Sam Castillo -
Francisco Sam Castillo -
Itamar Shtull-Trauring -
Paul Everitt -
Phil Harris -
Tim Wilson