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
|
<!-- Include minimal parts of sqlos. Not including the browser views or
non-essential factories.
-->
<configure xmlns="http://namespaces.zope.org/zope" i18n_domain="sqlos"
package="sqlos">
<include file="permissions.zcml" />
<include package=".auth" />
<content class=".container.SQLObjectContainer">
<implements interface="zope.app.container.interfaces.IContentContainer" />
<require
permission="zope.View"
interface="zope.app.container.interfaces.IReadContainer"
/>
<require
permission="zope.ManageContent"
interface="zope.app.container.interfaces.IWriteContainer"
/>
<require
permission="zope.View"
attributes="select"
/>
</content>
<class class=".adapter.MySQLAdapter">
<require
permission="zope.Public"
interface=".interfaces.IZopeSQLConnection"
/>
</class>
<class class=".adapter.PostgresAdapter">
<require
permission="zope.Public"
interface=".interfaces.IZopeSQLConnection"
/>
</class>
<class class=".adapter.SybaseAdapter">
<require
permission="zope.Public"
interface=".interfaces.IZopeSQLConnection"
/>
</class>
<class class=".adapter.SQLiteAdapter">
<require
permission="zope.Public"
interface=".interfaces.IZopeSQLConnection"
/>
</class>
<class class="sqlobject.cache.CacheSet">
<require
permission="zope.Public"
interface=".interfaces.ICacheSet"
/>
</class>
<!-- XXX: Brad Bollenbach, 2005-02-03: This is a custom hack workaround
until the __getslice__ bug is fixed:
https://launchpad.ubuntu.com/malone/bugs/121
spiv is the guy who can fix and push this change upstream.
<class class="sqlobject.main.SelectResults">
<require
permission="zope.Public"
interface=".interfaces.ISelectResults"
/>
</class>
-->
<class class="sqlobject.main.SelectResults">
<require
permission="zope.Public"
interface="canonical.launchpad.interfaces.ISelectResultsSlicable"
/>
</class>
<class class="sqlobject.dbconnection.Iteration">
<require
permission="zope.Public"
interface=".interfaces.IIterator"
/>
</class>
<!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
For now, you need to change the factory here if you want
to use a diferent connection type.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<adapter
provides=".interfaces.IZopeSQLConnection"
for="zope.app.rdb.interfaces.IZopeConnection"
permission="zope.Public"
factory=".adapter.PostgresAdapter"
/>
<adapter
provides="zope.app.container.interfaces.INameChooser"
for="sqlos.interfaces.container.ISQLObjectContainer"
permission="zope.Public"
factory=".adapter.SQLObjectNameChooser"
/>
</configure>
|