← Back to team overview

launchpad-dev team mailing list archive

Re: New services infrastructure

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12-03-01 02:43 AM, Ian Booth wrote:
> Our standard lazr.restful library is used, but we are not
> attaching service methods to domain objects which I believe is the
> wrong approach.

+1

> 2. launchpadlib api
> 
> from launchpadlib.launchpad import Launchpad lp =
> Launchpad.login_with('testing', version='devel') # Launchpadlib
> can't do relative url's service = self.launchpad.load( 
> '%s/+services/accesspolicy' % self.launchpad._root_uri) 
> service.addPillarObserver(....)

I hope that eventually, we'll be able to access this more cleanly.
Say, as self.launchpad.services.accesspolicy

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9Pk4cACgkQ0F+nu1YWqI0VpwCfa2DX/PaGK3ijxq7oTf+2W6t+
cLMAni1m5IZvz0u4dN46d4K9IuJi9f81
=FwYy
-----END PGP SIGNATURE-----


Follow ups

References