| 1 | <configure |
|---|
| 2 | xmlns="http://namespaces.zope.org/zope" |
|---|
| 3 | xmlns:browser="http://namespaces.zope.org/browser" |
|---|
| 4 | xmlns:five="http://namespaces.zope.org/five" |
|---|
| 5 | > |
|---|
| 6 | <include package="zope.app.annotation" /> |
|---|
| 7 | |
|---|
| 8 | <five:implements |
|---|
| 9 | class="Products.ATContentTypes.content.document.ATDocument" |
|---|
| 10 | interface="zope.app.annotation.IAttributeAnnotatable" /> |
|---|
| 11 | <five:implements |
|---|
| 12 | class="Products.ATContentTypes.content.link.ATLink" |
|---|
| 13 | interface="zope.app.annotation.IAttributeAnnotatable" /> |
|---|
| 14 | <five:implements |
|---|
| 15 | class="Products.ATContentTypes.content.event.ATEvent" |
|---|
| 16 | interface="zope.app.annotation.IAttributeAnnotatable" /> |
|---|
| 17 | <five:implements |
|---|
| 18 | class="Products.ATContentTypes.content.image.ATImage" |
|---|
| 19 | interface="zope.app.annotation.IAttributeAnnotatable" /> |
|---|
| 20 | |
|---|
| 21 | <adapter |
|---|
| 22 | for="Products.ATContentTypes.interface.document.IATDocument" |
|---|
| 23 | provides="geo.interfaces.IPoint" |
|---|
| 24 | factory=".adapters.geolocation.Point" |
|---|
| 25 | /> |
|---|
| 26 | <adapter |
|---|
| 27 | for="Products.ATContentTypes.interface.event.IATEvent" |
|---|
| 28 | provides="geo.interfaces.IPoint" |
|---|
| 29 | factory=".adapters.geolocation.Point" |
|---|
| 30 | /> |
|---|
| 31 | <adapter |
|---|
| 32 | for="Products.ATContentTypes.interface.link.IATLink" |
|---|
| 33 | provides="geo.interfaces.IPoint" |
|---|
| 34 | factory=".adapters.geolocation.Point" |
|---|
| 35 | /> |
|---|
| 36 | <adapter |
|---|
| 37 | for="Products.ATContentTypes.interface.image.IATImage" |
|---|
| 38 | provides="geo.interfaces.IPoint" |
|---|
| 39 | factory=".adapters.geolocation.Point" |
|---|
| 40 | /> |
|---|
| 41 | <adapter |
|---|
| 42 | for="Products.ATContentTypes.interface.news.IATNewsItem" |
|---|
| 43 | provides="geo.interfaces.IPoint" |
|---|
| 44 | factory=".adapters.geolocation.Point" |
|---|
| 45 | /> |
|---|
| 46 | |
|---|
| 47 | <adapter |
|---|
| 48 | for="Products.ATContentTypes.interface.document.IATDocument" |
|---|
| 49 | provides=".interfaces.geomap.IGEOMap" |
|---|
| 50 | factory=".adapters.geomap.GEOMap" |
|---|
| 51 | /> |
|---|
| 52 | <adapter |
|---|
| 53 | for="Products.ATContentTypes.interface.event.IATEvent" |
|---|
| 54 | provides=".interfaces.geomap.IGEOMap" |
|---|
| 55 | factory=".adapters.geomap.GEOMap" |
|---|
| 56 | /> |
|---|
| 57 | <adapter |
|---|
| 58 | for="Products.ATContentTypes.interface.link.IATLink" |
|---|
| 59 | provides=".interfaces.geomap.IGEOMap" |
|---|
| 60 | factory=".adapters.geomap.GEOMap" |
|---|
| 61 | /> |
|---|
| 62 | <adapter |
|---|
| 63 | for="Products.ATContentTypes.interface.image.IATImage" |
|---|
| 64 | provides=".interfaces.geomap.IGEOMap" |
|---|
| 65 | factory=".adapters.geomap.GEOMap" |
|---|
| 66 | /> |
|---|
| 67 | <adapter |
|---|
| 68 | for="Products.ATContentTypes.interface.news.IATNewsItem" |
|---|
| 69 | provides=".interfaces.geomap.IGEOMap" |
|---|
| 70 | factory=".adapters.geomap.GEOMap" |
|---|
| 71 | /> |
|---|
| 72 | |
|---|
| 73 | <browser:page |
|---|
| 74 | for="*" |
|---|
| 75 | name="MapView" |
|---|
| 76 | class=".browser.map.GEOMapView" |
|---|
| 77 | permission="cmf.ModifyPortalContent" |
|---|
| 78 | allowed_interface=".interfaces.geomap.IGEOMapView" |
|---|
| 79 | /> |
|---|
| 80 | |
|---|
| 81 | <browser:page |
|---|
| 82 | for="*" |
|---|
| 83 | name="LocationView" |
|---|
| 84 | class=".browser.location.PointView" |
|---|
| 85 | permission="cmf.ModifyPortalContent" |
|---|
| 86 | allowed_interface=".interfaces.geolocation.IPointView" |
|---|
| 87 | /> |
|---|
| 88 | |
|---|
| 89 | </configure> |
|---|