source: cmfdeployment/branches/kenw-p4-wip/examples/policies/blog.xml @ 2380

Last change on this file since 2380 was 2380, checked in by kenw, 8 years ago

Committing new branch intended for Plone 4 compatibility; mostly required imports of new zope packages

File size: 4.3 KB
Line 
1<!--
2
3Quills Example Blog
4
5I separated out the quills css and images into separate skin directories, custom_quill_css
6and custom_quill_images respectively. the other custom directories were for my own
7customizations.
8
9-->
10
11<DeploymentPolicy id="personal_blog_wquills">
12
13  <identification>
14     <filter id="no_members" 
15             expr="python: not memento.getPath().find('Members')+1"/>
16  </identification>
17
18  <strategy id="default" />
19
20  <skins>
21          <directory view_path="/plone_images"
22                 deploy_path="/blog/images"
23                 source_path="/" />
24          <directory view_path="/plone_ecmascript"
25                 deploy_path="/blog/javascript"
26                 source_path="/" />
27          <directory view_path="/plone_styles"
28                 deploy_path="/blog/css"
29                 source_path="/" />
30          <directory view_path="/custom_quill_images"
31                 deploy_path="/blog/images"
32                 source_path="/" />
33          <directory view_path="/custom_quill_css"
34                 deploy_path="/blog/css"
35                 source_path="/" />
36          <directory view_path="/custom_blog_css"
37                 deploy_path="/blog/css"
38                 source_path="/" />
39          <directory view_path="/custom_blog_images"
40                 deploy_path="/blog/images"
41                 source_path="/" />
42      </skins>
43
44  <chain_user user="nobody" udb_path="special" />
45 
46  <organization 
47    cmf_mount="/" 
48    fs_mount="*/examples/static/quills">
49   
50          <restricted id="Members" />
51          <restricted id="content_type_registry" />
52          <restricted id="acl_users" />
53          <restricted id="mimetypes_registry" />
54          <restricted id="archetype_tool" />
55          <restricted id="uid_catalog" />
56          <restricted id="reference_catalog" />     
57  </organization>
58 
59     
60  <mastering skin="Plone Deployment">
61
62    <!-- executed in order and order is important -->
63
64                 
65<mime id="Site"
66      product="CMFDeployment"
67      factory="addMimeMapping"
68      filter_expr="python: object.portal_type == 'Plone Site'"
69      ghost="1"
70      ext_expr="python: 'index.html'%object.getId()"
71      view_method="string:index_html" />
72
73                         
74<mime id="Folder"
75      product="CMFDeployment"
76      factory="addMimeMapping"
77      ghost="1"
78      filter_expr="python: object.portal_type == 'Folder'"
79      ext_expr="python: '%s/index.html'%object.getId()"
80      view_method="string:index_html" />
81
82                         
83<mime id="IndexDocument"
84      product="CMFDeployment"
85      factory="addMimeMapping"
86      filter_expr="python: object.getId()=='index_html'"
87      ext_expr="python: 'index.html'"
88      view_method="" />
89
90                         
91<mime id="Document"
92      product="CMFDeployment"
93      factory="addMimeMapping"
94      filter_expr="python: object.portal_type == 'Document'"
95      ext_expr="python: '%s.html'%object.getId()"
96      view_method="" />
97
98                         
99<mime id="Image"
100      product="CMFDeployment"
101      factory="addMimeMapping"
102      filter_expr="python: object.portal_type == 'Image'"
103      ext_expr="python: object.getId()"
104      view_method="" />
105
106                         
107<mime id="Event"
108      product="CMFDeployment"
109      factory="addMimeMapping"
110      filter_expr="python: object.portal_type == 'Event'"
111      ext_expr="python: '%s.html'%object.getId()"
112      view_method="" />
113
114                         
115<mime id="weblog_topic"
116      product="CMFDeployment"
117      factory="addMimeMapping"
118      filter_expr="python: object.portal_type == 'WeblogTopic'"
119      ext_expr="python: '%s/index.html'%object.getId()"
120      view_method="" />
121
122                         
123<mime id="weblog"
124      product="CMFDeployment"
125      factory="addMimeMapping"
126      filter_expr="python: object.portal_type == 'Weblog'"
127      ext_expr="python: '%s/index.html'%object.getId()"
128      view_method="" />
129
130                         
131<mime id="weblog_archive"
132      product="CMFDeployment"
133      factory="addMimeMapping"
134      filter_expr="python: object.portal_type == 'WeblogArchive'"
135      ext_expr="python: '%s/index.html'%object.getId()"
136      view_method="" />
137
138                         
139<mime id="weblog_entry"
140      product="CMFDeployment"
141      factory="addMimeMapping"
142      filter_expr="python: object.portal_type == 'WeblogEntry'"
143      ext_expr="python: '%s.html'%object.getId()"
144      view_method="" />
145
146         
147  </mastering>
148 
149 
150</DeploymentPolicy>
151
Note: See TracBrowser for help on using the repository browser.