MCPcopy
hub / github.com/Tencent/CodeAnalysis / create

Method create

server/projects/main/apps/base/basemodel.py:143–151  ·  view source on GitHub ↗

Creates, saves, and returns a new object with the given kwargs.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

141 """
142
143 def create(self, *args, **kwargs):
144 """
145 Creates, saves, and returns a new object with the given kwargs.
146 """
147 user = kwargs.pop("user", None)
148 if user:
149 kwargs["creator"] = user
150 kwargs["modifier"] = user
151 return super(MTQuerySet, self).create(*args, **kwargs)
152
153 def update(self, *args, **kwargs):
154 """

Callers 10

revoke_jobMethod · 0.45
save_task_resultMethod · 0.45
handleMethod · 0.45
add_operation_recordFunction · 0.45
add_operation_recordMethod · 0.45
execute_file_actionMethod · 0.45
onSaveRequestFunction · 0.45
onEditFinishFunction · 0.45
onSaveRequestFunction · 0.45
onAuthHandlerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected