diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2015-06-26 12:00:20 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2015-06-26 12:00:20 +0200 |
commit | 62f3aa5792011792db866ce0841c8d164aa9a34d (patch) | |
tree | 8f494a765a3607afd1c9bac9c592f30536b950a1 /python/astra/utils.pyx | |
parent | 8ad46dc9cb28067047838e06770707cf86ef6e56 (diff) | |
parent | 9e3472ea9041b8755050427d8bdb8a4701019c55 (diff) | |
download | astra-62f3aa5792011792db866ce0841c8d164aa9a34d.tar.gz astra-62f3aa5792011792db866ce0841c8d164aa9a34d.tar.bz2 astra-62f3aa5792011792db866ce0841c8d164aa9a34d.tar.xz astra-62f3aa5792011792db866ce0841c8d164aa9a34d.zip |
Merge pull request #76 from dmpelt/projector-configuration-fix
Configuration fixes
Diffstat (limited to 'python/astra/utils.pyx')
-rw-r--r-- | python/astra/utils.pyx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/astra/utils.pyx b/python/astra/utils.pyx index a8e9e4e..260c308 100644 --- a/python/astra/utils.pyx +++ b/python/astra/utils.pyx @@ -204,7 +204,10 @@ cdef XMLNode2dict(XMLNode node): while it != nodes.end(): subnode = deref(it) if castString(subnode.getName())=="Option": - opts[castString(subnode.getAttribute('key'))] = stringToPythonValue(subnode.getAttribute('value')) + if subnode.hasAttribute('value'): + opts[castString(subnode.getAttribute('key'))] = stringToPythonValue(subnode.getAttribute('value')) + else: + opts[castString(subnode.getAttribute('key'))] = stringToPythonValue(subnode.getContent()) else: dct[castString(subnode.getName())] = stringToPythonValue(subnode.getContent()) inc(it) |