~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" />
14583.1.7 by Curtis Hovey
Moved webservice zcml to lp.services.webservice.
15
    <include package="grokcore.component" file="meta.zcml" />
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
16
    <include package="canonical.launchpad" file="permissions.zcml" />
17
    <include package="canonical.launchpad.webapp" file="meta.zcml" />
8122.4.3 by Leonard Richardson
Almost all the conversion is done.
18
    <include package="lazr.restful" file="meta.zcml" />
7864.2.1 by Leonard Richardson
Started using lazr.uri instead of the built-in uri library.
19
    <include package="lazr.uri" />
14583.1.9 by Curtis Hovey
Removed c.l interfaces and zcml.
20
    <include package="lp" />
1628 by Canonical.com Patch Queue Manager
Configuration, Librian and Librarian test harness work
21
    <include package="canonical.librarian" />
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
22
23
    <!-- The default Zope 3 configuration of the SimpleComponentTraverser is
24
        that it applies to any object that provides Interface.
25
        This excludes objects that we're using just as instances of classes
26
        without providing any interfaces.
27
        -->
28
    <view
29
        for="*"
30
        type="zope.publisher.interfaces.browser.IBrowserRequest"
31
        provides="zope.publisher.interfaces.browser.IBrowserPublisher"
32
        factory="zope.app.publication.traversers.SimpleComponentTraverser"
33
        permission="zope.Public"
34
        />
9678.4.38 by Barry Warsaw
[r=gary] Restore a ZCML registration that makes our private XMLRPC service work again.
35
    <!-- We don't include zope.app.publication (see zopeapp.zcml in the
36
         top level), so we lose the default registration that makes our
37
         private XMLRPC server work.  Copy that from Zope into here.
38
         -->
39
    <view
40
        for="zope.interface.Interface"
41
        type="zope.publisher.interfaces.xmlrpc.IXMLRPCRequest"
42
        provides="zope.publisher.interfaces.xmlrpc.IXMLRPCPublisher"
43
        factory="zope.app.publication.traversers.SimpleComponentTraverser"
44
        permission="zope.Public"
45
        />
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
46
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.
47
    <!-- Protocol errors (eg. HTTP 405 or 415 errors) should be published
48
         with a minimalist template. -->
49
    <browser:page
50
        for="canonical.launchpad.webapp.interfaces.ILaunchpadProtocolError"
51
        class="canonical.launchpad.webapp.error.ProtocolErrorView"
13130.1.10 by Curtis Hovey
Moved templates to the packages that use them.
52
        template="launchpad/webapp/templates/protocol-error.pt"
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.
53
        name="index.html"
54
        permission="zope.Public"
55
        />
56
57
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
58
    <!-- The following directives set up root front pages for the different
59
         virtual host layers.  The directives come in pairs.
6574.1.5 by Francis J. Lacoste
Replace zope resources by LaunchpadImageFolder.
60
         The separate registration for the resources namespace (@@) is needed
6574.1.9 by Francis J. Lacoste
Review comments.
61
         because otherwise the lookup for /@@/ will fail because the
11118.1.1 by Brad Crittenden
Register new salesforce zcml for production
62
         layer-specific defaultView directive also registers the
6574.1.9 by Francis J. Lacoste
Review comments.
63
         default view name as an unnamed adapter.
6574.1.5 by Francis J. Lacoste
Replace zope resources by LaunchpadImageFolder.
64
         -->
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.
65
      -->
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
66
    <!-- 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.
67
    <browser:defaultView
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
68
        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.
69
        name="specs"
11128.6.7 by Michael Hudson
whoops
70
        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.
71
        />
72
    <browser:page
73
        name=""
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
74
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
13130.1.1 by Curtis Hovey
Moved launchpad.py to lp.app.browser
75
        class="lp.app.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.
76
        permission="zope.Public"
11128.6.7 by Michael Hudson
whoops
77
        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.
78
        />
79
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
80
    <!-- virtual host: code -->
3618.1.49 by Steve Alexander
various small refactorings, change features.launchpad.dev to blueprint.launchpad.dev, implement code.launchpad.dev
81
    <browser:defaultView
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
82
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
3691.267.33 by Stuart Bishop
Fix default view names
83
        name="+code"
11128.5.4 by Michael Hudson
sed out the layer references in the zcml
84
        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
85
        />
86
    <browser:page
87
        name=""
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
88
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
13130.1.1 by Curtis Hovey
Moved launchpad.py to lp.app.browser
89
        class="lp.app.browser.launchpad.LaunchpadImageFolder"
3618.1.49 by Steve Alexander
various small refactorings, change features.launchpad.dev to blueprint.launchpad.dev, implement code.launchpad.dev
90
        permission="zope.Public"
11128.5.4 by Michael Hudson
sed out the layer references in the zcml
91
        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
92
        />
93
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
94
    <!-- virtual host: translations -->
95
    <browser:defaultView
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
96
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
3691.267.33 by Stuart Bishop
Fix default view names
97
        name="translations"
11128.6.7 by Michael Hudson
whoops
98
        layer="lp.translations.publisher.TranslationsLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
99
        />
100
    <browser:page
101
        name=""
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
102
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
13130.1.1 by Curtis Hovey
Moved launchpad.py to lp.app.browser
103
        class="lp.app.browser.launchpad.LaunchpadImageFolder"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
104
        permission="zope.Public"
11128.6.7 by Michael Hudson
whoops
105
        layer="lp.translations.publisher.TranslationsLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
106
        />
107
108
    <!-- virtual host: bugs -->
109
    <browser:defaultView
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
110
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
3691.267.33 by Stuart Bishop
Fix default view names
111
        name="bugs"
11128.6.7 by Michael Hudson
whoops
112
        layer="lp.bugs.publisher.BugsLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
113
        />
114
    <browser:page
115
        name=""
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
116
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
13130.1.1 by Curtis Hovey
Moved launchpad.py to lp.app.browser
117
        class="lp.app.browser.launchpad.LaunchpadImageFolder"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
118
        permission="zope.Public"
11128.6.7 by Michael Hudson
whoops
119
        layer="lp.bugs.publisher.BugsLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
120
        />
121
122
    <!-- virtual host: answers -->
123
    <browser:defaultView
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
124
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
3859.4.3 by Francis J. Lacoste
Rename URLs of the Answer Tracker containging ticket or support-contact.
125
        name="questions"
11128.6.7 by Michael Hudson
whoops
126
        layer="lp.answers.publisher.AnswersLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
127
        />
128
    <browser:page
129
        name=""
10409.5.53 by Curtis Hovey
Removed shim imports from webapp.
130
        for="canonical.launchpad.webapp.interfaces.ILaunchpadRoot"
13130.1.1 by Curtis Hovey
Moved launchpad.py to lp.app.browser
131
        class="lp.app.browser.launchpad.LaunchpadImageFolder"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
132
        permission="zope.Public"
11128.6.7 by Michael Hudson
whoops
133
        layer="lp.answers.publisher.AnswersLayer"
3618.1.50 by Steve Alexander
implement all vhosts, update main template presentation of vhosts
134
        />
3618.1.49 by Steve Alexander
various small refactorings, change features.launchpad.dev to blueprint.launchpad.dev, implement code.launchpad.dev
135
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
136
    <include package="canonical.launchpad" />
4616.1.2 by Tim Penhey
Add lazr to canonical/configure.zcml
137
    <include package="canonical.lazr" />
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
138
139
</configure>