~launchpad-pqm/launchpad/devel

13405.9.1 by Henning Eggers
Restored r13373.
1
<!-- Copyright 2011 Canonical Ltd.  This software is licensed under the
2
     GNU Affero General Public License version 3 (see the file LICENSE).
3
-->
4
5
<configure xmlns="http://namespaces.zope.org/zope">
6
    <!-- Override lazr-restful marshallers for test field to enable
7
         automatic obfuscation of email addresses for anonymous users. -->
8
9
     <adapter
10
        for="zope.schema.interfaces.IASCII
11
             zope.publisher.interfaces.http.IHTTPRequest"
12
        provides="lazr.restful.interfaces.IFieldMarshaller"
13
        factory="lp.app.webservice.marshallers.TextFieldMarshaller"
14
        />
15
16
    <adapter
17
        for="zope.schema.interfaces.IText
18
             zope.publisher.interfaces.http.IHTTPRequest"
19
        provides="lazr.restful.interfaces.IFieldMarshaller"
20
        factory="lp.app.webservice.marshallers.TextFieldMarshaller"
21
        />
22
23
</configure>