MCPcopy Create free account
hub / github.com/MongoEngine/mongoengine / wrapper

Function wrapper

mongoengine/base/datastructures.py:20–24  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

18 """Decorator that ensures _mark_as_changed method gets called."""
19
20 def wrapper(self, *args, **kwargs):
21 # Can't use super() in the decorator.
22 result = parent_method(self, *args, **kwargs)
23 self._mark_as_changed()
24 return result
25
26 return wrapper
27

Callers

nothing calls this directly

Calls 1

_mark_as_changedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…