~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/browser/livefs.py

[r=wgrant][bug=1832477] Allow configuring the binary file retention
 period of a LiveFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2014-2018 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2014-2019 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""LiveFS views."""
181
181
        'name',
182
182
        'require_virtualized',
183
183
        'relative_build_score',
 
184
        'keep_binary_files_days',
184
185
        ])
185
186
    distro_series = Choice(
186
187
        vocabulary='BuildableDistroSeries', title=u'Distribution series')
282
283
 
283
284
    label = title
284
285
 
285
 
    field_names = ['require_virtualized', 'relative_build_score']
 
286
    field_names = [
 
287
        'require_virtualized',
 
288
        'relative_build_score',
 
289
        'keep_binary_files_days',
 
290
        ]
286
291
 
287
292
    @property
288
293
    def initial_values(self):
289
294
        return {
290
295
            'require_virtualized': self.context.require_virtualized,
291
296
            'relative_build_score': self.context.relative_build_score,
 
297
            'keep_binary_files_days': self.context.keep_binary_files_days,
292
298
            }
293
299
 
294
300