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

Method write

mongoengine/fields.py:1787–1796  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

1785 self._mark_as_changed()
1786
1787 def write(self, string):
1788 if self.grid_id:
1789 if not self.newfile:
1790 raise GridFSError(
1791 "This document already has a file. Either "
1792 "delete it or call replace to overwrite it"
1793 )
1794 else:
1795 self.new_file()
1796 self.newfile.write(string)
1797
1798 def writelines(self, lines):
1799 if not self.newfile:

Callers 6

get_fileFunction · 0.45
test_file_fieldsMethod · 0.45
test_image_fieldMethod · 0.45

Calls 2

new_fileMethod · 0.95
GridFSErrorClass · 0.85

Tested by 6

get_fileFunction · 0.36
test_file_fieldsMethod · 0.36
test_image_fieldMethod · 0.36