Browse Source

Read out the model to modify from the Modelverse

Yentl Van Tendeloo 8 years ago
parent
commit
d9711bf57c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      classes/window/create_activity.xml

+ 2 - 2
classes/window/create_activity.xml

@@ -690,10 +690,10 @@
             </onentry>
 
             <transition event="mv_response" target="../modifying_mm">
-                <parameter name="context"/>
+                <parameter name="result"/>
                 <script>
+                    context, model_to_modify = result
                     self.context = context
-                    model_to_modify = "merged/%s" % self.activity_name
                     self.subprocess = subprocess.Popen([sys.executable, sys.argv[0], "--address", data['mv_address'], "--username", data['username'], "--password", data['password'], "--model", model_to_modify, "--limited"])
                 </script>
             </transition>