~launchpad-pqm/launchpad/devel

7675.754.23 by Martin Pool
Construct FeatureController at webapp request start
1
<!-- Copyright 2009, 2010 Canonical Ltd.  This software is licensed under the
8687.15.30 by Karl Fogel
Add the license header block to all .zcml files.
2
     GNU Affero General Public License version 3 (see the file LICENSE).
3
-->
4
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
5
<configure
6
    xmlns="http://namespaces.zope.org/zope"
7
    xmlns:browser="http://namespaces.zope.org/browser"
8805.1.5 by Francis J. Lacoste
Make the initialization of canonical.signon and canonical.shipit conditional
8
    xmlns:zcml="http://namespaces.zope.org/zcml"
1070 by Canonical.com Patch Queue Manager
First i18n patch for Launchpad and removed a duplicated link in a template
9
    xmlns:i18n="http://namespaces.zope.org/i18n"
2237 by Canonical.com Patch Queue Manager
[trivial] Libraraian upstream tweaks, which demonstrate the the feature is broken (?)
10
    i18n_domain="canonical">
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
11
5985.7.5 by Guilherme Salgado
Override zope's permission zcml directive with a custom one which registers an ILaunchpadPermission instead of IPermission.
12
    <includeOverrides
13
        package="canonical.launchpad.webapp"
14
        file="meta-overrides.zcml" />
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
15
    <include package="canonical.launchpad" file="permissions.zcml" />
16
    <include package="canonical.launchpad.webapp" file="meta.zcml" />
8122.4.3 by Leonard Richardson
Almost all the conversion is done.
17
    <include package="lazr.restful" file="meta.zcml" />
11382.6.6 by Gavin Panella
Register adapters in ZCML, and get tests running with the Zope test runner.
18
    <include package="lp.services" />
7864.2.1 by Leonard Richardson
Started using lazr.uri instead of the built-in uri library.
19
    <include package="lazr.uri" />
1628 by Canonical.com Patch Queue Manager
Configuration, Librian and Librarian test harness work
20
    <include package="canonical.librarian" />
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
21
22
    <!-- The default Zope 3 configuration of the SimpleComponentTraverser is
23
        that it applies to any object that provides Interface.
24
        This excludes objects that we're using just as instances of classes
25
        without providing any interfaces.
26
        -->
27
    <view
28
        for="*"
29
        type="zope.publisher.interfaces.browser.IBrowserRequest"
30
        provides="zope.publisher.interfaces.browser.IBrowserPublisher"
31
        factory="zope.app.publication.traversers.SimpleComponentTraverser"
32
        permission="zope.Public"
33
        />
9678.4.38 by Barry Warsaw
[r=gary] Restore a ZCML registration that makes our private XMLRPC service work again.
34
    <!-- We don't include zope.app.publication (see zopeapp.zcml in the
35
         top level), so we lose the default registration that makes our
36
         private XMLRPC server work.  Copy that from Zope into here.
37
         -->
38
    <view
39
        for="zope.interface.Interface"
40
        type="zope.publisher.interfaces.xmlrpc.IXMLRPCRequest"
41
        provides="zope.publisher.interfaces.xmlrpc.IXMLRPCPublisher"
42
        factory="zope.app.publication.traversers.SimpleComponentTraverser"
43
        permission="zope.Public"
44
        />
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
45
5088.2.3 by Leonard Richardson
Added a view for protocol errors so they'll be published as objects instead of being treated as catastrophes.
46
    <!-- Protocol errors (eg. HTTP 405 or 415 errors) should be published
47
         with a minimalist template. -->
48
    <browser:page
49
        for="canonical.launchpad.webapp.interfaces.ILaunchpadProtocolError"
50
        class="canonical.launchpad.webapp.error.ProtocolErrorView"
51
        template="launchpad/templates/protocol-error.pt"
52
        name="index.html"
53
        permission="zope.Public"
54
        />
55
56
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
57
    <!-- The following directives set up root front pages for the different
58
         virtual host layers.  The directives come in pairs.
6574.1.5 by Francis J. Lacoste
Replace zope resources by LaunchpadImageFolder.
59
         The separate registration for the resources namespace (@@) is needed
6574.1.9 by Francis J. Lacoste
Review comments.
60
         because otherwise the lookup for /@@/ will fail because the
11118.1.1 by Brad Crittenden
Register new salesforce zcml for production
61
         layer-specific defaultView directive also registers the
6574.1.9 by Francis J. Lacoste
Review comments.
62
         default view name as an unnamed adapter.
6574.1.5 by Francis J. Lacoste
Replace zope resources by LaunchpadImageFolder.
63
         -->
3691.3.2 by Steve Alexander
set up new host header based virtual hosting, make canonical_url able to be configured with a rootsite, removal of unused IDefaultViewDirective, fix race condition in request publication factory.
64
      -->
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
65
    <!-- virtual host: blueprints -->
3691.3.2 by Steve Alexander
set up new host header based virtual hosting, make canonical_url able to be configured with a rootsite, removal of unused IDefaultViewDirective, fix race condition in request publication factory.
66
    <browser:defaultView
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
67
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
3691.3.2 by Steve Alexander
set up new host header based virtual hosting, make canonical_url able to be configured with a rootsite, removal of unused IDefaultViewDirective, fix race condition in request publication factory.
68
        name="specs"
