~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Merged rocketfuel into trivial.

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
 
37
40
 
38
41
class ComponentSelection(SQLBase):
39
42
    """See IComponentSelection."""
75
78
            return component
76
79
        return self.new(name)
77
80
 
78
 
 
79
81
    def new(self, name):
80
82
        """See IComponentSet."""
81
83
        return Component(name=name)
82