[Zope] forbiddenAttribute, annotation, __call__

Jørgen Jørgensen gardsted at yahoo.com
Thu Apr 19 10:44:05 EDT 2007

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

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,
            myAdapter = component.queryMultiAdapter(
                objects=(self.context,), interface=iface, default=None)
            if myAdapter is None:
            yield myAdapter

And then try to adapt the context like this:

        for myAdapter in self.getSnapInAdapters():

Here I get the error like this:
ForbiddenAttribute: ('__call__', <bdz.testtour.annotation.ContentAnnotationA object at

  <adapter factory="bdz.testtour.annotation.ContentAnnotationA" 

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 

More information about the Zope mailing list