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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
4380b8d9
authored
Feb 28, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: add success indication to key add
parent
4dd3ffd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
one/views.py
+6
-2
No files found.
one/views.py
View file @
4380b8d9
...
@@ -478,9 +478,13 @@ def key_add(request):
...
@@ -478,9 +478,13 @@ def key_add(request):
key
.
save
()
key
.
save
()
_update_keys
(
request
.
user
)
_update_keys
(
request
.
user
)
except
ValidationError
as
e
:
except
ValidationError
as
e
:
messages
.
error
(
request
,
''
.
join
(
e
.
messages
))
for
m
in
e
.
messages
:
messages
.
error
(
request
,
m
)
except
:
except
:
messages
.
error
(
request
,
_
(
'Failed to add public key'
))
messages
.
error
(
request
,
_
(
'Failed to add public key.'
))
else
:
messages
.
successfully
(
request
,
_
(
'Public key successfully added.'
))
return
redirect
(
'/'
)
return
redirect
(
'/'
)
@login_required
@login_required
...
...
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