MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / get

Method get

mongoengine/fields.py:1758–1771  ·  view source on GitHub ↗
(self, grid_id=None)

Source from the content-addressed store, hash-verified

1756 return self._fs
1757
1758 def get(self, grid_id=None):
1759 if grid_id:
1760 self.grid_id = grid_id
1761
1762 if self.grid_id is None:
1763 return None
1764
1765 try:
1766 if self.gridout is None:
1767 self.gridout = self.fs.get(self.grid_id)
1768 return self.gridout
1769 except Exception:
1770 # File has been deleted
1771 return None
1772
1773 def new_file(self, **kwargs):
1774 self.newfile = self.fs.new_file(**kwargs)

Callers 15

__getattr__Method · 0.95
__str__Method · 0.95
readMethod · 0.95
__call__Method · 0.45
_find_referencesMethod · 0.45
_attach_objectsMethod · 0.45
__init__Method · 0.45
_get_connection_settingsFunction · 0.45
_clean_settingsFunction · 0.45
__init__Method · 0.45
lookup_memberMethod · 0.45

Calls

no outgoing calls