Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
common-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
protokollsystem
common-web
Commits
b6a8aa25
Commit
b6a8aa25
authored
Mar 29, 2018
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix all_groups from summary
parent
5a65b5df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
auth.py
auth.py
+4
-1
No files found.
auth.py
View file @
b6a8aa25
...
...
@@ -17,6 +17,9 @@ class User:
self
.
obsolete
=
obsolete
self
.
permanent
=
permanent
def
__repr__
(
self
):
return
"<User({})>"
.
format
(
self
.
username
)
def
summarize
(
self
):
return
":"
.
join
((
self
.
username
,
","
.
join
(
self
.
groups
),
","
.
join
(
self
.
all_groups
),
...
...
@@ -33,7 +36,7 @@ class User:
timestamp
=
datetime
.
fromtimestamp
(
float
(
timestamp_str
))
obsolete
=
obsolete_str
==
"True"
groups
=
group_str
.
split
(
","
)
all_groups
=
group_str
.
split
(
","
)
all_groups
=
all_
group_str
.
split
(
","
)
permanent
=
permanent_str
==
"True"
return
User
(
name
,
groups
,
all_groups
,
timestamp
,
obsolete
,
permanent
)
...
...
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