arsenal-devel team mailing list archive
-
arsenal-devel team
-
Mailing list archive
-
Message #00037
patch for running on lucid
I had to make a couple of minor changes to get the
arsenal_lib.py to work on Lucid. I've attached the
patch.
Brad
--
Brad Figg brad.figg@xxxxxxxxxxxxx http://www.canonical.com
=== modified file 'scripts/arsenal_lib.py'
--- scripts/arsenal_lib.py 2010-03-31 06:36:34 +0000
+++ scripts/arsenal_lib.py 2010-04-01 19:26:05 +0000
@@ -18,11 +18,11 @@
import httplib2
from launchpadlib.credentials import Credentials
-from launchpadlib.launchpad import Launchpad
+from launchpadlib.launchpad import Launchpad, EDGE_SERVICE_ROOT, STAGING_SERVICE_ROOT
from launchpadlib.errors import HTTPError
-#service_root = LPNET_SERVICE_ROOT
-service_root = 'https://api.launchpad.net/beta/'
+service_root = STAGING_SERVICE_ROOT
+#service_root = 'https://api.launchpad.net/beta/'
# TODO: Merge code ideas from other lpl users
# TODO: Remove use of first bugtask for some items
@@ -106,7 +106,7 @@
while tries > 0:
tries -= 1
try:
- self.project = self.launchpad.load(service_root + project)
+ self.project = self.launchpad.load("%s%s" % (self.launchpad._root_uri, project))
tries = 0
except:
print "*** Error: Exception cast loading project",project,"***"
Follow ups