MCPcopy Create free account
hub / github.com/NyarchLinux/DesktopPuppet / set_settings

Method set_settings

src/gui_controller.py:79–90  ·  view source on GitHub ↗

Update puppet settings.

(self, settings)

Source from the content-addressed store, hash-verified

77 return False
78
79 def set_settings(self, settings):
80 """Update puppet settings."""
81 try:
82 response = requests.post(
83 f"{self.base_url}/set_settings",
84 json={"settings": settings},
85 timeout=2
86 )
87 response.raise_for_status()
88 return True
89 except requests.RequestException:
90 return False
91
92 def set_overlay(self, overlay_type):
93 """Set the overlay type."""

Callers 1

_on_connectedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected