From 064e2b4bb7cb4b1775a78f51ebb46a00c9733af9 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Mon, 26 Dec 2016 07:39:37 +0100 Subject: Snippet: content() -> raw() Using the content() method causes conflicts with the API `content` attribute. --- docs/gl_objects/snippets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/gl_objects/snippets.py') 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 -- cgit v1.2.1