MCPcopy Index your code
hub / github.com/diffgram/diffgram / __ui_schema_new

Function __ui_schema_new

default/methods/ui_schema/ui_schema.py:149–166  ·  view source on GitHub ↗
(
    session,
    input,
    project_string_id,
    do_add_to_session = True)

Source from the content-addressed store, hash-verified

147
148
149def __ui_schema_new(
150 session,
151 input,
152 project_string_id,
153 do_add_to_session = True):
154 ui_schema = UI_Schema.new(
155 member_created = get_member(session),
156 project = Project.get(session, project_string_id),
157 client_created_time = input['client_created_time'],
158 creation_ref_id = input['client_creation_ref_id'],
159 name = input['name']
160 )
161
162 if do_add_to_session is True:
163 session.add(ui_schema)
164 session.flush() # For ID
165
166 return ui_schema
167
168
169@routes.route('/api/v1/project/<string:project_string_id>/ui_schema/update',

Callers 1

ui_schema_new_apiFunction · 0.85

Calls 4

get_memberFunction · 0.85
newMethod · 0.45
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected