fix instructions code in dataforms.py
This commit is contained in:
parent
5b63c41c41
commit
4d864fe2aa
|
@ -366,16 +366,16 @@ class DataForm(ExtendedNode):
|
||||||
# TODO: the same code is in TextMultiField. join them
|
# TODO: the same code is in TextMultiField. join them
|
||||||
def fget(self):
|
def fget(self):
|
||||||
value = u''
|
value = u''
|
||||||
for valuenode in self.getTags('value'):
|
for valuenode in self.getTags('instructions'):
|
||||||
value += '\n' + valuenode.getData()
|
value += '\n' + valuenode.getData()
|
||||||
return value[1:]
|
return value[1:]
|
||||||
def fset(self, value):
|
def fset(self, value):
|
||||||
fdel(self)
|
fdel(self)
|
||||||
if value == '': return
|
if value == '': return
|
||||||
for line in value.split('\n'):
|
for line in value.split('\n'):
|
||||||
self.addChild('value').setData(line)
|
self.addChild('instructions').setData(line)
|
||||||
def fdel(self):
|
def fdel(self):
|
||||||
for value in self.getTags('value'):
|
for value in self.getTags('instructions'):
|
||||||
self.delChild(value)
|
self.delChild(value)
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue