Yup, that's all done too.

I just realized I hadn't put in the entry in "import_steps.xml", but now
that that's done, doesn't seem to help either.

I think I ran into this before and just recreated the whole site ... But
now I'd much rather not have to do that ... And in the long run, I have
to find a way to add new components without recreating the whole thing!

So:

- Import/export is done
- adapter is done
- toolset.xml is done
- import_steps.xml is done

I guess maybe I'll have to go in through zopectl debug or something like
that, see what's going on ...

J.F. 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Raphael Ritz
Sent: March 28, 2007 03:55
To: [EMAIL PROTECTED]
Subject: [Zope-CMF] Re: GenericSetup Toolset problem

Doyon, Jean-Francois schrieb:
> Hello,
> 
> I've added a tool to my code base, and registered it in toolset.xml, 
> gave it import/export logic, etc ...
> 

Did you also register the adapter for the tool to the setup environment?

I have something like that in CMFBib's exportimport:

<configure
    xmlns="http://namespaces.zope.org/zope";
    xmlns:five="http://namespaces.zope.org/five";
    i18n_domain="cmf"
    >

   <adapter
factory=".bibliographytool.BibliographyToolComponentNodeAdapter"/>
   <adapter
factory=".bibliographytool.BibliographyToolFolderNodeAdapter"/>
   <adapter factory=".bibliographytool.BibliographyToolXMLAdapter"/>

</configure>

where in exportimport/bibliographytool I declare:

class BibliographyToolXMLAdapter(XMLAdapterBase, ObjectManagerHelpers,
                                  PropertyManagerHelpers):

     """XML im- and exporter for the BibliographyTool.
     """

     adapts(IBibliographyTool, ISetupEnviron)

See https://svn.plone.org/svn/collective/CMFBibliographyAT/trunk
for the full example.

Raphael

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests
_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to