~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/interfaces/hasrecipes.py

  • Committer: Steve Kowalik
  • Date: 2011-08-07 04:05:52 UTC
  • mto: This revision was merged to the branch mainline in revision 13626.
  • Revision ID: stevenk@ubuntu.com-20110807040552-mwnxo0flmhvl35e8
Correct the notification based on review comments, and remove request{,ed}
from the function names, switching to create{,d}.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2010-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2010 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""Interface definitions for IHasRecipes."""
9
9
    ]
10
10
 
11
11
 
12
 
from lazr.lifecycle.snapshot import doNotSnapshot
 
12
from zope.interface import (
 
13
    Interface,
 
14
    )
 
15
 
13
16
from lazr.restful.declarations import exported
14
17
from lazr.restful.fields import (
15
18
    CollectionField,
16
19
    Reference,
17
20
    )
18
 
from zope.interface import Interface
19
 
 
20
 
from lp import _
21
 
 
 
21
 
 
22
from canonical.launchpad import _
22
23
 
23
24
class IHasRecipes(Interface):
24
25
    """An object that has recipes."""
25
26
 
26
 
    recipes = exported(doNotSnapshot(
 
27
    recipes = exported(
27
28
        CollectionField(
28
29
            title=_("All recipes associated with the object."),
29
30
            value_type=Reference(schema=Interface),
30
 
            readonly=True)))
 
31
            readonly=True))