~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/webapp/doc/webapp-authorization.txt

  • Committer: Curtis Hovey
  • Date: 2011-12-24 17:49:30 UTC
  • mto: This revision was merged to the branch mainline in revision 14602.
  • Revision ID: curtis.hovey@canonical.com-20111224174930-xk1d5cvhyxq46ctf
Moved webapp to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
something/required:permission.Name.
8
8
 
9
9
    >>> from zope.component import getUtility
10
 
    >>> from canonical.launchpad.webapp.authorization import check_permission
 
10
    >>> from lp.services.webapp.authorization import check_permission
11
11
    >>> from lp.registry.interfaces.person import IPersonSet
12
12
 
13
13
    >>> personset = getUtility(IPersonSet)
44
44
credentials were given in the request.  A principal with READ_PRIVATE
45
45
access level will be able to read, but not change, anything.
46
46
 
47
 
    >>> from canonical.launchpad.webapp.interaction import (
 
47
    >>> from lp.services.webapp.interaction import (
48
48
    ...     Participation, setupInteraction)
49
 
    >>> from canonical.launchpad.webapp.interfaces import (
 
49
    >>> from lp.services.webapp.interfaces import (
50
50
    ...     AccessLevel, IPlacelessAuthUtility)
51
51
    >>> login('test@canonical.com')
52
52
    >>> principal = getUtility(IPlacelessAuthUtility).getPrincipalByLogin(