[Zope-CMF] Re: GenericSetup and Zope 2.8.5

Tres Seaver tseaver at palladion.com
Mon Mar 27 06:43:12 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

robert rottermann wrote:
> 
>> You need to register the IBody adapter for your content object.  For
>> example, see the GenericSetup/PythonScripts/configure.zcml, which has:
>>
>>  <configure
>>     xmlns="http://namespaces.zope.org/zope"
>>     xmlns:five="http://namespaces.zope.org/five"
>>     >
>>
>>   <adapter
>>       factory=".exportimport.PythonScriptBodyAdapter"
>>       provides="Products.GenericSetup.interfaces.IBody"
>>       for=".interfaces.IPythonScript
>>            Products.GenericSetup.interfaces.ISetupEnviron"
>>       />
>>
>>    ...
>>
>> Tres.
>> - --
>>   
> 
> thanks a lot
> I see I have to dig into Five first.
> 
> How does Five know, that it should read my config file ?
> 
> robert

- From the "manual.txt for Five 1.0",
http://svn.zope.org/Products.Five/branches/1.0/doc/manual.txt?rev=65463&view=auto

  Five will automatically pickup ``configure.zcml`` when it's placed in
  the product's directory.  Any object that provides ``IMyInterface`
  can now be adapted to ``INewInterface``, like this::


You can also do the equivalent adapter registrations in Python.

Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEJ8/Q+gerLs4ltQ4RAisYAKC/MxzoUNDwWifCAieHAQk8uqx8pwCgjjCv
wy4rPVK7c3aldpLXxrzwphk=
=ZL2D
-----END PGP SIGNATURE-----


More information about the Zope-CMF mailing list