~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/identity/configure.zcml

  • Committer: Curtis Hovey
  • Date: 2011-12-18 13:56:51 UTC
  • mfrom: (14538.1.3 identity-apocalypse-0)
  • mto: This revision was merged to the branch mainline in revision 14547.
  • Revision ID: curtis.hovey@canonical.com-20111218135651-1xb4j1p47dkb83ws
merged base branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<configure
 
2
    xmlns="http://namespaces.zope.org/zope"
 
3
    xmlns:browser="http://namespaces.zope.org/browser"
 
4
    xmlns:i18n="http://namespaces.zope.org/i18n"
 
5
    xmlns:xmlrpc="http://namespaces.zope.org/xmlrpc"
 
6
    i18n_domain="launchpad">
 
7
    <class
 
8
        class="lp.services.identity.model.emailaddress.EmailAddress">
 
9
        <allow
 
10
            interface="lp.registry.interfaces.role.IHasOwner"/>
 
11
        <allow
 
12
            attributes="
 
13
                id
 
14
                person
 
15
                personID
 
16
                account
 
17
                accountID
 
18
                status
 
19
                rdf_sha1"/>
 
20
        <require
 
21
            permission="launchpad.View"
 
22
            attributes="
 
23
                email"/>
 
24
        <require
 
25
            permission="launchpad.Edit"
 
26
            set_schema="lp.services.identity.interfaces.emailaddress.IEmailAddress"
 
27
            attributes="
 
28
                destroySelf
 
29
                syncUpdate"/>
 
30
    </class>
 
31
 
 
32
    <securedutility
 
33
        class="lp.services.identity.model.emailaddress.EmailAddressSet"
 
34
        provides="lp.services.identity.interfaces.emailaddress.IEmailAddressSet">
 
35
        <allow
 
36
            interface="lp.services.identity.interfaces.emailaddress.IEmailAddressSet"/>
 
37
    </securedutility>
 
38
 
 
39
    <class
 
40
        class="lp.services.identity.model.account.Account">
 
41
        <require
 
42
            permission="zope.Public"
 
43
            interface="lp.services.identity.interfaces.account.IAccountPublic"/>
 
44
        <require
 
45
            permission="launchpad.View"
 
46
            interface="lp.services.identity.interfaces.account.IAccountPrivate"/>
 
47
        <require
 
48
            permission="launchpad.Special"
 
49
            interface="lp.services.identity.interfaces.account.IAccountSpecialRestricted"/>
 
50
        <require
 
51
            permission="launchpad.Moderate"
 
52
            set_attributes="status date_status_set status_comment"/>
 
53
        <require
 
54
            permission="launchpad.Edit"
 
55
            set_attributes="displayname password"/>
 
56
    </class>
 
57
 
 
58
    <securedutility
 
59
        class="lp.services.identity.model.account.AccountSet"
 
60
        provides="lp.services.identity.interfaces.account.IAccountSet">
 
61
        <allow
 
62
            interface="lp.services.identity.interfaces.account.IAccountSet"/>
 
63
    </securedutility>
 
64
 
 
65
    <adapter
 
66
        for="canonical.launchpad.webapp.interfaces.ILaunchpadPrincipal"
 
67
        provides="lp.services.identity.interfaces.account.IAccount"
 
68
        factory="lp.services.identity.adapters.account.accountFromPrincipal"/>
 
69
</configure>