[Checkins] SVN: Sandbox/philikon/zopeproject/trunk/ Add blob support for default deployment.
Dan Korostelev
nadako at gmail.com
Wed Dec 24 10:04:44 EST 2008
Log message for revision 94308:
Add blob support for default deployment.
Use zope.securitypolicy instead of zope.app.securitypolicy.
Define zope.Anonymous role in site.zcml, because zope.securitypolicy use that name for special case.
Changed:
U Sandbox/philikon/zopeproject/trunk/CHANGES.txt
U Sandbox/philikon/zopeproject/trunk/zopeproject/zope_deploy/site.zcml_tmpl
U Sandbox/philikon/zopeproject/trunk/zopeproject/zope_deploy/zope.conf
-=-
Modified: Sandbox/philikon/zopeproject/trunk/CHANGES.txt
===================================================================
--- Sandbox/philikon/zopeproject/trunk/CHANGES.txt 2008-12-24 14:47:46 UTC (rev 94307)
+++ Sandbox/philikon/zopeproject/trunk/CHANGES.txt 2008-12-24 15:04:44 UTC (rev 94308)
@@ -4,8 +4,18 @@
0.4.2 (unreleased)
------------------
-...
+* Added blobstorage proxy to default ZODB config in zope.conf.
+* Use ZopeSecurityPolicy from zope.securitypolicy instead
+ of zope.app.securitypolicy, which is a deprecated place for
+ that.
+
+* The zope.securitypolicy uses a special role name,
+ the ``zope.Anonymous`` that every user has, define
+ it in site.zcml and grant view permissions to it,
+ instead of zope.Anybody unauthenticated group.
+
+
0.4.1 (2007-09-29)
------------------
Modified: Sandbox/philikon/zopeproject/trunk/zopeproject/zope_deploy/site.zcml_tmpl
===================================================================
--- Sandbox/philikon/zopeproject/trunk/zopeproject/zope_deploy/site.zcml_tmpl 2008-12-24 14:47:46 UTC (rev 94307)
+++ Sandbox/philikon/zopeproject/trunk/zopeproject/zope_deploy/site.zcml_tmpl 2008-12-24 15:04:44 UTC (rev 94308)
@@ -7,10 +7,10 @@
You should do this for production -->
<include file="apidoc.zcml" />
- <include package="zope.app.securitypolicy" file="meta.zcml" />
+ <include package="zope.securitypolicy" file="meta.zcml" />
<include package="zope.app.securitypolicy" />
<securityPolicy
- component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
+ component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
<unauthenticatedPrincipal id="zope.anybody"
title="Unauthenticated User" />
@@ -29,12 +29,18 @@
password="${passwd}"
/>
- <!-- Replace the following directive if you don't want public access -->
+ <!-- With the default zope securitypolicy, this is a
+ special role that every user has -->
+ <role id="zope.Anonymous"
+ title="Everybody"
+ description="All users have this role implicitly" />
+
+ <!-- Replace the following directives if you don't want public access -->
<grant permission="zope.View"
- principal="zope.Anybody" />
+ role="zope.Anonymous" />
<grant permission="zope.app.dublincore.view"
- principal="zope.Anybody" />
-
+ role="zope.Anonymous" />
+
<role id="zope.Manager" title="Site Manager" />
<role id="zope.Member" title="Site Member" />
<grantAll role="zope.Manager" />
Modified: Sandbox/philikon/zopeproject/trunk/zopeproject/zope_deploy/zope.conf
===================================================================
--- Sandbox/philikon/zopeproject/trunk/zopeproject/zope_deploy/zope.conf 2008-12-24 14:47:46 UTC (rev 94307)
+++ Sandbox/philikon/zopeproject/trunk/zopeproject/zope_deploy/zope.conf 2008-12-24 15:04:44 UTC (rev 94308)
@@ -2,10 +2,14 @@
site-definition site.zcml
<zodb>
- # Standard Filestorage
- <filestorage>
- path var/Data.fs
- </filestorage>
+ # Wrap standard FileStorage with BlobStorage proxy
+ # to get ZODB blobs support.
+ <blobstorage>
+ blob-dir var/blobs
+ <filestorage>
+ path var/Data.fs
+ </filestorage>
+ </blobstorage>
# Uncomment this if you want to connect to a ZEO server instead:
# <zeoclient>
More information about the Checkins
mailing list