Gets a forum topic using this session, connects the session to the ForumTopic object to allow authenticated actions Data is up-to-date. Data received from Scratch's RSS feed XML API. Args: topic_id (int): ID of the requested forum topic (can be found in the brow
(self, topic_id)
| 1200 | return self._make_linked_object("classtoken", int(class_token), classroom.Classroom, exceptions.ClassroomNotFound) |
| 1201 | |
| 1202 | def connect_topic(self, topic_id) -> forum.ForumTopic: |
| 1203 | """ |
| 1204 | Gets a forum topic using this session, connects the session to the ForumTopic object to allow authenticated actions |
| 1205 | Data is up-to-date. Data received from Scratch's RSS feed XML API. |
| 1206 | |
| 1207 | Args: |
| 1208 | topic_id (int): ID of the requested forum topic (can be found in the browser URL bar) |
| 1209 | |
| 1210 | Returns: |
| 1211 | scratchattach.forum.ForumTopic: An object that represents the requested forum topic |
| 1212 | """ |
| 1213 | return self._make_linked_object("id", int(topic_id), forum.ForumTopic, exceptions.ForumContentNotFound) |
| 1214 | |
| 1215 | def connect_topic_list(self, category_id, *, page=1): |
| 1216 | """ |
nothing calls this directly
no test coverage detected