~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-31 00:29:39 UTC
  • mfrom: (14606.5.2 apocaremains-2)
  • Revision ID: launchpad@pqm.canonical.com-20111231002939-55hoazeosq53ftl3
[r=wgrant][no-qa] Remove canonical's ZCML.

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 file="permissions.zcml" />
14
 
 
15
 
    <i18n:registerTranslations directory="locales" />
16
 
 
17
 
    <webservice:register module="lp.patchwebservice" />
18
 
 
19
 
    <authorizations module="lp.security" />
 
13
    <includeOverrides
 
14
        package="lp.services.webapp"
 
15
        file="meta-overrides.zcml" />
 
16
    <include package="lp.services.webapp" file="meta.zcml" />
 
17
    <include package="grokcore.component" file="meta.zcml" />
 
18
    <include package="lazr.enum" />
 
19
    <include package="lazr.restful" file="meta.zcml" />
 
20
    <include package="lazr.uri" />
20
21
 
21
22
    <include package="lp.services" />
22
 
 
23
23
    <include package="lp.answers" />
24
24
    <include package="lp.app" />
25
25
    <include package="lp.blueprints" />
34
34
    <include package="lp.registry" />
35
35
    <include package="lp.xmlrpc" />
36
36
 
 
37
    <include file="permissions.zcml" />
 
38
 
 
39
    <i18n:registerTranslations directory="locales" />
 
40
    <webservice:register module="lp.patchwebservice" />
 
41
    <authorizations module="lp.security" />
 
42
 
 
43
    <!-- The default Zope 3 configuration of the SimpleComponentTraverser is
 
44
        that it applies to any object that provides Interface.
 
45
        This excludes objects that we're using just as instances of classes
 
46
        without providing any interfaces.
 
47
        -->
 
48
    <view
 
49
        for="*"
 
50
        type="zope.publisher.interfaces.browser.IBrowserRequest"
 
51
        provides="zope.publisher.interfaces.browser.IBrowserPublisher"
 
52
        factory="zope.app.publication.traversers.SimpleComponentTraverser"
 
53
        permission="zope.Public"
 
54
        />
 
55
    <!-- We don't include zope.app.publication (see zopeapp.zcml in the
 
56
         top level), so we lose the default registration that makes our
 
57
         private XMLRPC server work.  Copy that from Zope into here.
 
58
         -->
 
59
    <view
 
60
        for="zope.interface.Interface"
 
61
        type="zope.publisher.interfaces.xmlrpc.IXMLRPCRequest"
 
62
        provides="zope.publisher.interfaces.xmlrpc.IXMLRPCPublisher"
 
63
        factory="zope.app.publication.traversers.SimpleComponentTraverser"
 
64
        permission="zope.Public"
 
65
        />
 
66
 
37
67
    <!-- Register a handler to fix things up just before the application
38
68
         starts (and after zcml has been processed). -->
39
69
    <subscriber handler=".services.webapp.initialization.handle_process_start" />