I'm a little stuck here....
(And please forgive me, I don't really know what i'm doing)...

Problem:
Getting ForbiddenAttribute: ('__call__', on annotation

I am trying to make a tabbed form which shows
'snapin-annotations' as tabs in the same form as the content

In the form i look up the snapin-adapters like this:

    def getSnapInAdapters(self):
        for iface in component.interface.searchInterface(
            context=None, search_string=None,
            base=snapin.interfaces.ISnapInAnnotation):
            myAdapter = component.queryMultiAdapter(
                objects=(self.context,), interface=iface, default=None)
            if myAdapter is None:
                continue
            yield myAdapter

And then try to adapt the context like this:

        for myAdapter in self.getSnapInAdapters():
            snapin=myAdapter(self.context)


Here I get the error like this:
    snapin=myAdapter(self.context)
ForbiddenAttribute: ('__call__', <bdz.testtour.annotation.ContentAnnotationA 
object at
0x03588510>)

<zcml>
  <adapter factory="bdz.testtour.annotation.ContentAnnotationA" 
      trusted="True" 
      />
</zcml>

I must be forgetting something...
Will You help?

med venlig hilsen / with kind regards 
Jørgen G. Jørgensen.
---
I just like to play with computers, 
unix, windows, linux, come as they may

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to