~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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:meta="http://namespaces.zope.org/meta"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    xmlns:apidoc="http://namespaces.zope.org/apidoc"
    i18n_domain="canonical">

    <!-- These packages/declarations are required by apidoc. If they are
      deemed generally useful, move them to zopeapp.zcml -->

    <browser:menu
        id="zmi_views"
        title="Views"
        description="Menu for displaying alternate representations of an object"
        />
    <browser:menu
        id="zmi_actions"
        title="Actions"
        description="Menu for displaying actions to be performed"
        />

    <!-- Use the default IAbsoluteURL adapter for requests on the apidoc
         vhost. -->
    <adapter
        for="zope.interface.Interface
             lp.services.webapp.servers.APIDocBrowserRequest"
        provides="zope.traversing.browser.interfaces.IAbsoluteURL"
        factory="zope.traversing.browser.AbsoluteURL"
        />

    <view
      for="zope.container.interfaces.IReadContainer"
      type="zope.publisher.interfaces.http.IHTTPRequest"
      provides="zope.publisher.interfaces.IPublishTraverse"
      factory="zope.container.traversal.ContainerTraverser"
      permission="zope.Public"
      allowed_interface="zope.publisher.interfaces.IPublishTraverse"
      />

    <utility
        component="lp.systemhomes.apidocroot"
        provides="lp.services.webapp.interfaces.IAPIDocRoot" />

    <adapter factory="lp.services.webapp.authentication.TemporaryPrincipalAnnotations" />
    <adapter
      factory="lp.services.webapp.authentication.TemporaryUnauthenticatedPrincipalAnnotations" />

    <class class="lp.services.webapp.servers.LaunchpadBrowserRequest">
      <implements interface="zope.app.apidoc.browser.skin.APIDOC" />
    </class>

    <!-- apidoc.lp.dev breaks if we make IAPIDocRoot subclass ISite, so we
      need to register this view here. -->
    <view
        for="lp.services.webapp.interfaces.IAPIDocRoot"
        type="zope.publisher.interfaces.browser.IDefaultBrowserLayer"
        name=""
        factory="zope.browserresource.resources.Resources"
        permission="zope.Public"
        allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
        />

    <browser:defaultView
        for="lp.services.webapp.interfaces.IAPIDocRoot"
        name="++apidoc++"
        />

    <!-- Turn on devmode for the following includes to work -->
    <meta:provides feature="devmode" />

    <include package="zope.app.preference" file="meta.zcml" />
    <include package="zope.app.apidoc.codemodule" file="meta.zcml" />
    <include package="zope.app.apidoc.bookmodule" file="meta.zcml" />
    <include package="zope.app.onlinehelp" file="meta.zcml" />

    <include package="zope.app.apidoc" />
    <include package="zope.app.applicationcontrol" />
    <include package="zope.app.onlinehelp" />
    <include package="zope.app.preference" />
    <include package="zope.app.renderer" />
    <include package="zope.app.tree" />
    <include package="zope.location" />

    <apidoc:rootModule module="canonical" />
    <apidoc:rootModule module="lp" />
    <apidoc:rootModule module="lazr" />
    <apidoc:rootModule module="zc" />
    <apidoc:rootModule module="wadllib" />
    <apidoc:rootModule module="martian" />
    <apidoc:rootModule module="manuel" />
    <apidoc:rootModule module="chameleon" />
    <apidoc:rootModule module="storm" />

    <apidoc:bookchapter
        id="lp"
        title="Launchpad"
        />
    <apidoc:bookchapter
        id="dbpolicy"
        title="Storm Stores and Database Policies"
        doc_path="../../lib/lp/services/database/doc/db-policy.txt"
        parent="lp"
        />
    <apidoc:bookchapter
        id="memcachetales"
        title="Memcache Tales Expressions"
        doc_path="../../lib/lp/services/memcache/doc/tales-cache.txt"
        parent="lp"
        />
    <apidoc:bookchapter
        id="sprites"
        title="Image Sprites"
        doc_path="../../lib/lp/services/doc/sprites.txt"
        parent="lp"
        />
    <apidoc:bookchapter
        id="buildout"
        title="Buildout"
        doc_path="../../doc/buildout.txt"
        parent="lp"
        />
    <apidoc:bookchapter
        id="profiling"
        title="Profiling"
        doc_path="../../lib/lp/services/profile/profiling.txt"
        parent="lp"
        />

</configure>