[Product-Developers] zope.sqlalchemy objects and traversal/speaking urls

Malthe Borch mborch at gmail.com
Wed Nov 14 22:01:24 UTC 2012


On 14 November 2012 18:00, Carsten Senger <senger at rehfisch.de> wrote:
> Implementing OFS.interfaces.ITraversable seems to be not sensible.
> Inheriting from Acquisition.Implicit is not possible due to metaclass
> conflicts. Is it possible to put them into the acquisition chain without
> inheriting from Acquisition.

You can wrap them in an `ImplicitAcquisitionWrapper`. This works even
for e.g. a dict `{}` – I would think that it would on an ORM class as
well.

That said, acquisition can be tricky.

You could also consider not using the ORM's class directly.

\malthe


More information about the Product-Developers mailing list