MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _update

Method _update

lib/sqlalchemy/event/base.py:202–212  ·  view source on GitHub ↗

Populate from the listeners in another :class:`_Dispatch` object.

(
        self, other: _Dispatch[_ET], only_propagate: bool = True
    )

Source from the content-addressed store, hash-verified

200 return _UnpickleDispatch(), (self._instance_cls,)
201
202 def _update(
203 self, other: _Dispatch[_ET], only_propagate: bool = True
204 ) -> None:
205 """Populate from the listeners in another :class:`_Dispatch`
206 object."""
207 for ls in other._event_descriptors:
208 if isinstance(ls, _EmptyListener):
209 continue
210 getattr(self, ls.name).for_modify(self)._update(
211 ls, only_propagate=only_propagate
212 )
213
214 def _clear(self) -> None:
215 for ls in self._event_descriptors:

Callers 10

_copyMethod · 0.45
_schema_item_copyMethod · 0.45
__init__Method · 0.45
process_savesMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
test_propagateMethod · 0.45
test_propagateMethod · 0.45
test_updateMethod · 0.45

Calls 1

for_modifyMethod · 0.45

Tested by 3

test_propagateMethod · 0.36
test_propagateMethod · 0.36
test_updateMethod · 0.36