lp-shell: Use "udt-lp-shell" as LP API consumer instead of the non-unique

"test" (lp: #558531).
This commit is contained in:
Michael Bienia 2010-04-13 18:43:51 +02:00
parent 4ff65ad731
commit 36fd550ab4
3 changed files with 9 additions and 5 deletions

6
debian/changelog vendored
View File

@ -9,7 +9,11 @@ ubuntu-dev-tools (0.98) UNRELEASED; urgency=low
[ Emmet Hikory ]
* doc/mk-sbuild.1: add missing options to summary
-- Emmet Hikory <persia@ubuntu.com> Sun, 11 Apr 2010 17:29:42 +0900
[ Michael Bienia ]
* lp-shell: Use "udt-lp-shell" as LP API consumer instead of the non-unique
"test" (lp: #558531).
-- Michael Bienia <geser@ubuntu.com> Tue, 13 Apr 2010 18:41:36 +0200
ubuntu-dev-tools (0.97) lucid; urgency=low

View File

@ -13,8 +13,8 @@ lp\-shell \- Open an interactive launchpadlib shell.
opens an interactive Python shell with a launchpadlib.Launchpad object "lp"
which is ready for use.
It authenticates against Launchpad with the consumer name "test". When using
\fBlp\-shell\fR with the \fB\-a\fR option it will use the anonymous login
It authenticates against Launchpad with the consumer name "udt-lp-shell". When
using \fBlp\-shell\fR with the \fB\-a\fR option it will use the anonymous login
from launchpadlib.Launchpad.
By default \fBlp\-shell\fR connects to the "\fIedge\fR" Launchpad service

View File

@ -50,11 +50,11 @@ if len(args) >= 2:
print 'I: Falling back to "1.0".'
if options.anonymous:
lp = Launchpad.login_anonymously('test', instance, version=api_version)
lp = Launchpad.login_anonymously('udt-lp-shell', instance, version=api_version)
banner = 'Connected anonymously to LP service "%s" with API version "%s":' % (
instance, api_version)
else:
lp = Launchpad.login_with('test', instance, version=api_version)
lp = Launchpad.login_with('udt-lp-shell', instance, version=api_version)
banner = 'Connected to LP service "%s" with API version "%s":' % (
instance, api_version)