From: "Brian Dolbec" <brian.dolbec@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys-ldap/gkeyldap/
Date: Thu, 25 Dec 2014 20:43:09 +0000 (UTC) [thread overview]
Message-ID: <1419534810.a1680becd7e3cd1599a23d23a609df681760f76c.dol-sen@gentoo> (raw)
commit: a1680becd7e3cd1599a23d23a609df681760f76c
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 25 19:13:30 2014 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Thu Dec 25 19:13:30 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=a1680bec
gkeys-ldap/actions.py: Update self.output for the CliBase function
---
gkeys-ldap/gkeyldap/actions.py | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/gkeys-ldap/gkeyldap/actions.py b/gkeys-ldap/gkeyldap/actions.py
index c0f891f..ee06673 100644
--- a/gkeys-ldap/gkeyldap/actions.py
+++ b/gkeys-ldap/gkeyldap/actions.py
@@ -58,17 +58,17 @@ class Actions(object):
def ldapsearch(self, args):
l = LdapSearch(logger=self.logger)
self.logger.debug("MAIN: _action_ldapsearch; args = %s" % str(args))
- self.output("Search... Establishing connection\n")
+ self.output('', "Search... Establishing connection\n")
if not l.status:
- self.output("Aborting Search... Connection failed")
+ self.output('', "Aborting Search... Connection failed")
return False
attr, target, search_field = self.get_args(args)
results = l.search(target, search_field)
devs = l.result2dict(results, gkey2ldap[attr])
for dev in sorted(devs):
- self.output(dev, devs[dev])
- self.output("============================================")
- self.output("Total number of developers in results:", len(devs))
+ self.output('', dev, devs[dev])
+ self.output('', "============================================")
+ self.output('', "Total number of developers in results:", len(devs))
self.logger.info("============================================")
self.logger.info("Total number of developers in results: %d" % len(devs))
return True
@@ -77,9 +77,9 @@ class Actions(object):
def updateseeds(self, args):
l = LdapSearch(logger=self.logger)
self.logger.debug("MAIN: _action_updateseeds; args = %s" % str(args))
- self.output("Search... Establishing connection")
+ self.output('', "Search... Establishing connection")
if not l.status:
- self.output("Aborting update... Connection failed")
+ self.output('', "Aborting update... Connection failed")
return False
results = l.search('*', UID)
info = l.result2dict(results, 'uid')
@@ -92,17 +92,17 @@ class Actions(object):
if not self.create_seedfile(info, filename):
self.logger.error("Developer seed file update failure: "
"Original seed file is intact & untouched.")
- self.output("Backing up existing file...")
+ self.output('', "Backing up existing file...")
status = updatefiles(self.config, self.logger)
if not status:
- self.output("Develope seed failed to update!")
+ self.output('', "Develope seed failed to update!")
return False
- self.output("Developer seed file updated!")
+ self.output('', "Developer seed file updated!")
return True
def create_seedfile(self, devs, filename):
- self.output("Creating seeds from LDAP data...")
+ self.output('', "Creating seeds from LDAP data...")
self.seeds = Seeds(filename, self.config)
count = 0
error_count = 0
@@ -117,9 +117,9 @@ class Actions(object):
count += 1
else:
error_count += 1
- self.output("Total number of seeds created:", count)
- self.output("Seeds created... Saving file: %s" % filename)
- self.output("Total number of Dev's with GPG errors:", error_count)
+ self.output('', "Total number of seeds created:", count)
+ self.output('', "Seeds created... Saving file: %s" % filename)
+ self.output('', "Total number of Dev's with GPG errors:", error_count)
self.logger.info("Total number of seeds created: %d" % count)
self.logger.info("Seeds created... Saving file: %s" % filename)
self.logger.info("Total number of Dev's with GPG errors: %d" % error_count)
next reply other threads:[~2014-12-25 20:43 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-25 20:43 Brian Dolbec [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-07-07 14:05 [gentoo-commits] proj/gentoo-keys:master commit in: gkeys-ldap/gkeyldap/ Brian Dolbec
2016-12-23 19:55 Brian Dolbec
2015-05-31 5:03 Brian Dolbec
2015-03-24 3:13 Brian Dolbec
2015-03-17 19:51 Brian Dolbec
2015-02-11 17:37 Brian Dolbec
2015-01-05 23:12 Brian Dolbec
2015-01-05 23:12 Brian Dolbec
2015-01-05 23:12 Brian Dolbec
2015-01-05 23:12 Brian Dolbec
2014-12-26 18:37 Brian Dolbec
2014-12-25 20:43 Brian Dolbec
2014-12-25 20:43 Brian Dolbec
2014-12-25 20:43 Brian Dolbec
2014-12-25 20:43 Brian Dolbec
2014-12-25 20:43 Brian Dolbec
2014-12-25 20:43 Brian Dolbec
2014-12-22 23:11 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=1419534810.a1680becd7e3cd1599a23d23a609df681760f76c.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