def run(self):
     writeshared.set_object(self.target_object)
     self.add_import_statements()
     self.add_assign_object_statement()
     self.add_getter_statement()
     self.add_delete_statement()
     self.run_command()
     self.result = readshared.get_result()
Ejemplo n.º 2
0
 def run(self):
     writeshared.set_object(self.target_object)
     self.add_import_statements()
     self.add_assign_object_statement()
     self.add_getter_statement()
     self.add_delete_statement()
     self.run_command()
     self.result = readshared.get_result()
    def __execute_property (self, property, value, object, undo=False):
        writeshared.set_object(object)
        # Execute each setter with his value        
        if value != []:
            command = self.__get_command(property, value, object)
            if undo == False:                
                # Run the command
                servers.get_python_server().run(str(command))
            else:
                init_value = self.init_values[property["name"]]["value"]
                undo_cmd = self.__get_command(property, init_value[0], object)
                servers.get_command_server().newcommand(str(command), 
                                                    str(undo_cmd))

            self.values[property['name']]['value'] = [readshared.get_result()]
            object.setobjectdirty( True )

        return readshared.get_result()
Ejemplo n.º 4
0
    def __execute_property(self, property, value, object, undo=False):
        writeshared.set_object(object)
        # Execute each setter with his value
        if value != []:
            command = self.__get_command(property, value, object)
            if undo == False:
                # Run the command
                servers.get_python_server().run(str(command))
            else:
                init_value = self.init_values[property["name"]]["value"]
                undo_cmd = self.__get_command(property, init_value[0], object)
                servers.get_command_server().newcommand(
                    str(command), str(undo_cmd))

            self.values[property['name']]['value'] = [readshared.get_result()]
            object.setobjectdirty(True)

        return readshared.get_result()