14538.1.2
by Curtis Hovey
Moved account and email address to lp.services.identity. |
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"
|
|
14560.2.2
by Curtis Hovey
Moved IEmailAddress webservice to lp.services.identity. |
6 |
xmlns:webservice="http://namespaces.canonical.com/webservice"
|
14538.1.2
by Curtis Hovey
Moved account and email address to lp.services.identity. |
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 |
||
14538.1.5
by Curtis Hovey
Restore emailaddress url. |
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 |
||
14538.1.2
by Curtis Hovey
Moved account and email address to lp.services.identity. |
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 |
|
14600.2.2
by Curtis Hovey
Moved webapp to lp.services. |
73 |
for="lp.services.webapp.interfaces.ILaunchpadPrincipal" |
14538.1.2
by Curtis Hovey
Moved account and email address to lp.services.identity. |
74 |
provides="lp.services.identity.interfaces.account.IAccount" |
75 |
factory="lp.services.identity.adapters.account.accountFromPrincipal"/> |
|
14560.2.2
by Curtis Hovey
Moved IEmailAddress webservice to lp.services.identity. |
76 |
|
77 |
<webservice:register module="lp.services.identity.interfaces.webservice" /> |
|
14538.1.2
by Curtis Hovey
Moved account and email address to lp.services.identity. |
78 |
</configure> |