MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / toggle_commenting

Method toggle_commenting

scratchattach/site/project.py:610–615  ·  view source on GitHub ↗

Switches commenting on / off on the project (If comments are on, they will be turned off, else they will be turned on). You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project`

(self)

Source from the content-addressed store, hash-verified

608 self.set_fields(data)
609
610 def toggle_commenting(self):
611 """
612 Switches commenting on / off on the project (If comments are on, they will be turned off, else they will be turned on). You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project`
613 """
614 data = {"comments_allowed": not self.comments_allowed}
615 self.set_fields(data)
616
617 def share(self):
618 """

Callers

nothing calls this directly

Calls 1

set_fieldsMethod · 0.95

Tested by

no test coverage detected