Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrew Buddenberg
gcis-py-client
Commits
aeff4cec
Commit
aeff4cec
authored
May 05, 2014
by
abuddenberg
Browse files
Per Brian, added support for deleting a contributor association on a publication
parent
2cc25e6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
gcis_clients/gcis_client.py
View file @
aeff4cec
...
...
@@ -502,11 +502,7 @@ class GcisClient(object):
url
=
'{b}/report/{rpt}/chapter/{chp}/figure/contributors/{fig}'
.
format
(
b
=
self
.
base_url
,
rpt
=
report_id
,
chp
=
chapter_id
,
fig
=
figure_id
)
data
=
{
'delete'
:
{
'role'
:
contrib
.
role
.
type_id
,
'organization_identifier'
:
contrib
.
organization
.
identifier
,
'person_id'
:
contrib
.
person
.
identifier
}
'delete_contributor'
:
contrib
.
id
}
return
self
.
s
.
post
(
url
,
data
=
json
.
dumps
(
data
),
verify
=
False
)
...
...
@@ -581,4 +577,4 @@ class GcisClient(object):
return
[
re
.
match
(
r
'\[.+\] \{(.+)\} (.*)'
,
r
).
groups
()
for
r
in
resp
.
json
()]
# return resp.json()
else
:
raise
Exception
(
resp
.
text
)
\ No newline at end of file
raise
Exception
(
resp
.
text
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment