[Zope3-Users] Re: Why in apidoc, I don't found the interface must be implemented to be register by IntIds ?

KLEIN Stéphane klein.stephane at gmail.com
Sat Sep 30 06:07:05 EDT 2006


2006/9/30, KLEIN Stéphane <klein.stephane at gmail.com>:
> > What is it ? I've IPersistent adapter to IKeyReference. I don't
> > understand what is "zope.app.keyreference.interfaces.NotYet:
> > <__main__.P object at 0xb6969dec>" ?
>
> I found zope/app/keyreference/persistent.txt documentation. I read it
> and I hope it can help me.
>

I tried that :

>>> from ZODB.interfaces import IConnection
>>> from zope.app.keyreference.persistent import connectionOfPersistent
>>> ztapi.provideAdapter(IPersistent, IConnection, connectionOfPersistent)
>>> uid = u.register(obj)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/intid/__init__.py",
line 110, in register
    key = IKeyReference(ob)
  File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/interface/interface.py",
line 675, in __call__
    adapter = self.__adapt__(obj)
  File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/interface/interface.py",
line 742, in __adapt__
    adapter = hook(self, obj)
  File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/component/hooks.py",
line 96, in adapter_hook
    return siteinfo.adapter_hook(interface, object, name, default)
  File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/interface/adapter.py",
line 415, in adapter_hook
    adapter = factory(object)
  File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/keyreference/persistent.py",
line 41, in __init__
    raise zope.app.keyreference.interfaces.NotYet(object)
zope.app.keyreference.interfaces.NotYet: <__main__.P object at 0xb6969dec>

but it doesn't work :(


More information about the Zope3-users mailing list