On Mon, 2010-03-22 at 14:09 +0000, Aaron Bentley wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Guilherme Salgado wrote: > >> + @property > >> + def status(self): > >> + """A human-friendly status string.""" > >> + description = { > >> + BuildStatus.NEEDSBUILD: 'Pending build', > >> + BuildStatus.FULLYBUILT: 'Successful build', > >> + BuildStatus.FAILEDTOBUILD: 'Failed to build', > >> + BuildStatus.MANUALDEPWAIT: > >> + 'Could not build because of missing dependencies', > >> + BuildStatus.CHROOTWAIT: > >> + 'Could not build because of chroot issues', > >> + BuildStatus.SUPERSEDED: > >> + 'Could not build because source package was superseded', > >> + BuildStatus.BUILDING: > >> + 'Currently building', > >> + BuildStatus.FAILEDTOUPLOAD: > >> + 'Could not be uploaded correctly', > > > > Would it not make sense to have these strings as the title of the items > > in the BuildStatus enum? > > That's Soyuz code, and I don't want to change it unnecessarily. I don't > know how the existing titles are used, and whether these strings would > make sense in that context. > Being able to use the enum's titles both here and in soyuz code will make for more consistent UI and avoid this extra code, so we all win. Have you checked what the current title is for them? Maybe you could use what's there already? Julian, what do you think? > >> === modified file 'lib/lp/code/model/sourcepackagerecipedata.py' > >> --- lib/lp/code/model/sourcepackagerecipedata.py 2010-02-05 15:07:44 +0000 > >> +++ lib/lp/code/model/sourcepackagerecipedata.py 2010-03-19 14:53:16 +0000 > >> @@ -9,7 +9,7 @@ > >> """ > >> > >> __metaclass__ = type > >> -__all__ = ['_SourcePackageRecipeData'] > >> +__all__ = ['SourcePackageRecipeData'] > > > > Why did you rename it? > > It has become part of the public API, no longer an implementation > detail, because it manages data that is useful to address directly. > Ok. > >> from bzrlib.plugins.builder.recipe import ( > >> BaseRecipeBranch, MergeInstruction, NestInstruction, RecipeBranch) > >> @@ -50,6 +50,7 @@ > >> > >> def __init__(self, name, type, comment, line_number, branch, revspec, > >> directory, recipe_data, parent_instruction): > >> + super( _SourcePackageRecipeDataInstruction, self).__init__() > > > > Is there a whitespace preceding the class name above? > > There was. Gone now. > > >> +