def instance_from_data(self, raw_data, datamodel=None, page_num=None):
        if datamodel is None:
            datamodel = self.db.get_datamodel_for_raw_data(raw_data, self)
        data = datamodel.process_raw_data(raw_data, self)
        self.db.process_data(data, datamodel, self)
        cls = self.db.get_record_class(datamodel, data)
        return cls(self, data, page_num=page_num)
Test index page at /api/documents/folders
dataset/ETHPy150Open lektor/lektor/lektor/db.py/Pad.instance_from_data--crossover with--dataset/ETHPy150Open treeio/treeio/treeio/documents/api/tests.py/DocumentsViewsTest.test_unauthenticated_access