forked from platypush/platypush
Best effort in context expansion
This commit is contained in:
parent
bb21595678
commit
f67b737a54
1 changed files with 4 additions and 1 deletions
|
@ -106,7 +106,10 @@ class Request(Message):
|
||||||
for (k, v) in context.items():
|
for (k, v) in context.items():
|
||||||
if isinstance(v, Message):
|
if isinstance(v, Message):
|
||||||
v = json.loads(str(v))
|
v = json.loads(str(v))
|
||||||
|
try:
|
||||||
exec('{}={}'.format(k, v))
|
exec('{}={}'.format(k, v))
|
||||||
|
except:
|
||||||
|
exec('{}="{}"'.format(k, v))
|
||||||
|
|
||||||
parsed_value = ''
|
parsed_value = ''
|
||||||
while value:
|
while value:
|
||||||
|
|
Loading…
Reference in a new issue