(self, state, inst, state_dict)
| 575 | manager.dispatch.pickle(state, d) |
| 576 | |
| 577 | def __call__(self, state, inst, state_dict): |
| 578 | state.manager = manager = opt_manager_of_class(self.class_) |
| 579 | if manager is None: |
| 580 | raise exc.UnmappedInstanceError( |
| 581 | inst, |
| 582 | "Cannot deserialize object of type %r - " |
| 583 | "no mapper() has " |
| 584 | "been configured for this class within the current " |
| 585 | "Python process!" % self.class_, |
| 586 | ) |
| 587 | elif manager.is_mapped and not manager.mapper.configured: |
| 588 | manager.mapper._check_configure() |
| 589 | |
| 590 | # setup _sa_instance_state ahead of time so that |
| 591 | # unpickle events can access the object normally. |
| 592 | # see [ticket:2362] |
| 593 | if inst is not None: |
| 594 | manager.setup_instance(inst, state) |
| 595 | manager.dispatch.unpickle(state, state_dict) |
| 596 | |
| 597 | |
| 598 | class InstrumentationFactory(EventTarget): |
nothing calls this directly
no test coverage detected