[Zope3-Users] Adapting a builtin?

Paul Winkler pw_lists at slinkp.com
Tue Dec 6 18:44:26 EST 2005


Hi,

Is it possible to register an adapter for a builtin type
such as str?  All the adapter examples I see use an interface for the
"for" attribute.

Something like:

  <adapter for="str"
    provides=".interfaces.IHTTPConnection"
    factory="httplib.HTTPConnection"
  />

This doesn't seem to work, although it doesn't give any errors.
I'm using five in a Zope 2 trunk sandbox.

Later I'll dig through it with pdb and see what I can find out, but
meanwhile I hoped somebody here had already solved this problem...

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope3-users mailing list