Mercurial > hg > savane-forge
changeset 143:acd355120a13
Added the action to update the gpg key. There's a way to verify the key?
author | Jonathan Gonzalez V <zeus@gnu.org> |
---|---|
date | Sat, 19 Sep 2009 18:13:03 -0400 |
parents | e8d54cc897ef |
children | 1e6b2e454a0c |
files | src/savane/my/views.py |
diffstat | 1 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/savane/my/views.py +++ b/src/savane/my/views.py @@ -147,13 +147,16 @@ error_msg = 'Cannot added the public key' elif action == 'update_gpg': - pass + if 'gpg_key' in request.POST: + gpg_key = request.POST['gpg_key'] + eu.gpg_key = gpg_key + success_msg = 'GPG Key stored.' + + if eu.gpg_key != '': + gpg_data = dict({'action':'update_gpg', 'gpg_key':eu.gpg_key}) + form_gpg = GPGForm( gpg_data ) else: - if eu.gpg_key != '': - gpg_data = dict({'action':'update_gpg', 'gpg_key':eu.gpg_key}) - form_gpg = GPGForm( gpg_data ) - else: - form_gpg = GPGForm() + form_gpg = GPGForm() keys = eu.sshkey_set.all() if keys is not None: