[Zope] contributed zclass

Tom Schwaller Tom.Schwaller@linux-magazin.de
Fri, 17 Sep 1999 22:49:32 +0200


kedai wrote:
> 
> i bet that a lot of people has their own collection of zclass.  why not we put up the zclasses at zope site, so that we don't reinvent the wheel.  it doesnot matter whether the classes are too simple or too <insert your own adj here>.  if it's a class, put it there.
> 
> i'm still too new to start my own product, but i've suceeded in creating a LinkCollection class,

URL for download? :-))

which would take me more time if i did it in perl ( but i'm not going to
throw away perl :))
> it's not much but it's usable.  (it's a class within a class !  mind you :) )
> 
> so, what say you guys?

I would personally be very glad to see as much examples as possible,
just to see if what I'm doing now is the "right thing".
Most interesting would be so see the zclasses used on zope.org:18200
(is there a chance to get an export of the Product(s), even if
they are not polished).

Here is one of my general design questions for zclasses:

I will have an folderish "author" class and a special "article" class.
To organize the workflow I prefer to have the articles of
one author in his "folder", but once finished with it,
I prefer to have them in a "issue" folder with the article
connected to the author (Collecting the articles from all the authors
each time I want to see the content of one issue gives
no sense, this is fixed after pubblishing and will not change 
and I want something like /issue/1999/10/Zope and not /author/Zope 
in the overview for the links. Generating it once is
the best solution in that case I suppose..).

so I have the dichotomy

article/author
author/article

Of course I would have uses SQL in the past (but ZClasses
are way cooler and more flexible) and with it you have a connector
table,
which you should use in this case with Zope to (e.g. ZCatalog)?
But the problem remains: where to put the article objects??
My article objects will also travel around from editor to editor.

I have a least ten other examples, which I am designing right kow,
but I feel a litte clueless..

That's why the Zope.org zclasses would help  me and other people 
a lot I suppose, because there you have e.g. the same dichotomy

members/How-to
how-tos/(from) members

connected by ZCatalog, but seeing is better than guessing in that case.

KM|net News is at the moment my only livesaver (thanks a lot for it),
but more examples would be very welcome. You can ave mine to of course,
but theres a long way to go (right now a kind of contact management
system is my top project..)

cu and I begin to dream in Zope :-)

-- 

Tom