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

Method turn_off_commenting

scratchattach/site/project.py:596–601  ·  view source on GitHub ↗

Disables commenting on the project. 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

594 return self._update_from_dict(r)
595
596 def turn_off_commenting(self):
597 """
598 Disables commenting on the project. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project`
599 """
600 data = {"comments_allowed": False}
601 self.set_fields(data)
602
603 def turn_on_commenting(self):
604 """

Callers

nothing calls this directly

Calls 1

set_fieldsMethod · 0.95

Tested by

no test coverage detected