-----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          [EMAIL PROTECTED]
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-----
_______________________________________________
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