/usr/share/pyshared/lazr/restful/configure.zcml is in python-lazr.restful 0.19.3-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | <configure
xmlns="http://namespaces.zope.org/zope"
i18n_domain="lazr.restful">
<class class="lazr.restful.RedirectResource">
<allow interface='lazr.restful.interfaces.IHTTPResource' />
</class>
<class class="lazr.restful.CollectionResource">
<allow interface='lazr.restful.interfaces.ICollectionResource' />
</class>
<class class="lazr.restful.EntryFieldResource">
<allow interface='lazr.restful.interfaces.IEntryFieldResource' />
</class>
<class class="lazr.restful.EntryResource">
<allow interface='lazr.restful.interfaces.IEntryResource' />
<allow interface='lazr.restful.interfaces.IJSONPublishable' />
</class>
<subscriber for="zope.processlifetime.IProcessStarting"
handler="lazr.restful.metazcml.webservice_sanity_checks" />
<!--
XXX flacoste 2008/05/09 bug=185958:
Ideally, we would use webservice_error() to register the view,
but InvalidBatchSizeError is in lazr.batchnavigator and webservice_error()
can only be called from within a class definition.
-->
<adapter
for="lazr.batchnavigator.interfaces.InvalidBatchSizeError
lazr.restful.interfaces.IWebServiceLayer"
provides="zope.interface.Interface"
factory="lazr.restful.error.WebServiceExceptionView"
name="index.html"
/>
<adapter factory="lazr.restful.publisher.browser_request_to_web_service_request" />
<adapter factory="lazr.restful.jsoncache.JSONRequestCache" />
<!-- TALES namespace for web service functions available through the
website. -->
<adapter
for="*"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WebLayerAPI"
name="webservice"
/>
<adapter
factory="lazr.restful.tales.WebServiceRequestAPI"
name="webservicerequest"
/>
<!-- TALES namespaces for WADL generation -->
<adapter
for="lazr.restful.interfaces.IHTTPResource"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WadlResourceAPI"
name="wadl"
/>
<adapter
for="lazr.restful.interfaces.IServiceRootResource"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WadlServiceRootResourceAPI"
name="wadl"
/>
<adapter
for="lazr.restful.interfaces.ITopLevelEntryLink"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WadlTopLevelEntryLinkAPI"
name="wadl"
/>
<adapter
for="lazr.restful.interfaces.ICollectionResource"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WadlCollectionResourceAPI"
name="wadl"
/>
<adapter
for="lazr.restful.interfaces.IEntryResource"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WadlEntryResourceAPI"
name="wadl"
/>
<adapter
for="lazr.restful.interfaces.IByteStorageResource"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WadlByteStorageResourceAPI"
name="wadl"
/>
<adapter
for="*"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WadlEntryAdapterAPI"
name="wadl_entry"
/>
<adapter
for="zope.interface.interfaces.IInterface"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WadlEntryInterfaceAdapterAPI"
name="wadl_entry_interface"
/>
<adapter
for="*"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WadlCollectionAdapterAPI"
name="wadl_collection"
/>
<adapter
for="zope.schema.interfaces.IField"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WadlFieldAPI"
name="wadl"
/>
<adapter
for="*"
provides="zope.traversing.interfaces.IPathAdapter"
factory="lazr.restful.tales.WadlOperationAPI"
name="wadl_operation"
/>
<!-- Generic adapter for scoped collection -->
<adapter factory="lazr.restful.ScopedCollection" />
<adapter factory="lazr.restful.JSONItem" />
<!-- Adapter for URL generation -->
<adapter
provides="zope.traversing.browser.interfaces.IAbsoluteURL"
factory="lazr.restful._resource.EntryFieldURL"
/>
<!-- Field resources -->
<adapter
for="lazr.restful.interfaces.IEntryField
zope.publisher.interfaces.http.IHTTPApplicationRequest"
provides="lazr.restful.interfaces.IHTTPResource"
factory="lazr.restful.EntryFieldResource"
/>
<!-- Byte storage resources -->
<adapter
for="lazr.restful.interfaces.IByteStorage
zope.publisher.interfaces.http.IHTTPApplicationRequest"
provides="lazr.restful.interfaces.IHTTPResource"
factory="lazr.restful.ByteStorageResource"
/>
<class class="lazr.restful.ByteStorageResource">
<allow interface='lazr.restful.interfaces.IByteStorageResource' />
</class>
<!-- IFieldMarshaller adapters -->
<adapter
for="zope.schema.interfaces.IField
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.SimpleFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IBool
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.BoolFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IFloat
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.FloatFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IInt
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.IntFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IDatetime
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.DateTimeFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IDate
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.DateFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IBytes
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.BytesFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IASCII
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.TextFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IText
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.TextFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IChoice
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.VocabularyLookupFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IChoice
zope.publisher.interfaces.http.IHTTPRequest
zope.schema.interfaces.IVocabularyTokenized"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.TokenizedVocabularyFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IChoice
zope.publisher.interfaces.http.IHTTPRequest
lazr.enum.IEnumeratedType"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.SimpleVocabularyLookupFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.IObject
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.ObjectLookupFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.ICollection
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.AbstractCollectionFieldMarshaller"
/>
<adapter
for="zope.schema.interfaces.ISet
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.SetFieldMarshaller"
/>
<adapter
for="lazr.restful.interfaces.ICollectionField
zope.publisher.interfaces.http.IHTTPRequest"
provides="lazr.restful.interfaces.IFieldMarshaller"
factory="lazr.restful.marshallers.CollectionFieldMarshaller"
/>
<adapter
for="zope.interface.Interface
lazr.restful.interfaces.IWebServiceClientRequest"
provides="zope.interface.Interface"
factory="lazr.restful.EntryHTMLView"
name="lazr.restful.EntryResource"
/>
<adapter factory="lazr.restful.render_field_to_html" />
<!-- System Errors, and errors published to the web service using
annotations or the expose() method. -->
<adapter
for="zope.interface.common.interfaces.IException
lazr.restful.interfaces.IWebServiceLayer"
provides="zope.interface.Interface"
factory="lazr.restful.error.WebServiceExceptionView"
name="index.html"
/>
<!-- Unauthorized -->
<adapter
for="zope.exceptions.IUnauthorized
lazr.restful.interfaces.IWebServiceLayer"
provides="zope.interface.Interface"
factory="lazr.restful.error.UnauthorizedView"
name="index.html"
/>
<!-- NotFound -->
<adapter
for="zope.publisher.interfaces.NotFound
lazr.restful.interfaces.IWebServiceLayer"
provides="zope.interface.Interface"
factory="lazr.restful.error.NotFoundView"
name="index.html"
/>
</configure>
|