[Zope3-Users] Best way to represent a foreign key in ZODB

Massimiliano della Rovere massimiliano.dellarovere at gmail.com
Wed Mar 4 04:50:18 EST 2009


Thank you Michael!

On Wed, Mar 4, 2009 at 09:13, Michael Howitz <mh at gocept.com> wrote:

> Am 03.03.2009 um 21:53 schrieb Massimiliano della Rovere:
>
> What is the best way to represent a "foreign key"? a persistent.wref? an
> intid number?
>
> Suppose I have a persistent class representing an art object author (A) and
> another persistent class representing an art object (B).
>
> If I want to create links from one instance of one A to instances of class
> B (and vice versa) what do you recommend me?
>
>
> It would be great having the possibility of referring attributes and
> methods of the object:
> is w is a reference to an instance of A, w.name and w.surname for
> example...
>
>
> You might have a look at http://pypi.python.org/pypi/gocept.reference
>
> Yours sincerely,
> --
> Michael Howitz · mh at gocept.com · software developer
> gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
> http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1
> Zope and Plone consulting and development
>
>


-- 
Se proprio dovete inserirmi in una mail in una
lista con indirizzi, vi prego di mettere il mio
nel campo CCN: o BCC: e non in TO: CC: oppure A:
------------
skype: masdero, icq: 473891447, yim: mas_dero, msn: mas_dero at hotmail.com
------------
Mi scriva in italiano; Write me in English; Skribu al mi Esperante!
------------
Volete farmi un regalo a natale e non sapete cosa? :D
http://www.boardgamegeek.com/collection/user/masdero?sort=wishlist&sortdir=asc&columns=title|thumbnail|status|rating|bggrating|plays|comment|commands&wishlist=1&ff=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20090304/6aa4aaf9/attachment.html 


More information about the Zope3-users mailing list