pcplantdb@lists.ibiblio.org
Subject: pcplantdb
List archive
- From: Richard Morris <webmaster@pfaf.org>
- To: pcplantdb@lists.ibiblio.org
- Subject: [pcplantdb] ZClass
- Date: Fri, 20 Aug 2004 13:42:08 +0100
Zope Wizzards
Trying to implement my Hello World example using ZClasses
what I'd like is is two classes
class BotName
string Latin
string Author
class HGPlant
BotName acceptedName
BotName[] synonyms
the bit I'm stuck on is how you can do a list of non primative objects.
Feeling at the moment is that for the plant DB side
the zope object model model might be a bit week,
it focussed around objects with simple properties
rather than more java like objects.
There also seems to be a strong tree structure to the object nameing
i.e. objects are located by position in a folder structure (i.e. a tree). For relationships we need a more general graph structure.
How would we represent the fact that carrots and tomatoes are compaion plants. Do we have
root/plants/tomato/relationships/carrot
root/plants/carrot/relationships/tomato
root/relationships/carrot_tomato
This is not making sense is it! Basically its a question
of expressiveness. Given the fairly complex data model for a plant with potentially lots of complex inderdependancies how do we model this in Zope.
Oh an a minor qibble it does not seem posible through the Zope front end to add a new base class to a Zclass, you can create them on first creation but you can't seem to add them later.
Still don't know enough about zope to really grok how to
implement the db (and it seems like you need to know all of zope
to do that)
Forgive rambeling!
Rich
--
Plants for a Future: 7000 useful plants
Web: http://www.pfaf.org/ same as http://www.comp.leeds.ac.uk/pfaf/
Post: 1 Lerryn View, Lerryn, Lostwithiel, Cornwall, PL22 0QJ
Tel: 01208 872 963 / 0845 458 4719
Email: webmaster@pfaf.org
PFAF electronic mailing list http://groups.yahoo.com/group/pfaf
-
[pcplantdb] [synthesis][12][8.19.04],
Stephanie Gerson, 08/19/2004
-
Re: [pcplantdb] [synthesis][12][8.19.04],
Lawrence F. London, Jr., 08/19/2004
-
[pcplantdb] ZClass,
Richard Morris, 08/20/2004
- Re: [pcplantdb] ZClass, John Schinnerer, 08/21/2004
-
[pcplantdb] ZClass,
Richard Morris, 08/20/2004
- Re: [pcplantdb] [synthesis][12][8.19.04], John Schinnerer, 08/21/2004
-
Re: [pcplantdb] [synthesis][12][8.19.04],
Lawrence F. London, Jr., 08/19/2004
Archive powered by MHonArc 2.6.24.