experimental/schoology/schoolopy/main.py
def create_document(self, document, section_id=None, group_id=None):
        """
        Helper function for creating a document in any realm.

        :param document: Document object to post to API.
        :param *_id: ID of realm.
        """
        if school_id:
            return self.create_section_media_album(document, school_id)
        if section_id:
            return self.create_section_media_album(document, section_id)
        else:
            raise TypeError('Realm id property required.')

        Helper function for creating a document in any realm.

        :param document: Document object to post to API.
        :param *_id: ID of realm.
        
Helper function for creating a document in any realm.
Helper function for creating a document in any realm .
def create_document(self, document, section_id=None, group_id=None):
        if school_id:
            return self.create_section_media_album(document, school_id)
        if section_id:
            return self.create_section_media_album(document, section_id)
        else:
            raise TypeError('Realm id property required.')
def create_document ( self , document , section_id = None , group_id = None ) : if school_id : return self . create_section_media_album ( document , school_id ) if section_id : return self . create_section_media_album ( document , section_id ) else : raise TypeError ( 'Realm id property required.' )
Helper function for creating a document in any realm.
Helper function for creating a document in any realm .
"""
        Helper function for creating a document in any realm.

        :param document: Document object to post to API.
        :param *_id: ID of realm.
        """
self
document
Document object to post to API.
Document object to post to API .
section_id
group_id
*_id
ID of realm.
ID of realm .