From a user's perspective, this makes no sense:
>>> from zope.interface import implements,Interface
>>> from zope.component import queryAdapter
>>> class ISomething(Interface): pass
...
>>> class MyClass: implements(ISomething)
...
>>> m = MyClass()
Right, so this does make sense:
>>> ISomething(m)
<__main__.MyClass instance at 0x00BED6E8>
This does not:
>>> repr(queryAdapter(m,ISomething))
'None'
why the difference?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
Good morning,
My Nagios just alarmed me, that the wiki is down. Anybody around who can
poke it?
Christian
--
Christian Theune · ct(a)gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development