~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/model/component.py

  • Committer: William Grant
  • Date: 2011-05-09 05:16:36 UTC
  • mto: This revision was merged to the branch mainline in revision 13011.
  • Revision ID: william.grant@canonical.com-20110509051636-otvumi0xfgegxr3r
Give Component a sensible repr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
    name = StringCol(notNull=True, alternateID=True)
36
36
 
 
37
    def __repr__(self):
 
38
        return "<%s '%s'>" % (self.__class__.__name__, self.name)
 
39
 
 
40
 
37
41
 
38
42
class ComponentSelection(SQLBase):
39
43
    """See IComponentSelection."""