816
by Canonical.com Patch Queue Manager
Enabled cookie-auth, and various other incidental things. |
1 |
<configure xmlns="http://namespaces.zope.org/zope" |
2 |
package="zope.app.session"> |
|
3 |
||
4 |
<!-- The following is a direct copy of zope/app/session/configure.zcml
|
|
5 |
but with the parts that directly depend on the ZODB taken out.
|
|
6 |
-->
|
|
7 |
||
8 |
<adapter
|
|
9 |
for="zope.publisher.interfaces.IRequest" |
|
10 |
provides=".interfaces.IClientId" |
|
11 |
factory=".session.ClientId" |
|
12 |
permission="zope.Public" |
|
13 |
/>
|
|
14 |
||
15 |
<adapter
|
|
16 |
for="zope.publisher.interfaces.IRequest" |
|
17 |
provides=".interfaces.ISession" |
|
18 |
factory=".session.Session" |
|
19 |
permission="zope.Public" |
|
20 |
/>
|
|
21 |
||
22 |
<adapter
|
|
23 |
for="zope.publisher.interfaces.IRequest" |
|
24 |
provides="zope.app.traversing.interfaces.IPathAdapter" |
|
25 |
factory=".session.Session" |
|
26 |
name="session" |
|
27 |
permission="zope.Public" |
|
28 |
/>
|
|
29 |
||
30 |
<content class=".session.Session"> |
|
31 |
<allow interface=".interfaces.ISession" /> |
|
32 |
<implements interface="zope.app.traversing.interfaces.IPathAdapter" /> |
|
33 |
</content>
|
|
34 |
||
35 |
<content class=".http.CookieClientIdManager"> |
|
36 |
<require
|
|
37 |
interface=".http.ICookieClientIdManager" |
|
38 |
permission="zope.Public" /> |
|
39 |
<require
|
|
40 |
set_schema=".http.ICookieClientIdManager" |
|
41 |
permission="zope.ManageServices" /> |
|
42 |
</content>
|
|
43 |
||
44 |
<content class=".session.PersistentSessionDataContainer"> |
|
45 |
<require
|
|
46 |
interface=".interfaces.ISessionDataContainer" |
|
47 |
permission="zope.Public" /> |
|
48 |
<require
|
|
49 |
set_schema=".interfaces.ISessionDataContainer" |
|
50 |
permission="zope.ManageServices" /> |
|
51 |
</content>
|
|
52 |
||
53 |
<content class=".session.RAMSessionDataContainer"> |
|
54 |
<require
|
|
55 |
interface=".interfaces.ISessionDataContainer" |
|
56 |
permission="zope.Public" /> |
|
57 |
<require
|
|
58 |
set_schema=".interfaces.ISessionDataContainer" |
|
59 |
permission="zope.ManageServices" /> |
|
60 |
</content>
|
|
61 |
||
62 |
<content class=".session.SessionData"> |
|
63 |
<allow interface=".interfaces.ISessionData" /> |
|
64 |
</content>
|
|
65 |
||
66 |
<content class=".session.SessionPkgData"> |
|
67 |
<allow interface=".interfaces.ISessionPkgData" /> |
|
68 |
</content>
|
|
69 |
<!-- Don't want this. Direct ZODB dependency.
|
|
70 |
<subscriber
|
|
71 |
for="zope.app.appsetup.IDatabaseOpenedEvent"
|
|
72 |
factory=".bootstrap.bootStrapSubscriber"
|
|
73 |
/>
|
|
74 |
-->
|
|
75 |
<include file="browser.zcml" /> |
|
76 |
||
77 |
</configure>
|