Re: [Product-Developers] zope.Schema field for referencing an object?

2011-12-16 Thread Maarten Nieber
Wow, perfect! > Would it work for you? > > -Asko > ___ Product-Developers mailing list product-develop...@lists.plone.org https://lists.plone.org/mailman/listinfo/plone-product-developers

Re: [Product-Developers] zope.Schema field for referencing an object?

2011-12-16 Thread Asko Soukka
Maarten Nieber wrote: my content type needs to reference an instance of some other (dexterity based) content type. Ideally, I would like to specify that my instance references another instance of SomeContentType that lives in some folder Hi, have you already looked at this (about using plone.ap

Re: [Product-Developers] zope.Schema field for referencing an object?

2011-12-16 Thread Maarten Nieber
ComponentLookupError: ((, http://localhost:8080/em/etapa- nova/++add++elmolino.types.artist>), , u'') /home/mnieber/.buildout/eggs/zope.component-3.9.5- py2.6.egg/zope/component/_api.py(109)getMultiAdapter() default) def getMultiAdapter(objects, interface=Interface, name=u'', context=None): ada

Re: [Product-Developers] zope.Schema field for referencing an object?

2011-12-16 Thread Maarten Nieber
Traceback (innermost last): Module ZPublisher.Publish, line 126, in publish Module ZPublisher.mapply, line 77, in mapply Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall Module ZPublisher.Publish, line 46, in call_object Module plone.z3cform.layout, line 70, in __call__ Module plone.z3

[Product-Developers] zope.Schema field for referencing an object?

2011-12-16 Thread Maarten Nieber
Hi, my content type needs to reference an instance of some other (dexterity based) content type. Ideally, I would like to specify that my instance references another instance of SomeContentType that lives in some folder, like this: bestFriend = zope.schema.Reference( schema=my.product.Perso