diff options
| author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-27 21:54:05 +0100 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-27 21:54:05 +0100 |
| commit | 16d50cd5d52617d9117409ccc9819d8429088e84 (patch) | |
| tree | 23c1a9c651aad411e443a97f2a3e4c4521ac69a9 /gitlab/__init__.py | |
| parent | e5438c6440a2477c796427bc598b2b31b10dc762 (diff) | |
| download | gitlab-16d50cd5d52617d9117409ccc9819d8429088e84.tar.gz | |
Add support for application settings
Diffstat (limited to 'gitlab/__init__.py')
| -rw-r--r-- | gitlab/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index 28ebfe3..24d1882 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -122,6 +122,7 @@ class Gitlab(object): #: Whether SSL certificates should be validated self.ssl_verify = ssl_verify + self.settings = ApplicationSettingsManager(self) self.user_keys = UserKeyManager(self) self.users = UserManager(self) self.group_members = GroupMemberManager(self) @@ -556,7 +557,7 @@ class Gitlab(object): headers = self._create_headers(content_type="application/json") # build data that can really be sent to server - data = obj._data_for_gitlab(extra_parameters=kwargs) + data = obj._data_for_gitlab(extra_parameters=kwargs, update=True) try: r = requests.put(url, data=data, |
