[Zope] too many arguments TypeError problem

Florent Guillaume fg@nuxeo.com
22 Aug 2001 17:04:25 GMT


> When I do that I get
> 
> Error Type: TypeError
> Error Value: unbound Python method must be called with Photo 1st argument


Okay, I see, it can't work like I said. You should do:

class CImageObject(Photo.Photo):

     _old_tag = Photo.Photo.inheritedAttribute('tag')

     def tag(self, REQUEST=None, display=None,
                  pdcookie=None, height=None,
                  width=None, alt=None, **args):

         # ...
         self._old_tag(REQUEST,display,pdcookie,height,width,alt,args)


Cheers,

Florent Guillaume
Nuxeo