Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b4ed419c
authored
Feb 10, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix multiple warning messages
parent
d00c893d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
circle/dashboard/views.py
+15
-8
No files found.
circle/dashboard/views.py
View file @
b4ed419c
...
@@ -543,14 +543,21 @@ class TemplateAclUpdateView(AclUpdateView):
...
@@ -543,14 +543,21 @@ class TemplateAclUpdateView(AclUpdateView):
logger
.
warning
(
'Tried to set permissions of
%
s by non-owner
%
s.'
,
logger
.
warning
(
'Tried to set permissions of
%
s by non-owner
%
s.'
,
unicode
(
template
),
unicode
(
request
.
user
))
unicode
(
template
),
unicode
(
request
.
user
))
raise
PermissionDenied
()
raise
PermissionDenied
()
self
.
set_levels
(
request
,
template
)
self
.
add_levels
(
request
,
template
)
name
=
request
.
POST
[
'perm-new-name'
]
if
(
User
.
objects
.
filter
(
username
=
name
)
.
count
()
+
post_for_disk
=
request
.
POST
.
copy
()
Group
.
objects
.
filter
(
name
=
name
)
.
count
()
<
1
post_for_disk
[
'perm-new'
]
=
'user'
and
len
(
name
)
>
0
):
request
.
POST
=
post_for_disk
warning
(
request
,
_
(
'User or group "
%
s" not found.'
)
%
name
)
for
d
in
template
.
disks
.
all
():
else
:
self
.
add_levels
(
request
,
d
)
self
.
set_levels
(
request
,
template
)
self
.
add_levels
(
request
,
template
)
post_for_disk
=
request
.
POST
.
copy
()
post_for_disk
[
'perm-new'
]
=
'user'
request
.
POST
=
post_for_disk
for
d
in
template
.
disks
.
all
():
self
.
add_levels
(
request
,
d
)
return
redirect
(
reverse
(
"dashboard.views.template-detail"
,
return
redirect
(
reverse
(
"dashboard.views.template-detail"
,
kwargs
=
self
.
kwargs
))
kwargs
=
self
.
kwargs
))
...
...
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