[Zope] Getting a Handle to a ZODB object to store in another object

complaw@hal-pc.org complaw@hal-pc.org
Wed, 28 Nov 2001 23:42:39 GMT


Others (myself included) have asked this same question.  To date, I've not seen
a satisfactory answer.  Most object databases provide a unique identifier (an
oid) to a given object.  That reference can be stored in other objects for use
when necessary.  Good object databases are capable of establishing relationships
between objects that are maintained.  To my knowledge, Zope doesn't work that
way.  Instead, it uses the URL as a pseudo oid.  This has both good and bad
points.  URL use is handy for web integration, but you give up the standard oid
paradigm and is another reason why Zope is hard to grok.  (But it is one of the
reasons why Zope is so justly admired.)

I think you would have to use something analogous to "cookies" in the stateless
HTTP protocol.  I.e., some sort of intermediary.  How to do that, I know not.

Ron



> Hi all,
> 
> I would like to have an object in one folder be referenced
> by another object in another folder (think symlinks
> in UNIX) ... but I'm not sure what properties an object
> has that identify it's absolute location (absolute_url
> is a little fluffy, no?).
> 
> Anyone have any ideas on how to approach this?
> 
> Thanks in advance,
> 
> Ziniti
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>