[Zope-dev] a plea for help (again)

Chris Withers chrisw@nipltd.com
Fri, 27 Apr 2001 12:16:14 +0100


tav wrote:
> 
>   File /home/zope/k1/lib/python/Products/XnetPage/XnetPage.py, line 811, in
> __repr__
>     (Object: test_page
> TypeError: call of non-function (type string)

OK, the code around this is:
    def __repr__(self):
        return ("<%s %s at 0x%s>"
                % (self.__class__.__name__, `self.id()`, hex(id(self))[2:]))

I'm betting self.id isn't a methodm hence your error.
That said, I dont' really see the point of this whole __repr__ method, maybe try
removing it completely?

cheers,

Chris