Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
python-kitgvapi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jens.kleineheismann
python-kitgvapi
Commits
694963dc
Commit
694963dc
authored
Apr 11, 2019
by
jens.kleineheismann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPD: Oe.get_groups(): ad_details defaults to True. Bump patchlevel.
parent
58fa9205
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
kitgvapi/clients.py
kitgvapi/clients.py
+1
-1
kitgvapi/models.py
kitgvapi/models.py
+1
-1
setup.py
setup.py
+1
-1
No files found.
kitgvapi/clients.py
View file @
694963dc
...
...
@@ -122,7 +122,7 @@ class RestClient(object):
path
=
'/oe/name/{pk}'
.
format
(
pk
=
pk
)
return
self
.
get
(
path
)
def
get_oe_groups
(
self
,
pk
,
pk_only
=
False
,
ad_details
=
Fals
e
):
def
get_oe_groups
(
self
,
pk
,
pk_only
=
False
,
ad_details
=
Tru
e
):
path
=
'/groups/{pk}'
.
format
(
pk
=
pk
)
if
ad_details
:
path
+=
"?addAdDetails=true"
...
...
kitgvapi/models.py
View file @
694963dc
...
...
@@ -105,7 +105,7 @@ class Oe(Model):
def
_save_data_attribs
(
self
):
raise
NotImplementedError
(
'Not supported'
)
def
get_groups
(
self
,
ad_details
=
Fals
e
):
def
get_groups
(
self
,
ad_details
=
Tru
e
):
self
.
load
()
l
=
self
.
client
.
get_oe_groups
(
pk
=
self
.
pk
,
ad_details
=
ad_details
)
for
d
in
l
:
...
...
setup.py
View file @
694963dc
...
...
@@ -14,7 +14,7 @@ def get_license():
setup
(
name
=
'python-kitgvapi'
,
version
=
'1.3.
1
'
,
version
=
'1.3.
2
'
,
description
=
'Library for accessing the KIT Gruppenverwaltung REST API'
,
long_description
=
get_readme
(),
author
=
'Jens Kleineheismann'
,
...
...
Write
Preview
Markdown
is supported
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