mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-10 01:17:59 +03:00
Hidden fields are not serialized by serializeForm, but by mistake i used "pass" instead of "continue" at check time to skip it... :-)
This commit is contained in:
parent
648967cb93
commit
04192f3ec9
@ -734,7 +734,7 @@ class UserInterface(object):
|
|||||||
arr = []
|
arr = []
|
||||||
for k, v in self._gui.iteritems():
|
for k, v in self._gui.iteritems():
|
||||||
if v.isType(gui.InputField.HIDDEN_TYPE):
|
if v.isType(gui.InputField.HIDDEN_TYPE):
|
||||||
pass
|
continue
|
||||||
if v.isType(gui.InputField.EDITABLE_LIST):
|
if v.isType(gui.InputField.EDITABLE_LIST):
|
||||||
val = '\001' + cPickle.dumps(v.value)
|
val = '\001' + cPickle.dumps(v.value)
|
||||||
else:
|
else:
|
||||||
@ -752,6 +752,7 @@ class UserInterface(object):
|
|||||||
return
|
return
|
||||||
for txt in values.decode('zip').split('\002'):
|
for txt in values.decode('zip').split('\002'):
|
||||||
k, v = txt.split('\003')
|
k, v = txt.split('\003')
|
||||||
|
logger.debug('k: {0}, v:{1}'.format(k,v))
|
||||||
if self._gui.has_key(k):
|
if self._gui.has_key(k):
|
||||||
if v[0] == '\001':
|
if v[0] == '\001':
|
||||||
val = cPickle.loads(v[1:])
|
val = cPickle.loads(v[1:])
|
||||||
|
Loading…
Reference in New Issue
Block a user