Hello,
should be a simple problem, but...

I have a class that is registered as a NameChooser:

from zope.app.container.contained import NameChooser

  class XGMNameChooser(NameChooser):
    implements(INameChooser)
    
    def chooseName(self, name, object):
        if IAbbreviation.providedBy(object):
            [...]
            return n
        else:
            return super(NameChooser, self).chooseName(name, object)

I want to take care only of the objects that are of type IAbbrevation. But I 
can't call the 

File "/home/florian/Desktop/zope/lib/python/xgm/xgm.py", line 35, in 
chooseName
    return super(NameChooser, self).chooseName(name, object)
AttributeError: 'super' object has no attribute 'chooseName'

What am I doing wrong?

Florian
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to