From: Brian Dolbec Date: Sat, 22 Jun 2013 01:42:03 +0000 (-0700) Subject: Add keyring parameter to GkeysGPG class X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c37261f1fdca7882af62d551790429c10653b9cc;p=gentoo-keys.git Add keyring parameter to GkeysGPG class --- diff --git a/gkeys/lib.py b/gkeys/lib.py index cb6fb96..bbd126c 100644 --- a/gkeys/lib.py +++ b/gkeys/lib.py @@ -18,19 +18,23 @@ with gentoo-keys specific convienience functions. from pygpg.gpg import GPG +from gkeys.log import logger class GkeysGPG(GPG): '''Gentoo-keys primary gpg class''' - def __init__(self, config): + def __init__(self, config, keyring): '''class init function @param config: GKeysConfig config instance to use + @param keyring: string, the path to the keyring to be used + for all operations. ''' GPG.__init__(self, config) self.config = config + self.keyring = keyring def add_key(self, gkey): @@ -38,6 +42,7 @@ class GkeysGPG(GPG): @param gkey: GKEY namedtuple with (name, keyid/longkeyid, fingerprint) ''' + pass