~gary/launchpad/use-newer-revision

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
<!-- Copyright 2009 Canonical Ltd.  This software is licensed under the
     GNU Affero General Public License version 3 (see the file LICENSE).
-->

<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    i18n_domain="zope"
    >

  <!-- Meta configuration (new directives) -->
  <include package="zope.app" file="meta.zcml" />
  <includeOverrides package="z3c.ptcompat" file="meta.zcml" />
  <include package="zope.app.publisher.xmlrpc" file="meta.zcml" />

  <!-- Note that we need to do this early, as later startup
       subscribers may break without fixups -->

  <include package="zope.component" />
  <include package="zope.app.component" />
  <!-- We don't need generations, as they are zodb specific.
  <include package="zope.app.generations" file="subscriber.zcml" />
    -->
  <!-- Ordinary Application (non-view) configuration) -->
  <include package="zope.app.interface" />
  <include package="zope.app.security" />

  <!--
  <include package="zope.app.observable" />
  <include package="zope.app.annotation" />
  <include package="zope.app.dependable" />

  <include package="zope.app" file="menus.zcml" />
  <include package="zope.app.location" />
  -->
  <!--
  <include package="zope.app.container" />
-->
  <include package="zope.app.publisher" />

  <include package="zope.app.publication" file="meta.zcml" />
  <!-- We don't need any of the default publications. -->
  <!-- include package="zope.app.publication" / -->

  <!-- selected things from zope.traversing -->
<adapter
    for="*"
    factory="zope.traversing.adapters.Traverser"
    provides="zope.traversing.interfaces.ITraverser" />

<adapter
    for="*"
    factory="zope.traversing.adapters.DefaultTraversable"
    provides="zope.traversing.interfaces.ITraversable" />
<view
    name="view" type="*"
    provides="zope.traversing.interfaces.ITraversable" for="*"
    factory="zope.traversing.namespace.view"
    />

<view
    name="resource" type="*"
    provides="zope.traversing.interfaces.ITraversable" for="*"
    factory="zope.traversing.namespace.resource"
    />
  <!-- end of selected things from zope.traversing -->

  <include package="zope.app.pagetemplate" />
  <include package="zope.app.zapi" />

  <!-- Views -->
  <include package="zope.app.http" />

  <!-- Translations -->
  <!-- XXX Robert Collins 2004-11-23: it is not possible to include a
       'package' attribute in the registerTranslations directive.  This seems
       to be a shortcoming in the 'path' field design, where it can't be made
       relative to a package given in this directive.
  <i18n:registerTranslations package="zope.app" directory="translation_files" />
  -->
  <!--
  <include package="zope.app.i18n" />
  -->

  <!-- Setup charset negotiation -->
  <adapter factory="zope.publisher.http.HTTPCharsets"
      for="zope.publisher.interfaces.http.IHTTPRequest"
      provides="zope.i18n.interfaces.IUserPreferredCharsets"
      />
  <adapter factory="zope.app.publisher.browser.ModifiableBrowserLanguages"
      for="zope.publisher.interfaces.http.IHTTPRequest"
      provides="zope.i18n.interfaces.IModifiableUserPreferredLanguages"
      />


  <include package="zope.app.wsgi" />

  <!-- Default XMLRPC pre-marshalling. -->
  <include package="zope.publisher" />

</configure>