1 | <configure |
---|
2 | xmlns="http://namespaces.zope.org/zope" |
---|
3 | xmlns:five="http://namespaces.zope.org/five" |
---|
4 | xmlns:browser="http://namespaces.zope.org/browser" |
---|
5 | xmlns:genericsetup="http://namespaces.zope.org/genericsetup" |
---|
6 | xmlns:plone="http://namespaces.plone.org/plone" |
---|
7 | i18n_domain="quintagroup.portlet.map"> |
---|
8 | |
---|
9 | <five:registerPackage package="." initialize=".initialize" /> |
---|
10 | |
---|
11 | <include package="Products.Maps" /> |
---|
12 | |
---|
13 | <genericsetup:registerProfile |
---|
14 | name="default" |
---|
15 | title="Quintagroup Google Map portlet" |
---|
16 | directory="profiles/default" |
---|
17 | description="Quintagroup Google Map portlet" |
---|
18 | provides="Products.GenericSetup.interfaces.EXTENSION" |
---|
19 | /> |
---|
20 | |
---|
21 | <!-- Register the portlet --> |
---|
22 | |
---|
23 | <!-- If the portlet has no configurable parameters, you can remove |
---|
24 | the EditForm declaration in qgmapportlet.py and delete |
---|
25 | the 'editview' attribute from this statement. |
---|
26 | --> |
---|
27 | |
---|
28 | <plone:portlet |
---|
29 | name="quintagroup.portlet.map.QGMapPortlet" |
---|
30 | interface=".qgmapportlet.IQGMapPortlet" |
---|
31 | assignment=".qgmapportlet.Assignment" |
---|
32 | view_permission="zope2.View" |
---|
33 | edit_permission="cmf.ManagePortal" |
---|
34 | renderer=".qgmapportlet.Renderer" |
---|
35 | addview=".qgmapportlet.AddForm" |
---|
36 | editview=".qgmapportlet.EditForm" |
---|
37 | /> |
---|
38 | |
---|
39 | <!-- overrides IMapEnabledView --> |
---|
40 | <browser:page |
---|
41 | for="Products.ATContentTypes.interface.IATTopic" |
---|
42 | name="maps_googlemaps_enabled_view" |
---|
43 | class=".map_fix.FolderMapView" |
---|
44 | permission="zope.Public" |
---|
45 | layer=".interfaces.IQGMapPortletLayer" |
---|
46 | allowed_interface="Products.Maps.interfaces.map.IMapEnabledView" |
---|
47 | /> |
---|
48 | |
---|
49 | <browser:page |
---|
50 | for="Products.ATContentTypes.interface.IATFolder" |
---|
51 | name="maps_googlemaps_enabled_view" |
---|
52 | class=".map_fix.FolderMapView" |
---|
53 | permission="zope.Public" |
---|
54 | layer=".interfaces.IQGMapPortletLayer" |
---|
55 | allowed_interface="Products.Maps.interfaces.map.IMapEnabledView" |
---|
56 | /> |
---|
57 | |
---|
58 | |
---|
59 | </configure> |
---|