~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!-- Copyright 2009-2010 Canonical Ltd.  This software is licensed under the
     GNU Affero General Public License version 3 (see the file LICENSE).
-->

<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    i18n_domain="launchpad">

    <class class="canonical.launchpad.database.emailaddress.EmailAddress">
        <allow interface="lp.registry.interfaces.role.IHasOwner" />
        <allow attributes="
            id person personID account accountID status rdf_sha1" />
        <require
            permission="launchpad.View"
            attributes="email" />
        <require
            permission="launchpad.Edit"
            set_schema="canonical.launchpad.interfaces.emailaddress.IEmailAddress"
            attributes="destroySelf syncUpdate" />
    </class>

    <securedutility
        class="canonical.launchpad.database.emailaddress.EmailAddressSet"
        provides="canonical.launchpad.interfaces.emailaddress.IEmailAddressSet">
        <allow interface="canonical.launchpad.interfaces.emailaddress.IEmailAddressSet" />
    </securedutility>

    <browser:url
        for="canonical.launchpad.interfaces.emailaddress.IEmailAddress"
        path_expression="string:+email/${email}"
        rootsite="api"
        attribute_to_parent="person" />

</configure>