~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/doc/object-privacy.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-31 00:26:32 UTC
  • mfrom: (14606.4.19 apocaremains-2)
  • Revision ID: launchpad@pqm.canonical.com-20111231002632-67fafhhz150cct3b
[r=wgrant][no-qa] Explode canonical.lazr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
To tell whether or not an object is private we adapt it into an
9
9
IObjectPrivacy and check its is_private attribute.
10
10
 
11
 
    >>> from canonical.lazr.interfaces import IObjectPrivacy
 
11
    >>> from lp.services.privacy.interfaces import IObjectPrivacy
12
12
    >>> from lp.answers.interfaces.questioncollection import IQuestionSet
13
13
    >>> from lp.bugs.interfaces.bug import IBugSet
14
14
    >>> from lp.registry.interfaces.person import IPersonSet