Add keyring parameter to GkeysGPG class
authorBrian Dolbec <dolsen@gentoo.org>
Sat, 22 Jun 2013 01:42:03 +0000 (18:42 -0700)
committerBrian Dolbec <dolsen@gentoo.org>
Sat, 22 Jun 2013 01:42:03 +0000 (18:42 -0700)
gkeys/lib.py

index cb6fb962739983f9cf1d4302ed951d56d0f8f647..bbd126c98e237c181bfa57361c7e3d62d9ad1565 100644 (file)
@@ -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