Merge branch 'master' into filechooser

This commit is contained in:
Christopher Denter 2011-04-12 17:28:44 +02:00
commit 622f3026e6
1 changed files with 7 additions and 4 deletions

View File

@ -706,11 +706,14 @@ def create_handler(element, key, value, idmap):
# bind every key.value
for x in kw:
k = x.split('.')
if len(k) != 2:
continue
f = idmap[k[0]]
if hasattr(f, 'bind'):
f.bind(**{k[1]: call_fn})
try:
for x in k[1:-1]:
f = getattr(f, x)
if hasattr(f, 'bind'):
f.bind(**{k[-1]: call_fn})
except AttributeError:
continue
return eval(value, _eval_globals, idmap)