aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraeroniero33 <justthisthing@gmail.com>2016-06-21 01:40:28 +0000
committerBrian Dolbec <dolsen@gentoo.org>2018-07-06 22:22:09 -0700
commit15cc55ae1795a3ddd2f513caef5866e41ca432a0 (patch)
treee55f5eb8b3beb73618f6080f61ff8b8e5b343997
parentremove debug print (diff)
downloadgentoo-keys-15cc55ae1795a3ddd2f513caef5866e41ca432a0.tar.gz
gentoo-keys-15cc55ae1795a3ddd2f513caef5866e41ca432a0.tar.bz2
gentoo-keys-15cc55ae1795a3ddd2f513caef5866e41ca432a0.zip
Created the send-key function
<rebase edit> use _set_category() for consistency </edit Brian Dolbec>
-rw-r--r--gkeys/gkeys/actions.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py
index 996e41a..e495984 100644
--- a/gkeys/gkeys/actions.py
+++ b/gkeys/gkeys/actions.py
@@ -96,7 +96,7 @@ class Actions(ActionBase):
messages.append("")
messages.append("Fetch operation completed")
return (False not in success, messages)
-
+
def updateseed(self, args):
'''Updates seeds of a selected file or all categories if no args are given'''
self.logger.debug(_unicode("ACTIONS: updateseed; args: %s")
@@ -138,7 +138,7 @@ class Actions(ActionBase):
for gkey in changed_gkeys:
self.output(['', changed_gkeys])
else:
- print("No GKeys were revoked")
+ print("No GKeys were revoked")
print("Added GKeys:")
for gkey in added_gkeys:
self.output(['', added_gkeys])
@@ -254,7 +254,7 @@ class Actions(ActionBase):
self.logger.debug(_unicode("ACTIONS: sendkey; args: %s")
% _unicode(args))
seeds = self.seedhandler.load_category(args.category, refresh=True)
- self.category = args.category
+ self._set_category(args.category)
results = {}
kwargs = self.seedhandler.build_gkeydict(args)
keyresults = seeds.list(**kwargs)
@@ -572,7 +572,7 @@ class Actions(ActionBase):
if args.email in ['expiry']:
uid = ''
if gkey.uid:
- uids = gkey.uid
+ uids = gkey.uid
uid = self.keyhandler.find_email(uids, self.config.get_key('prefered_address'))
self.logger.debug(_unicode('The valid uid is: %s') % uid)
days_limit = int(self.config.get_key('days_limit'))