[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cmf
Subject:    RE: [Zope-CMF] Re: GenericSetup Toolset problem
From:       "Doyon, Jean-Francois" <jdoyon () NRCan ! gc ! ca>
Date:       2007-03-28 12:43:59
Message-ID: AC5C8D744B56174DB5AE2F3D1A18623F010AFA70 () S0-OTT-X2 ! nrn ! nrcan ! gc ! ca
[Download RAW message or body]

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: zope-cmf-bounces@lists.zope.org
[mailto:zope-cmf-bounces@lists.zope.org] On Behalf Of Raphael Ritz
Sent: March 28, 2007 03:55
To: zope-cmf@zope.org
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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic