From: "Brian Dolbec" <brian.dolbec@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeyldap/, gkeys/
Date: Sun, 17 Nov 2013 07:39:37 +0000 (UTC) [thread overview]
Message-ID: <1384631489.c308f253c89740eca7e792b4cd78dc9cb43f7151.dol-sen@gentoo> (raw)
commit: c308f253c89740eca7e792b4cd78dc9cb43f7151
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 16 19:51:29 2013 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Sat Nov 16 19:51:29 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=c308f253
Move KEY_LEN to config.
---
gkeyldap/actions.py | 13 +++----------
gkeys/config.py | 6 ++++++
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/gkeyldap/actions.py b/gkeyldap/actions.py
index 13e67f7..2c65a90 100644
--- a/gkeyldap/actions.py
+++ b/gkeyldap/actions.py
@@ -13,18 +13,11 @@
import os
import re
-from gkeys.config import GKEY, KEYID, LONGKEYID, FINGERPRINT
+from gkeys.config import GKEY, KEYID, LONGKEYID, FINGERPRINT, KEY_LEN
from gkeys.seed import Seeds
from gkeyldap.search import (LdapSearch, UID, gkey2ldap_map, gkey2SEARCH)
-# set some defaults
-KEY_LEN = {
- 'keyid': 8,
- 'longkeyid': 16,
-}
-
-
Avialable_Actions = ['ldapsearch', 'updateseeds']
@@ -187,9 +180,9 @@ class Actions(object):
keyinfo = []
keyid_found = False
keyid_missing = False
- # assume it's good until found an error is found
+ # assume it's good until an error is found
is_good = True
- #self.logger.debug("MAIN: build_gkeylist; info = %s" % str(info))
+ #self.logger.debug("Actions: build_gkeylist; info = %s" % str(info))
for x in GKEY._fields:
field = gkey2ldap_map[x]
if not field:
diff --git a/gkeys/config.py b/gkeys/config.py
index 5fe3871..6785c7b 100644
--- a/gkeys/config.py
+++ b/gkeys/config.py
@@ -120,6 +120,12 @@ LONGKEYID = 3
KEYDIR = 4
FINGERPRINT = 5
+# set some defaults
+KEY_LEN = {
+ 'keyid': 8,
+ 'longkeyid': 16,
+}
+
class GKEY(namedtuple('GKEY', ['nick', 'name', 'keyid', 'longkeyid',
'keydir', 'fingerprint'])):
next reply other threads:[~2013-11-17 7:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-17 7:39 Brian Dolbec [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-05-27 20:56 [gentoo-commits] proj/gentoo-keys:master commit in: gkeyldap/, gkeys/ Brian Dolbec
2014-05-27 20:56 Brian Dolbec
2014-05-27 20:56 Brian Dolbec
2014-05-27 20:56 Brian Dolbec
2014-05-27 20:56 Brian Dolbec
2014-03-01 17:49 Pavlos Ratis
2013-11-15 9:16 Brian Dolbec
2013-11-15 9:16 Brian Dolbec
2013-11-10 1:01 Brian Dolbec
2013-06-23 7:13 Brian Dolbec
2013-06-23 7:13 Brian Dolbec
2013-06-23 7:13 Brian Dolbec
2013-06-23 7:13 Brian Dolbec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1384631489.c308f253c89740eca7e792b4cd78dc9cb43f7151.dol-sen@gentoo \
--to=brian.dolbec@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox