Commit 6c393877 by Dudás Ádám

one: enforcing guidelines

parent 059a0c45
...@@ -19,7 +19,7 @@ def reload_firewall(request): ...@@ -19,7 +19,7 @@ def reload_firewall(request):
if request.user.is_authenticated(): if request.user.is_authenticated():
if request.user.is_superuser: if request.user.is_superuser:
html = ((_("Dear %s, you've signed in as administrator!") % html = ((_("Dear %s, you've signed in as administrator!") %
request.user.username) + "<br>" + request.user.username) + "<br />" +
_("Reloading in 10 seconds...")) _("Reloading in 10 seconds..."))
ReloadTask.delay() ReloadTask.delay()
else: else:
......
...@@ -30,5 +30,3 @@ def keygen(length=1024): ...@@ -30,5 +30,3 @@ def keygen(length=1024):
pub = 'ssh-rsa %s' % ( pub = 'ssh-rsa %s' % (
base64.b64encode(base64.b16decode(ssh_rsa.upper())), ) base64.b64encode(base64.b16decode(ssh_rsa.upper())), )
return key.exportKey(), "%s %s" % (pub, "cloud-%s" % date.today()) return key.exportKey(), "%s %s" % (pub, "cloud-%s" % date.today())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment