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

Method connect_topic

scratchattach/site/session.py:1202–1213  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 1

_make_linked_objectMethod · 0.95

Tested by

no test coverage detected