diff options
| author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 18:01:27 -0700 | 
|---|---|---|
| committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 18:01:27 -0700 | 
| commit | 7c18e1d22b16bb920c9bb9a788691820bbdb2bfa (patch) | |
| tree | 0e623bc4442f8a36267607a8f32106a3f241ee9c /python/fatcat_web | |
| parent | 1e0e890284978dc7379db707ed1fa2c902e297c6 (diff) | |
| download | fatcat-7c18e1d22b16bb920c9bb9a788691820bbdb2bfa.tar.gz fatcat-7c18e1d22b16bb920c9bb9a788691820bbdb2bfa.zip | |
python impl
Diffstat (limited to 'python/fatcat_web')
| -rw-r--r-- | python/fatcat_web/editing_routes.py | 15 | 
1 files changed, 6 insertions, 9 deletions
| diff --git a/python/fatcat_web/editing_routes.py b/python/fatcat_web/editing_routes.py index 98e5c27d..6895a4cd 100644 --- a/python/fatcat_web/editing_routes.py +++ b/python/fatcat_web/editing_routes.py @@ -63,7 +63,7 @@ def container_create():                  # no merge or anything hard to do; just create the entity                  entity = form.to_entity()                  try: -                    edit = user_api.create_container(entity, editgroup_id=eg.editgroup_id) +                    edit = user_api.create_container(eg.editgroup_id, entity)                  except ApiException as ae:                      app.log.warning(ae)                      abort(ae.status) @@ -98,8 +98,7 @@ def container_edit(ident):                  # all the tricky logic is in the update method                  form.update_entity(entity)                  try: -                    edit = user_api.update_container(entity.ident, entity, -                        editgroup_id=eg.editgroup_id) +                    edit = user_api.update_container(eg.editgroup_id, entity.ident, entity)                  except ApiException as ae:                      app.log.warning(ae)                      abort(ae.status) @@ -144,7 +143,7 @@ def file_create():                  # no merge or anything hard to do; just create the entity                  entity = form.to_entity()                  try: -                    edit = user_api.create_file(entity, editgroup_id=eg.editgroup_id) +                    edit = user_api.create_file(eg.editgroup_id, entity)                  except ApiException as ae:                      app.log.warning(ae)                      abort(ae.status) @@ -181,8 +180,7 @@ def file_edit(ident):                  # all the tricky logic is in the update method                  form.update_entity(entity)                  try: -                    edit = user_api.update_file(entity.ident, entity, -                        editgroup_id=eg.editgroup_id) +                    edit = user_api.update_file(eg.editgroup_id, entity.ident, entity)                  except ApiException as ae:                      app.log.warning(ae)                      abort(ae.status) @@ -238,7 +236,7 @@ def release_create():                  # no merge or anything hard to do; just create the entity                  entity = form.to_entity()                  try: -                    edit = user_api.create_release(entity, editgroup_id=eg.editgroup_id) +                    edit = user_api.create_release(eg.editgroup_id, entity)                  except ApiException as ae:                      app.log.warning(ae)                      abort(ae.status) @@ -274,8 +272,7 @@ def release_edit(ident):                  # all the tricky logic is in the update method                  form.update_entity(entity)                  try: -                    edit = user_api.update_release(entity.ident, entity, -                        editgroup_id=eg.editgroup_id) +                    edit = user_api.update_release(eg.editgroup_id, entity.ident, entity)                  except ApiException as ae:                      app.log.warning(ae)                      abort(ae.status) | 
