~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/sourcepackagerecipedata.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-02 15:48:28 UTC
  • mfrom: (14513.2.4 builders-timeout-903827)
  • Revision ID: launchpad@pqm.canonical.com-20120102154828-r4echs7u11g99u8b
[r=adeuring][bug=903827] Cache objects prior to displaying builders'
        homepage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
        return branch
142
142
 
143
143
 
144
 
MAX_RECIPE_FORMAT = 0.4
 
144
MAX_RECIPE_FORMAT = 0.3
145
145
 
146
146
 
147
147
class SourcePackageRecipeData(Storm):
160
160
    base_branch = Reference(base_branch_id, 'Branch.id')
161
161
 
162
162
    recipe_format = Unicode(allow_none=False)
163
 
    deb_version_template = Unicode(allow_none=True)
 
163
    deb_version_template = Unicode(allow_none=False)
164
164
    revspec = Unicode(allow_none=True)
165
165
 
166
166
    instructions = ReferenceSet(
306
306
        self._recordInstructions(
307
307
            builder_recipe, parent_insn=None, branch_map=branch_map)
308
308
        self.base_branch = base_branch
309
 
        if builder_recipe.deb_version is None:
310
 
            self.deb_version_template = None
311
 
        else:
312
 
            self.deb_version_template = unicode(builder_recipe.deb_version)
 
309
        self.deb_version_template = unicode(builder_recipe.deb_version)
313
310
        self.recipe_format = unicode(builder_recipe.format)
314
311
 
315
312
    def __init__(self, recipe, sourcepackage_recipe=None,