"Espen S. Frederiksen" wrote:
The problem occur when I try to split up the function as
shown below. I would like to store the data list, update it
if nessesary and return it when appropriate. Am I making it
unessesary complex when I use the class? Is there maybe a
way to declare the data
On Wed, 24 Jan 2001, Espen Sorbye Frederiksen wrote:
I did what you suggested, but I am still a bit stuck. Maybe I call them
wrong in my code. I use the call below but get an error.
dtml-call expr="createdata('test1','test2','test3')"
dtml-var expr="returndata()"
Error Type: AttributeError
The module below works using the python compiler
class Testclass:
def setdata(self,val1,val2,val3):
self.data = [val1,val2,val3]
def updatedata(self, index):
self.data[index] = self.data[index]+1
def display(self):
print self.data
x = Testclass()
def
MAIL PROTECTED]
Sent: Tuesday, January 23, 2001 5:52 PM
Subject: [Zope-dev] "Problem" using External Method
The module below works using the python compiler
class Testclass:
def setdata(self,val1,val2,val3):
self.data = [val1,val2,val3]
def updatedata(self, index):
isplay()
- Original Message -
From: "Espen Sorbye Frederiksen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 23, 2001 5:52 PM
Subject: [Zope-dev] "Problem" using External Method
The module below works using the python compiler
class Testclas