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)
| 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 | """ |
nothing calls this directly
no test coverage detected