experimental/schoology/schoolopy/main.py
def update_document(self, document, document_id, section_id=None, group_id=None):
        """
        Helper function for updating adocument in any realm.

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

        Helper function for updating adocument in any realm.

        :param document: Document object to post to API.
        :param *_id: ID of realm.
        
Helper function for updating adocument in any realm.
Helper function for updating adocument in any realm .
def update_document(self, document, document_id, section_id=None, group_id=None):
        if school_id:
            self.update_school_document(document, document_id, school_id)
        if section_id:
            self.update_section_document(document, document_id, section_id)
        else:
            raise TypeError('Realm id property required.')
def update_document ( self , document , document_id , section_id = None , group_id = None ) : if school_id : self . update_school_document ( document , document_id , school_id ) if section_id : self . update_section_document ( document , document_id , section_id ) else : raise TypeError ( 'Realm id property required.' )
Helper function for updating adocument in any realm.
Helper function for updating adocument in any realm .
"""
        Helper function for updating adocument 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 .
document_id
section_id
group_id
*_id
ID of realm.
ID of realm .