~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/configure.zcml

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-22 22:01:40 UTC
  • mfrom: (14583.1.25 move-webservice)
  • Revision ID: launchpad@pqm.canonical.com-20111222220140-o53ycgaapjua1dde
[rs=sinzui][bug=907843] Move webservice to lp.services.webservice.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    xmlns:i18n="http://namespaces.zope.org/i18n"
11
11
    i18n_domain="launchpad">
12
12
 
13
 
    <include package="lazr.restful" file="configure.zcml" />
14
 
    <utility
15
 
        factory="canonical.launchpad.rest.configuration.LaunchpadWebServiceConfiguration"
16
 
        provides="lazr.restful.interfaces.IWebServiceConfiguration">
17
 
    </utility>
18
 
 
19
 
    <utility
20
 
        factory="lp.services.memcache.restful.MemcachedStormRepresentationCache"
21
 
        provides="lazr.restful.interfaces.IRepresentationCache">
22
 
    </utility>
23
 
 
24
 
    <securedutility
25
 
        class="canonical.launchpad.systemhomes.WebServiceApplication"
26
 
        provides="lp.services.webservice.interfaces.IWebServiceApplication">
27
 
        <allow
28
 
            interface="lp.services.webservice.interfaces.IWebServiceApplication" />
29
 
        <allow interface='lazr.restful.interfaces.IServiceRootResource' />
30
 
        <allow interface='canonical.launchpad.webapp.interfaces.ICanonicalUrlData' />
31
 
    </securedutility>
32
 
 
33
 
    <!-- Registration for the class that manages an entry's byte
34
 
         storage fields. -->
35
 
    <adapter
36
 
        for="lazr.restful.interfaces.IEntry
37
 
             zope.schema.interfaces.IField"
38
 
        provides="lazr.restful.interfaces.IByteStorage"
39
 
        factory="canonical.launchpad.rest.bytestorage.LibraryBackedByteStorage"
40
 
        />
41
 
 
42
 
    <class class="canonical.launchpad.rest.bytestorage.LibraryBackedByteStorage">
43
 
        <allow interface='lazr.restful.interfaces.IByteStorage' />
44
 
    </class>
45
 
 
46
 
    <!-- WebService uses the default LaunchpadRootNavigation -->
47
 
    <view
48
 
        for="lp.services.webservice.interfaces.IWebServiceApplication"
49
 
        type="canonical.launchpad.layers.WebServiceLayer"
50
 
        factory="lp.app.browser.launchpad.LaunchpadRootNavigation"
51
 
        provides="zope.publisher.interfaces.browser.IBrowserPublisher"
52
 
        />
53
 
 
54
 
    <adapter
55
 
        for="lp.bugs.interfaces.bugmessage.IBugComment
56
 
             lazr.restful.interfaces.IWebServiceClientRequest"
57
 
        provides="lazr.restful.interfaces.IEntry"
58
 
        factory="lp.bugs.adapters.bug.bugcomment_to_entry"
59
 
        />
60
 
 
61
 
   <grok:grok package="lazr.restful.directives" />
62
 
   <grok:grok package="canonical.launchpad.rest" />
63
 
 
64
 
   <webservice:register module="canonical.launchpad.interfaces.webservice" />
65
 
 
66
 
   <adapter
67
 
       for="zope.schema.interfaces.IChoice
68
 
            zope.publisher.interfaces.http.IHTTPRequest
69
 
            canonical.launchpad.webapp.vocabulary.SQLObjectVocabularyBase"
70
 
       provides="lazr.restful.interfaces.IFieldMarshaller"
71
 
       factory="canonical.launchpad.webapp.marshallers.choiceMarshallerError"
72
 
       />
73
 
   <adapter
74
 
       for="lazr.restful.interfaces.IReferenceChoice
75
 
            zope.publisher.interfaces.http.IHTTPRequest
76
 
            canonical.launchpad.webapp.vocabulary.SQLObjectVocabularyBase"
77
 
       provides="lazr.restful.interfaces.IFieldMarshaller"
78
 
       factory="lazr.restful.marshallers.ObjectLookupFieldMarshaller"
79
 
       />
80
 
 
81
 
   <!-- The API documentation -->
82
 
    <browser:page
83
 
      for="canonical.launchpad.webapp.interfaces.ILaunchpadApplication"
84
 
      name="+apidoc"
85
 
      class="lp.app.browser.launchpad.LaunchpadAPIDocFolder"
86
 
      attribute="__call__"
87
 
      permission="zope.Public"
88
 
      />
 
13
    <webservice:register module="lp.patchwebservice" />
 
14
 
 
15
    <include package="lp.services" />
89
16
 
90
17
</configure>