~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/browser/sourcepackagerecipebuild.py

  • Committer: Francis J. Lacoste
  • Date: 2011-12-06 20:10:56 UTC
  • mfrom: (14448 devel)
  • mto: This revision was merged to the branch mainline in revision 14474.
  • Revision ID: francis.lacoste@canonical.com-20111206201056-jk8q5euywtd4vqk7
Merge devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    action,
30
30
    LaunchpadFormView,
31
31
    )
32
 
from lp.app.browser.tales import CustomizableFormatter
33
32
from lp.buildmaster.enums import BuildStatus
34
33
from lp.code.interfaces.sourcepackagerecipebuild import (
35
34
    ISourcePackageRecipeBuild,
45
44
    BuildStatus.FAILEDTOUPLOAD,)
46
45
 
47
46
 
48
 
class SourcePackageRecipeBuildFormatterAPI(CustomizableFormatter):
49
 
    """Adapter providing fmt support for ISourcePackageRecipeBuild objects."""
50
 
 
51
 
    _link_summary_template = '%(title)s [%(owner)s/%(archive)s]'
52
 
 
53
 
    def _link_summary_values(self):
54
 
        return {'title': self._context.title,
55
 
                'owner': self._context.archive.owner.name,
56
 
                'archive': self._context.archive.name}
57
 
 
58
 
 
59
47
class SourcePackageRecipeBuildNavigation(Navigation, FileNavigationMixin):
60
48
 
61
49
    usedfor = ISourcePackageRecipeBuild