~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • 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
 
<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
 
    xmlns:webservice="http://namespaces.canonical.com/webservice"
7
 
    i18n_domain="launchpad">
8
 
    <class
9
 
        class="lp.services.identity.model.emailaddress.EmailAddress">
10
 
        <allow
11
 
            interface="lp.registry.interfaces.role.IHasOwner"/>
12
 
        <allow
13
 
            attributes="
14
 
                id
15
 
                person
16
 
                personID
17
 
                account
18
 
                accountID
19
 
                status
20
 
                rdf_sha1"/>
21
 
        <require
22
 
            permission="launchpad.View"
23
 
            attributes="
24
 
                email"/>
25
 
        <require
26
 
            permission="launchpad.Edit"
27
 
            set_schema="lp.services.identity.interfaces.emailaddress.IEmailAddress"
28
 
            attributes="
29
 
                destroySelf
30
 
                syncUpdate"/>
31
 
    </class>
32
 
 
33
 
    <securedutility
34
 
        class="lp.services.identity.model.emailaddress.EmailAddressSet"
35
 
        provides="lp.services.identity.interfaces.emailaddress.IEmailAddressSet">
36
 
        <allow
37
 
            interface="lp.services.identity.interfaces.emailaddress.IEmailAddressSet"/>
38
 
    </securedutility>
39
 
 
40
 
    <browser:url
41
 
        for="lp.services.identity.interfaces.emailaddress.IEmailAddress"
42
 
        path_expression="string:+email/${email}"
43
 
        rootsite="api"
44
 
        attribute_to_parent="person" />
45
 
 
46
 
    <class
47
 
        class="lp.services.identity.model.account.Account">
48
 
        <require
49
 
            permission="zope.Public"
50
 
            interface="lp.services.identity.interfaces.account.IAccountPublic"/>
51
 
        <require
52
 
            permission="launchpad.View"
53
 
            interface="lp.services.identity.interfaces.account.IAccountPrivate"/>
54
 
        <require
55
 
            permission="launchpad.Special"
56
 
            interface="lp.services.identity.interfaces.account.IAccountSpecialRestricted"/>
57
 
        <require
58
 
            permission="launchpad.Moderate"
59
 
            set_attributes="status date_status_set status_comment"/>
60
 
        <require
61
 
            permission="launchpad.Edit"
62
 
            set_attributes="displayname password"/>
63
 
    </class>
64
 
 
65
 
    <securedutility
66
 
        class="lp.services.identity.model.account.AccountSet"
67
 
        provides="lp.services.identity.interfaces.account.IAccountSet">
68
 
        <allow
69
 
            interface="lp.services.identity.interfaces.account.IAccountSet"/>
70
 
    </securedutility>
71
 
 
72
 
    <adapter
73
 
        for="lp.services.webapp.interfaces.ILaunchpadPrincipal"
74
 
        provides="lp.services.identity.interfaces.account.IAccount"
75
 
        factory="lp.services.identity.adapters.account.accountFromPrincipal"/>
76
 
 
77
 
    <webservice:register module="lp.services.identity.interfaces.webservice" />
78
 
</configure>