Import and PEP8 cleanups

This commit is contained in:
Roberto Rosario
2012-07-26 22:42:36 -04:00
parent 24bf20b9d7
commit eecf7c7751
69 changed files with 173 additions and 253 deletions

View File

@@ -1,14 +1,10 @@
from __future__ import absolute_import
from django.utils.translation import ugettext_lazy as _
from navigation.api import bind_links, Link
from navigation.api import bind_links
from project_setup.api import register_setup
from hkp import Key as KeyServerKey
from .api import Key
from .permissions import (PERMISSION_KEY_VIEW, PERMISSION_KEY_DELETE,
PERMISSION_KEYSERVER_QUERY, PERMISSION_KEY_RECEIVE)
from .links import (private_keys, public_keys, key_delete, key_query,
key_receive, key_setup)

View File

@@ -325,7 +325,7 @@ class GPG(object):
# Delete secret keys first
for key in Key.get_all(self, secret=True):
self.delete_key(key)
# Delete public keys
for key in Key.get_all(self, secret=False):
self.delete_key(key)

View File

@@ -13,7 +13,7 @@ from common.utils import encapsulate
from .api import Key
from .runtime import gpg
from .exceptions import KeyFetchingError, KeyImportError
from .exceptions import KeyImportError
from .forms import KeySearchForm
from .permissions import (PERMISSION_KEY_VIEW, PERMISSION_KEY_DELETE,
PERMISSION_KEYSERVER_QUERY, PERMISSION_KEY_RECEIVE)