experimental/schoology/schoolopy/main.py
def create_update_comment(self, comment, update_id, user_id=None, section_id=None, group_id=None):
        """
        Helper function for creating a comment on an update in any realm.

        :param comment: UpdateComment object to post.
        :param update_id: ID of update on which to create comment.
        :param *_id: ID of realm.
        """
        if user_id:
            return self.create_user_update_comment(comment, update_id, district_id)
        elif section_id:
            return self.create_section_update_comment(comment, update_id, section_id)
        elif group_id:
            return self.create_group_update_comment(comment, update_id, group_id)
        else:
            raise TypeError('Realm id property required.')

        Helper function for creating a comment on an update in any realm.

        :param comment: UpdateComment object to post.
        :param update_id: ID of update on which to create comment.
        :param *_id: ID of realm.
        
Helper function for creating a comment on an update in any realm.
Helper function for creating a comment on an update in any realm .
def create_update_comment(self, comment, update_id, user_id=None, section_id=None, group_id=None):
        if user_id:
            return self.create_user_update_comment(comment, update_id, district_id)
        elif section_id:
            return self.create_section_update_comment(comment, update_id, section_id)
        elif group_id:
            return self.create_group_update_comment(comment, update_id, group_id)
        else:
            raise TypeError('Realm id property required.')
def create_update_comment ( self , comment , update_id , user_id = None , section_id = None , group_id = None ) : if user_id : return self . create_user_update_comment ( comment , update_id , district_id ) elif section_id : return self . create_section_update_comment ( comment , update_id , section_id ) elif group_id : return self . create_group_update_comment ( comment , update_id , group_id ) else : raise TypeError ( 'Realm id property required.' )
Helper function for creating a comment on an update in any realm.
Helper function for creating a comment on an update in any realm .
"""
        Helper function for creating a comment on an update in any realm.

        :param comment: UpdateComment object to post.
        :param update_id: ID of update on which to create comment.
        :param *_id: ID of realm.
        """
self
comment
UpdateComment object to post.
UpdateComment object to post .
update_id
ID of update on which to create comment.
ID of update on which to create comment .
user_id
section_id
group_id
*_id
ID of realm.
ID of realm .