experimental/schoology/schoolopy/main.py
def create_blog_post_comment(self, comment, post_id, district_id=None, school_id=None, user_id=None, section_id=None, group_id=None):
        """
        Helper function for creating blog posts in any realm.

        :param post: BlogPost object to post in the given realm.
        :param *_id: ID of realm.
        :return: BlogPostComment object recieved from API.
        """
        if district_id:
            return self.create_district_blog_post(comment, post_id, district_id)
        elif school_id:
            return self.create_school_blog_post(comment, post_id, school_id)
        elif user_id:
            return self.create_user_blog_post(comment, post_id, user_id)
        elif section_id:
            return self.create_section_blog_post(comment, post_id, section_id)
        elif group_id:
            return self.create_group_blog_post(comment, post_id, group_id)
        else:
            raise TypeError('Realm id property required.')

        Helper function for creating blog posts in any realm.

        :param post: BlogPost object to post in the given realm.
        :param *_id: ID of realm.
        :return: BlogPostComment object recieved from API.
        
Helper function for creating blog posts in any realm.
Helper function for creating blog posts in any realm .
def create_blog_post_comment(self, comment, post_id, district_id=None, school_id=None, user_id=None, section_id=None, group_id=None):
        if district_id:
            return self.create_district_blog_post(comment, post_id, district_id)
        elif school_id:
            return self.create_school_blog_post(comment, post_id, school_id)
        elif user_id:
            return self.create_user_blog_post(comment, post_id, user_id)
        elif section_id:
            return self.create_section_blog_post(comment, post_id, section_id)
        elif group_id:
            return self.create_group_blog_post(comment, post_id, group_id)
        else:
            raise TypeError('Realm id property required.')
def create_blog_post_comment ( self , comment , post_id , district_id = None , school_id = None , user_id = None , section_id = None , group_id = None ) : if district_id : return self . create_district_blog_post ( comment , post_id , district_id ) elif school_id : return self . create_school_blog_post ( comment , post_id , school_id ) elif user_id : return self . create_user_blog_post ( comment , post_id , user_id ) elif section_id : return self . create_section_blog_post ( comment , post_id , section_id ) elif group_id : return self . create_group_blog_post ( comment , post_id , group_id ) else : raise TypeError ( 'Realm id property required.' )
Helper function for creating blog posts in any realm.
Helper function for creating blog posts in any realm .
"""
        Helper function for creating blog posts in any realm.

        :param post: BlogPost object to post in the given realm.
        :param *_id: ID of realm.
        :return: BlogPostComment object recieved from API.
        """
BlogPostComment object recieved from API.
BlogPostComment object recieved from API .
self
comment
post_id
district_id
school_id
user_id
section_id
group_id
post
BlogPost object to post in the given realm.
BlogPost object to post in the given realm .
*_id
ID of realm.
ID of realm .