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

2001-04-27 Thread Chris Withers

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

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



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

2001-04-27 Thread tav

 CW == Chris Withers [EMAIL PROTECTED] wrote:

CW OK, the code around this is:

def __repr__(self):
return (%s %s at 0x%s
% (self.__class__.__name__, `self.id()`,
hex(id(self))[2:]))

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

w00p! you rock!

thanks!

this is what happens when you copy paste someone else's code and don't know
wtf you are doing.

just commented it out, and works like a charm!

once again, loadsa thanks!

--
best regards, tav
[EMAIL PROTECTED]


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )