Add SIGNATURES_GPG_HOME configuration option

This commit is contained in:
Roberto Rosario
2012-01-25 02:43:31 -04:00
parent 0e87b5dc56
commit af04f532ad
5 changed files with 20 additions and 5 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
'''
"""
Configuration options for the django_gpg app
'''
"""
from django.utils.translation import ugettext_lazy as _
@@ -11,5 +11,6 @@ register_settings(
module=u'django_gpg.conf.settings',
settings=[
{'name': u'KEYSERVERS', 'global_name': u'SIGNATURES_KEYSERVERS', 'default': ['pool.sks-keyservers.net'], 'description': _(u'List of keyservers to be queried for unknown keys.')},
{'name': u'GPG_HOME', 'global_name': u'SIGNATURES_GPG_HOME', 'default': 'gpg_home', 'description': _(u'Home directory used to store keys as well as configuration files.')},
]
)
+2 -2
View File
@@ -1,4 +1,4 @@
from django_gpg.api import GPG
from django_gpg.conf.settings import KEYSERVERS
from django_gpg.conf.settings import KEYSERVERS, GPG_HOME
gpg = GPG(keyservers=KEYSERVERS)
gpg = GPG(home=GPG_HOME, keyservers=KEYSERVERS)