[Zope] object of type 'string' is not callable
Geir Bækholt
Geir Bækholt
Wed, 18 Jun 2003 10:30:05 +0200
On Wed, 18 Jun 2003 16:30:54 +1000 GMT (..8:30 where i live(GMT+2) )
drew nichols asked the Zope mailinglist about the following:
> "object of type 'string' is not callable"
> what does this error really mean
> class myClass ( simpleItem ):
> def stringify( self ):
> str = "\nLogins: " + str( ['ello'] )
could it be the fact that you are redfining str to be a string
before calling it as a method ?
would this work ? (untested)
myString = "\nLogins: " + str( ['ello'] )
^^^^^^^^
thus leaving the reserved "str" alone ;)
--
Geir Bækholt