[Zope-CMF] Problem with GenericSetup adapter

Doyon, Jean-Francois Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Tue Jun 6 14:26:03 EDT 2006


Hi,

Finally started working on migrating to Zope 2.9.3/CMF 2!

Trying to get some GenericSetup functionality around my classes.

I've created my own "adapter" which is based on PropertiesXMLAdapter (for
now).

For some reason however, queryMultiAdapter seems intent on returning
PropertiesXMLAdapter, and not my own!

I have:

----

class PortalLocalizerTool(UniqueObject, SimpleItemWithProperties):

    implements(IPortalLocalizer)

----

<configure xmlns="http://namespaces.zope.org/zope">

  <adapter factory=".portallocalizer.PortalLocalizerXMLAdapter"/>

</configure>

----

class PortalLocalizerXMLAdapter(XMLAdapterBase, PropertyManagerHelpers):

    """ XML im- and exporter for properties. """

    adapts(IPortalLocalizer, ISetupEnviron)

---

The import step works but using the wrong adapter :(

Did I miss something?

Thanks!

Jean-François Doyon
Internet Service Development and Systems Support / Spécialiste de
dèveloppements internet et soutien technique
Canada Centre for Remote Sensing/Centre Canadien de télédétection
Natural Resources Canada/Ressources Naturelles Canada
http://atlas.gc.ca
Tel./Tél.: (613) 992-4902
Fax: (613) 947-2410


More information about the Zope-CMF mailing list