Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/vault.py
diff options
context:
space:
mode:
Diffstat (limited to 'tutorius/vault.py')
-rw-r--r--tutorius/vault.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tutorius/vault.py b/tutorius/vault.py
index 4d817ec..73f98d0 100644
--- a/tutorius/vault.py
+++ b/tutorius/vault.py
@@ -659,13 +659,11 @@ class XMLSerializer(Serializer):
new_transition = None
for transition in transition_element_list:
- #start_state = transition.getAttribute(START_STATE_ATTR)
next_state = transition.getAttribute(NEXT_STATE_ATTR)
transition_name = transition.getAttribute(NAME_ATTR)
try:
- #The attributes must be removed so that they are not
+ # The attributes must be removed so that they are not
# viewed as a property in load_xml_component
- # transition.removeAttribute(START_STATE_ATTR)
transition.removeAttribute(NEXT_STATE_ATTR)
transition.removeAttribute(NAME_ATTR)
except NotFoundErr:
@@ -683,13 +681,11 @@ class XMLSerializer(Serializer):
new_transition = None
for transition in transition_element_list:
- #start_state = transition.getAttribute(START_STATE_ATTR)
next_state = transition.getAttribute(NEXT_STATE_ATTR)
transition_name = transition.getAttribute(NAME_ATTR)
try:
#The attributes must be removed so that they are not
# viewed as a property in load_xml_component
- # transition.removeAttribute(START_STATE_ATTR)
transition.removeAttribute(NEXT_STATE_ATTR)
transition.removeAttribute(NAME_ATTR)
except NotFoundErr:
@@ -752,7 +748,8 @@ class XMLSerializer(Serializer):
properties = {}
for prop in node.attributes.keys():
- if prop == "Class" : continue
+ if prop == "Class" or prop[:2] == '__': continue
+ logger.debug("property to be inserted is : " + prop)
# security : keep sandboxed
properties[str(prop)] = eval(node.getAttribute(prop))