~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
<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    i18n_domain="zope"
    package="zope.app.session"
    >

  <!-- The following is a direct copy of zope/app/session/configure.zcml
       but with the parts that directly depend on the ZODB taken out.
    -->

  <adapter
      factory="zope.session.session.ClientId"
      permission="zope.Public" 
      />

  <adapter
      factory="zope.session.session.Session"
      provides="zope.session.interfaces.ISession"
      permission="zope.Public"
      />

  <adapter
      factory="zope.session.session.Session"
      provides="zope.traversing.interfaces.IPathAdapter"
      name="session"
      />

  <class class="zope.session.session.Session">
    <allow interface="zope.session.interfaces.ISession" />
    <implements interface="zope.traversing.interfaces.IPathAdapter" />
  </class>

  <class class="zope.session.http.CookieClientIdManager">
    <require
        interface="zope.session.http.ICookieClientIdManager"
        permission="zope.Public" />
    <require
        set_schema="zope.session.http.ICookieClientIdManager"
        permission="zope.ManageServices" />
    <require
        interface="zope.location.ILocation"
        permission="zope.Public" />
    <require
        set_schema="zope.location.ILocation"
        permission="zope.ManageServices" />
  </class>

  <class class="zope.session.session.PersistentSessionDataContainer">
    <require
        interface="zope.session.interfaces.ISessionDataContainer"
        permission="zope.Public" />
    <require
        set_schema="zope.session.interfaces.ISessionDataContainer"
        permission="zope.ManageServices" />
    <require
        interface="zope.location.ILocation"
        permission="zope.Public" />
    <require
        set_schema="zope.location.ILocation"
        permission="zope.ManageServices" />
  </class>

  <class class="zope.session.session.RAMSessionDataContainer">
    <require
        interface="zope.session.interfaces.ISessionDataContainer"
        permission="zope.Public" />
    <require
        set_schema="zope.session.interfaces.ISessionDataContainer"
        permission="zope.ManageServices" />
    <require
        interface="zope.location.ILocation"
        permission="zope.Public" />
    <require
        set_schema="zope.location.ILocation"
        permission="zope.ManageServices" />
  </class>

  <class class="zope.session.session.SessionData">
    <allow interface="zope.session.interfaces.ISessionData" />
  </class>

  <class class="zope.session.session.SessionPkgData">
    <allow interface="zope.session.interfaces.ISessionPkgData" />
  </class>

  <!--  Don't want this.  Direct ZODB dependency.
  <subscriber
      for="zope.app.appsetup.IDatabaseOpenedEvent"
      handler="zope.session.bootstrap.bootStrapSubscriber"
      />
      
  <subscriber
      for="zope.publisher.interfaces.http.IHTTPVirtualHostChangedEvent"
      handler="zope.session.http.notifyVirtualHostChanged"
      />
  -->
  <!--
  <configure
      xmlns:apidoc="http://namespaces.zope.org/apidoc"
      xmlns:zcml="http://namespaces.zope.org/zcml"
      zcml:condition="have apidoc">

    <apidoc:bookchapter
        id="session"
        title="Sessions"
        doc_path="design.txt"
        />
    <apidoc:bookchapter
        id="api"
        title="API"
        doc_path="api.txt"
        parent="session"
        />

  </configure>
  -->
</configure>