diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-12-26 07:39:37 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-12-26 07:39:37 +0100 |
commit | 064e2b4bb7cb4b1775a78f51ebb46a00c9733af9 (patch) | |
tree | eb3072455b77e2a056beef794788916cd211e49f /docs/gl_objects/snippets.py | |
parent | 745389501281d9bcc069e86b1b41e1936132af27 (diff) | |
download | gitlab-064e2b4bb7cb4b1775a78f51ebb46a00c9733af9.tar.gz |
Snippet: content() -> raw()
Using the content() method causes conflicts with the API `content`
attribute.
Diffstat (limited to 'docs/gl_objects/snippets.py')
-rw-r--r-- | docs/gl_objects/snippets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/gl_objects/snippets.py b/docs/gl_objects/snippets.py index e865b0a..091aef6 100644 --- a/docs/gl_objects/snippets.py +++ b/docs/gl_objects/snippets.py @@ -9,7 +9,7 @@ public_snippets = gl.snippets.public() # get snippet = gl.snippets.get(snippet_id) # get the content -content = snippet.content() +content = snippet.raw() # end get # create @@ -19,7 +19,7 @@ snippet = gl.snippets.create({'title': 'snippet1', # end create # update -snippet.visibility_level = gitlab.VISIBILITY_PUBLIC +snippet.visibility_level = gitlab.Project.VISIBILITY_PUBLIC snippet.save() # end update |