SAP interface: easy access to SAP results. Bugfix in search method.
This commit is contained in:
parent
e89eda4838
commit
2ff08258bc
6 changed files with 61 additions and 10 deletions
|
@ -197,7 +197,14 @@ class AbstractMixin:
|
|||
history, for example).'''
|
||||
# Which value will we use ?
|
||||
if useParamValue: v = value
|
||||
else: v = eval('self.%s' % name)
|
||||
else:
|
||||
try:
|
||||
v = eval('self.%s' % name)
|
||||
except AttributeError:
|
||||
# Probably a newly created attribute.
|
||||
# In this case, return the default value.
|
||||
v = None
|
||||
if appyType: v = appyType['default']
|
||||
if not appyType: return v
|
||||
if (v == None) or (v == ''): return v
|
||||
vType = appyType['type']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue