[Grok-dev] How to do foreign keys in ZODB+Grok

Noe Nieto nnieto at noenieto.com
Thu May 23 16:24:32 UTC 2013

z3c.relationfield is the closest thing I've used to a foreign key. But
instead, it hands you a reference to the object.

You can start with the tutorial and with the zc.relation documentation (

They rely heavily on the Zope Component Architecture. So, in order to get
the most out of zc.relation you need to grasp really well the idea behind
the ZCA (see http://www.muthukadan.net/docs/zca.html).


2013/5/23 Bahman Movaqar <Bahman at bahmanm.com>

> Hi all,
> Reading this tutorial (http://grok.zope.org/**
> documentation/how-to/using-a-**relationfield-for-**relationships-between<http://grok.zope.org/documentation/how-to/using-a-relationfield-for-relationships-between>),
> the author uses `z3c.relationfield'.  I was wondering what other libraries
> exist to do this?
> I should probably ask this on ZODB lists but I thought here I may find
> some hints about which approach suits Grok better.
> TIA,
> --
> Bahman Movaqar  (http://BahmanM.com)
> ERP Evaluation, Implementation, Deployment Consultant
> ______________________________**_________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/**listinfo/grok-dev<https://mail.zope.org/mailman/listinfo/grok-dev>

Noe Nieto
NNieto Consulting Services
M: nnieto at noenieto.com
W: http://noenieto.com
T:  @tzicatl <https://twitter.com/#%21/tzicatl>
Li: Perfil en LinkedIn <http://www.linkedin.com/profile/view?id=84300665>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.zope.org/pipermail/grok-dev/attachments/20130523/eeca15f9/attachment.html>

More information about the Grok-dev mailing list