~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/stories/webservice/xx-builds.txt

Mass renaming of imports and references to IBuild/Build/IBuildSet

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
    >>> login('foo.bar@canonical.com')
65
65
 
66
66
    >>> from zope.component import getUtility
67
 
    >>> from lp.soyuz.interfaces.build import IBuildSet
 
67
    >>> from lp.soyuz.interfaces.binarypackagebuild import (
 
68
    ...     IBinaryPackageBuildSet)
68
69
 
69
 
    >>> build = getUtility(IBuildSet).getByBuildID(26)
 
70
    >>> build = getUtility(IBinaryPackageBuildSet).getByBuildID(26)
70
71
    >>> build.upload_log = build.buildlog
71
72
 
72
73
    >>> logout()
73
74
 
74
 
IBuild 'build_log_url' and 'upload_log_url' are webapp URLs, relative
75
 
to the build itself. This way API users can access private files
76
 
(stored in the restricted librarian) directly because they will be
77
 
proxied by the webapp.
 
75
IBinaryPackageBuild 'build_log_url' and 'upload_log_url' are webapp
 
76
URLs, relative to the build itself. This way API users can access
 
77
private files (stored in the restricted librarian) directly because they
 
78
will be proxied by the webapp.
78
79
 
79
80
    >>> builds = webservice.named_get(
80
81
    ...     source_pub['self_link'], 'getBuilds').jsonBody()