~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/blueprints/model/specificationbug.py

Fix lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
__all__ = ['SpecificationBug']
9
9
 
10
 
from lazr.restful.interfaces import IJSONPublishable
11
10
from sqlobject import ForeignKey
12
11
from zope.interface import implements
13
12
 
18
17
class SpecificationBug(SQLBase):
19
18
    """A link between a spec and a bug."""
20
19
 
21
 
    implements(ISpecificationBug, IJSONPublishable)
 
20
    implements(ISpecificationBug)
22
21
 
23
22
    _table = 'SpecificationBug'
24
23
    specification = ForeignKey(dbName='specification',
31
30
        """See IBugLink."""
32
31
        return self.specification
33
32
 
34
 
    def toDataForJSON(self, media_type):
35
 
        """See IJSONPublishable.
36
 
 
37
 
        These objects have no JSON representation.
38
 
        """
39
 
        return None