[Zope3-Users] How to resolve bi-directionally navigable association?

2005-08-08 Thread Adam Groszer
As the subject sais, how can I resolve bi-directionally navigable association in Z3? Both objects have to have references of each other, that means that also the schemas have to have references. class IItem(interface): unit = Object( title=u"Unit", description=u"Unit",

Re: [Zope3-Users] How to resolve bi-directionally navigable association? (Corrections)

2005-08-08 Thread Adam Groszer
Corrections: Monday, August 8, 2005, 11:45:56 AM, I wrote: > The only way I found is defining a dummy interface before the other: Actually that does not work, because the dummy IUnit and the real IUnit is not the same and IItem stores the wrong one. This failes on validations. Now I don't have

[Zope3-Users] practical example of migrating from services to utilities

2005-08-08 Thread Duncan McGreggor
Hey all, I just wanted to check to make sure I was doing this right, and if so, provide a resource that would turn up on subsequent googling. This example involves the getting menus items with the getService/getUtility functions and is taken from Philip's worldcookery example code. Here's th

Re[2]: [Zope3-Users] How to resolve bi-directionally navigable association?

2005-08-08 Thread Adam Groszer
Hello Douglas, Monday, August 8, 2005, 5:53:54 PM, you wrote: > Adam: > You should look at the Zope 3 Developer's Handbook. Maybe this part: > 13.3 Step III: Writing the interfaces > http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Book/contentobject.html > could help you

Re: [Zope3-Users] practical example of migrating from services to utilities

2005-08-08 Thread Andreas Reuleaux
On Mon, Aug 08, 2005 at 01:57:21PM -0600, Duncan McGreggor wrote: > Hey all, > > I just wanted to check to make sure I was doing this right, and if so, > provide a resource that would turn up on subsequent googling. This > example involves the getting menus items with the getService/getUtility

[Zope3-Users] Re: How to resolve bi-directionally navigable association? (Corrections)

2005-08-08 Thread Derrick Hudson
On Mon, Aug 08, 2005 at 02:36:46PM +0200, Adam Groszer wrote: | Corrections: | | Monday, August 8, 2005, 11:45:56 AM, I wrote: | | > The only way I found is defining a dummy interface before the other: | | Actually that does not work, because the dummy IUnit and the real | IUnit is not the same