~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/model/person.py

[r=abentley][bug=758920][incr] new methods
        SourcePackage.setPackagingReturnSharingDetailPermissions(),
        Person.canAccess(), Person.canWrite()

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
    )
92
92
from zope.lifecycleevent import ObjectCreatedEvent
93
93
from zope.publisher.interfaces import Unauthorized
 
94
from zope.security.checker import (
 
95
    canAccess,
 
96
    canWrite,
 
97
    )
94
98
from zope.security.proxy import (
95
99
    ProxyFactory,
96
100
    removeSecurityProxy,
2805
2809
            SourcePackageRecipe,
2806
2810
            SourcePackageRecipe.owner == self)
2807
2811
 
 
2812
    def canAccess(self, obj, attribute):
 
2813
        """See `IPerson.`"""
 
2814
        return canAccess(obj, attribute)
 
2815
 
 
2816
    def canWrite(self, obj, attribute):
 
2817
        """See `IPerson.`"""
 
2818
        return canWrite(obj, attribute)
 
2819
 
2808
2820
 
2809
2821
class PersonSet:
2810
2822
    """The set of persons."""