This creates an instance from the given raw data.
(self, raw_data, datamodel=None, page_num=None)
| 1840 | return None |
| 1841 | |
| 1842 | def instance_from_data(self, raw_data, datamodel=None, page_num=None): |
| 1843 | """This creates an instance from the given raw data.""" |
| 1844 | if datamodel is None: |
| 1845 | datamodel = self.db.get_datamodel_for_raw_data(raw_data, self) |
| 1846 | data = datamodel.process_raw_data(raw_data, self) |
| 1847 | self.db.process_data(data, datamodel, self) |
| 1848 | cls = self.db.get_record_class(datamodel, data) |
| 1849 | return cls(self, data, page_num=page_num) |
| 1850 | |
| 1851 | def query(self, path=None, alt=PRIMARY_ALT): |
| 1852 | """Queries the database either at root level or below a certain |