<div dir="ltr"><div><div><div>z3c.relationfield is the closest thing I&#39;ve used to a foreign key. But instead, it hands you a reference to the object.<br><br></div>You can start with the tutorial and with the zc.relation documentation (<a href="https://pypi.python.org/pypi/zc.relation">https://pypi.python.org/pypi/zc.relation</a>)<br>

<br></div>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 <a href="http://www.muthukadan.net/docs/zca.html">http://www.muthukadan.net/docs/zca.html</a>).<br>

<br><br>---<br></div>Noe<br><div><div><div><div><br><br></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/23 Bahman Movaqar <span dir="ltr">&lt;<a href="mailto:Bahman@bahmanm.com" target="_blank">Bahman@bahmanm.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Reading this tutorial (<a href="http://grok.zope.org/documentation/how-to/using-a-relationfield-for-relationships-between" target="_blank">http://grok.zope.org/<u></u>documentation/how-to/using-a-<u></u>relationfield-for-<u></u>relationships-between</a>), the author uses `z3c.relationfield&#39;.  I was wondering what other libraries exist to do this?<br>


<br>
I should probably ask this on ZODB lists but I thought here I may find some hints about which approach suits Grok better.<br>
<br>
TIA,<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Bahman Movaqar  (<a href="http://BahmanM.com" target="_blank">http://BahmanM.com</a>)<br>
ERP Evaluation, Implementation, Deployment Consultant<br>
<br>
______________________________<u></u>_________________<br>
Grok-dev mailing list<br>
<a href="mailto:Grok-dev@zope.org" target="_blank">Grok-dev@zope.org</a><br>
<a href="https://mail.zope.org/mailman/listinfo/grok-dev" target="_blank">https://mail.zope.org/mailman/<u></u>listinfo/grok-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><span style="color:rgb(255,204,102)">---</span><br>
<span style="color:rgb(204,153,51)">Noe Nieto</span><br>
NNieto Consulting Services<br>
M: <a href="mailto:nnieto@noenieto.com" target="_blank">nnieto@noenieto.com</a><br>
W: <a href="http://noenieto.com" target="_blank">http://noenieto.com</a><br>
T:  <a href="https://twitter.com/#%21/tzicatl" target="_blank">@tzicatl</a><br>Li: <a href="http://www.linkedin.com/profile/view?id=84300665" target="_blank">Perfil en LinkedIn</a><br>
</div>