11128.6.7 by Michael Hudson
whoops
69
        layer="lp.blueprints.publisher.BlueprintsLayer"
3691.3.2 by Steve Alexander
set up new host header based virtual hosting, make canonical_url able to be configured with a rootsite, removal of unused IDefaultViewDirective, fix race condition in request publication factory.
70
        />
71
    <browser:page
72
        name=""
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
73
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
6574.1.5 by Francis J. Lacoste
Replace zope resources by LaunchpadImageFolder.
74
        class="canonical.launchpad.browser.launchpad.LaunchpadImageFolder"
3691.3.2 by Steve Alexander
set up new host header based virtual hosting, make canonical_url able to be configured with a rootsite, removal of unused IDefaultViewDirective, fix race condition in request publication factory.
75
        permission="zope.Public"
11128.6.7 by Michael Hudson
whoops
76
        layer="lp.blueprints.publisher.BlueprintsLayer"
3691.3.2 by Steve Alexander
set up new host header based virtual hosting, make canonical_url able to be configured with a rootsite, removal of unused IDefaultViewDirective, fix race condition in request publication factory.
77
        />
78
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
79
    <!-- virtual host: code -->
3618.1.49 by Steve Alexander
various small refactorings, change features.launchpad.dev to blueprint.launchpad.dev, implement code.launchpad.dev
80
    <browser:defaultView
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
81
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
3691.267.33 by Stuart Bishop
Fix default view names
82
        name="+code"
11128.5.4 by Michael Hudson
sed out the layer references in the zcml
83
        layer="lp.code.publisher.CodeLayer"
3618.1.49 by Steve Alexander
various small refactorings, change features.launchpad.dev to blueprint.launchpad.dev, implement code.launchpad.dev
84
        />
85
    <browser:page
86
        name=""
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
87
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
6574.1.5 by Francis J. Lacoste
Replace zope resources by LaunchpadImageFolder.
88
        class="canonical.launchpad.browser.launchpad.LaunchpadImageFolder"
3618.1.49 by Steve Alexander
various small refactorings, change features.launchpad.dev to blueprint.launchpad.dev, implement code.launchpad.dev
89
        permission="zope.Public"
11128.5.4 by Michael Hudson
sed out the layer references in the zcml
90
        layer="lp.code.publisher.CodeLayer"
3618.1.49 by Steve Alexander
various small refactorings, change features.launchpad.dev to blueprint.launchpad.dev, implement code.launchpad.dev
91
        />
92
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
93
    <!-- virtual host: translations -->
94
    <browser:defaultView
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
95
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
3691.267.33 by Stuart Bishop
Fix default view names
96
        name="translations"
11128.6.7 by Michael Hudson
whoops
97
        layer="lp.translations.publisher.TranslationsLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
98
        />
99
    <browser:page
100
        name=""
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
101
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
6574.1.5 by Francis J. Lacoste
Replace zope resources by LaunchpadImageFolder.
102
        class="canonical.launchpad.browser.launchpad.LaunchpadImageFolder"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
103
        permission="zope.Public"
11128.6.7 by Michael Hudson
whoops
104
        layer="lp.translations.publisher.TranslationsLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
105
        />
106
107
    <!-- virtual host: bugs -->
108
    <browser:defaultView
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
109
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
3691.267.33 by Stuart Bishop
Fix default view names
110
        name="bugs"
11128.6.7 by Michael Hudson
whoops
111
        layer="lp.bugs.publisher.BugsLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
112
        />
113
    <browser:page
114
        name=""
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
115
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
6574.1.5 by Francis J. Lacoste
Replace zope resources by LaunchpadImageFolder.
116
        class="canonical.launchpad.browser.launchpad.LaunchpadImageFolder"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
117
        permission="zope.Public"
11128.6.7 by Michael Hudson
whoops
118
        layer="lp.bugs.publisher.BugsLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
119
        />
120
121
    <!-- virtual host: answers -->
122
    <browser:defaultView
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
123
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
3859.4.3 by Francis J. Lacoste
Rename URLs of the Answer Tracker containging ticket or support-contact.
124
        name="questions"
11128.6.7 by Michael Hudson
whoops
125
        layer="lp.answers.publisher.AnswersLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
126
        />
127
    <browser:page
128
        name=""
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
129
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
6574.1.5 by Francis J. Lacoste
Replace zope resources by LaunchpadImageFolder.
130
        class="canonical.launchpad.browser.launchpad.LaunchpadImageFolder"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
131
        permission="zope.Public"
11128.6.7 by Michael Hudson
whoops
132
        layer="lp.answers.publisher.AnswersLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
133
        />
3618.1.49 by Steve Alexander
various small refactorings, change features.launchpad.dev to blueprint.launchpad.dev, implement code.launchpad.dev
134
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
135
    <include package="canonical.launchpad" />
4616.1.2 by Tim Penhey
Add lazr to canonical/configure.zcml
136
    <include package="canonical.lazr" />
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
137
138
</configure>