~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to zcml/override-includes/ws-marshaller-configure.zcml

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-05 14:31:38 UTC
  • mfrom: (13316.10.21 bug-740208-obfuscate-ws)
  • Revision ID: launchpad@pqm.canonical.com-20110705143138-yd0hdrvbeslquzfm
[r=deryck][bug=740208] obfuscated email addresses for anonymous
 webservice requests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
 
b'\\ No newline at end of file'