1
# Copyright 2009-2010 Canonical Ltd. This software is licensed under the
1
# Copyright 2009-2011 Canonical Ltd. This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
4
# pylint: disable-msg=E0211,E0213,F0401
20
20
from textwrap import dedent
22
from lazr.lifecycle.snapshot import doNotSnapshot
22
23
from lazr.restful.declarations import (
24
25
export_as_webservice_entry,
82
83
deb_version_template = exported(
84
85
title=_('deb-version template'), readonly=True,
86
87
'The template that will be used to generate a deb version.')))
88
89
def getReferencedBranches():
105
106
recipe_text = exported(Text(readonly=True))
107
pending_builds = exported(
108
pending_builds = exported(doNotSnapshot(
109
110
title=_("The pending builds of this recipe."),
110
111
description=_('Pending builds of this recipe, sorted in '
111
112
'descending order of creation.'),
112
113
value_type=Reference(schema=Interface),
115
completed_builds = exported(
116
completed_builds = exported(doNotSnapshot(
117
118
title=_("The completed builds of this recipe."),
118
119
description=_('Completed builds of this recipe, sorted in '
119
120
'descending order of finishing (or starting if not'
120
121
'completed successfully).'),
121
122
value_type=Reference(schema=Interface),
125
builds = exported(doNotSnapshot(
126
127
title=_("All builds of this recipe."),
127
128
description=_('All builds of this recipe, sorted in '
128
129
'descending order of finishing (or starting if not'
129
130
'completed successfully).'),
130
131
value_type=Reference(schema=Interface),
133
134
last_build = exported(