Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6c393877
authored
Feb 13, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: enforcing guidelines
parent
059a0c45
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
3 deletions
+1
-3
firewall/views.py
+1
-1
one/models.py
+0
-0
one/util.py
+0
-2
No files found.
firewall/views.py
View file @
6c393877
...
...
@@ -19,7 +19,7 @@ def reload_firewall(request):
if
request
.
user
.
is_authenticated
():
if
request
.
user
.
is_superuser
:
html
=
((
_
(
"Dear
%
s, you've signed in as administrator!"
)
%
request
.
user
.
username
)
+
"<br>"
+
request
.
user
.
username
)
+
"<br
/
>"
+
_
(
"Reloading in 10 seconds..."
))
ReloadTask
.
delay
()
else
:
...
...
one/models.py
View file @
6c393877
This diff is collapsed.
Click to expand it.
one/util.py
View file @
6c393877
...
...
@@ -30,5 +30,3 @@ def keygen(length=1024):
pub
=
'ssh-rsa
%
s'
%
(
base64
.
b64encode
(
base64
.
b16decode
(
ssh_rsa
.
upper
())),
)
return
key
.
exportKey
(),
"
%
s
%
s"
%
(
pub
,
"cloud-
%
s"
%
date
.
today
())
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