MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / execute

Method execute

src/commands/node/property_changes.py:101–109  ·  view source on GitHub ↗

Apply the code change.

(self)

Source from the content-addressed store, hash-verified

99 self.new_code = new_code
100
101 def execute(self) -> bool:
102 """Apply the code change."""
103 try:
104 self.node.set_code(self.new_code)
105 self._mark_executed()
106 return True
107 except Exception as e:
108 print(f"Failed to change code: {e}")
109 return False
110
111 def undo(self) -> bool:
112 """Revert the code change."""

Calls 2

set_codeMethod · 0.80
_mark_executedMethod · 0.80