Comment 4 for bug 562626

Revision history for this message
Leonard Richardson (leonardr) wrote :

Old scripts tend to use launchpad.EDGE_SERVICE_ROOT and launchpad.STAGING_SERVICE_ROOT. These constants are deprecated. Currently they are imported into launchpadlib.launchpad from launchpadlib.uris.

from launchpad.uris import EDGE_SERVICE_ROOT, STAGING_SERVICE_ROOT

Since the whole point of maintaining these constants is to stop old scripts from breaking, we could tack on a hard-coded version number ('1.0', _not_ 'beta').

from launchpad.uris import EDGE_SERVICE_ROOT as _EDGE, STAGING_SERVICE_ROOT as _STAGING
EDGE_SERVICE_ROOT = _EDGE + "1.0"
STAGING_SERVICE_ROOT = _STAGING + "1.0"

This doesn't change the basic facts that 1) load() should be made to support relative URIs and 2) scripts should not be using these constants.