Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Лошкарев Сергей Алексеевич
PS page generation
Commits
b13beee3
Commit
b13beee3
authored
3 years ago
by
Лошкарев Сергей Алексеевич
Browse files
Options
Download
Patches
Plain Diff
Add doc strings
parent
320edf36
master
1.0
1 merge request
!1
Create get_from_tagia module
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
get_from_tagia.py
+15
-1
get_from_tagia.py
with
15 additions
and
1 deletion
+15
-1
get_from_tagia.py
+
15
−
1
View file @
b13beee3
'''
Module for getting infromation from taiga
'''
from
taiga
import
TaigaAPI
from
taiga.models.models
import
User
class
Person
():
'''
Person class for describing informatron about users to page writer
'''
def
__init__
(
self
,
member
,
user
)
->
(
None
):
'''
Constructor to Person object
'''
self
.
full_name
=
user
.
full_name
self
.
username
=
user
.
username
self
.
photo
=
user
.
big_photo
...
...
@@ -11,6 +21,10 @@ class Person():
self
.
role_name
=
member
.
role_name
[
0
],
def
get_users_from_taiga
(
host
,
username
,
password
,
project_slug
):
'''
function for connecting to taiga at host, with username and password
and getting information about users from project by project_slug
'''
api
=
TaigaAPI
(
host
=
host
)
api
.
auth
(
username
,
password
)
members
=
api
.
projects
.
get_by_slug
(
project_slug
).
list_memberships
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets