2006/9/30, KLEIN Stéphane <[EMAIL PROTECTED]>:
> 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 :(
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to