make loops package work with BlueBream 1.0: system running
This commit is contained in:
parent
8dced7ecfa
commit
2f74a6dc81
7 changed files with 11 additions and 10 deletions
|
@ -105,7 +105,7 @@
|
||||||
name="AddLoopsContainer.html"
|
name="AddLoopsContainer.html"
|
||||||
for="zope.app.container.interfaces.IAdding"
|
for="zope.app.container.interfaces.IAdding"
|
||||||
class="loops.browser.manager.LoopsAddForm"
|
class="loops.browser.manager.LoopsAddForm"
|
||||||
permission="zope.ManageApplication"
|
permission="zope.ManageSite"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<addMenuItem
|
<addMenuItem
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
name="edit.html"
|
name="edit.html"
|
||||||
for="loops.interfaces.ILoops"
|
for="loops.interfaces.ILoops"
|
||||||
class="loops.browser.manager.LoopsEditForm"
|
class="loops.browser.manager.LoopsEditForm"
|
||||||
permission="zope.ManageApplication"
|
permission="zope.ManageSite"
|
||||||
menu="zmi_views" title="Edit"
|
menu="zmi_views" title="Edit"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
|
@ -432,10 +432,12 @@
|
||||||
<!-- utilities -->
|
<!-- utilities -->
|
||||||
|
|
||||||
<utility
|
<utility
|
||||||
|
provides="cybertools.storage.interfaces.IExternalStorage"
|
||||||
factory="cybertools.storage.filesystem.instanceVarSubdirectoryStorage"
|
factory="cybertools.storage.filesystem.instanceVarSubdirectoryStorage"
|
||||||
name="varsubdir" />
|
name="varsubdir" />
|
||||||
|
|
||||||
<utility
|
<utility
|
||||||
|
provides="cybertools.storage.interfaces.IExternalStorage"
|
||||||
factory="cybertools.storage.filesystem.fullPathStorage"
|
factory="cybertools.storage.filesystem.fullPathStorage"
|
||||||
name="fullpath" />
|
name="fullpath" />
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ with a principal folder:
|
||||||
>>> from zope.app.authentication.authentication import PluggableAuthentication
|
>>> from zope.app.authentication.authentication import PluggableAuthentication
|
||||||
>>> from zope.app.security.interfaces import IAuthentication
|
>>> from zope.app.security.interfaces import IAuthentication
|
||||||
>>> ensureUtility(site, IAuthentication, '', PluggableAuthentication,
|
>>> ensureUtility(site, IAuthentication, '', PluggableAuthentication,
|
||||||
... copy_to_zlog=False, asObject=True)
|
... copy_to_zlog=False)
|
||||||
<...PluggableAuthentication...>
|
<...PluggableAuthentication...>
|
||||||
>>> pau = component.getUtility(IAuthentication, context=site)
|
>>> pau = component.getUtility(IAuthentication, context=site)
|
||||||
|
|
||||||
|
|
|
@ -65,11 +65,11 @@
|
||||||
provides="zope.app.authentication.interfaces.ICredentialsPlugin"
|
provides="zope.app.authentication.interfaces.ICredentialsPlugin"
|
||||||
factory="loops.organize.auth.LoopsSessionCredentialsPlugin" />
|
factory="loops.organize.auth.LoopsSessionCredentialsPlugin" />
|
||||||
|
|
||||||
<zope:localUtility class="loops.organize.auth.PersonBasedAuthenticator">
|
<zope:class class="loops.organize.auth.PersonBasedAuthenticator">
|
||||||
<require
|
<require
|
||||||
permission="zope.ManageServices"
|
permission="zope.ManageServices"
|
||||||
attributes="prefix" />
|
attributes="prefix" />
|
||||||
</zope:localUtility>
|
</zope:class>
|
||||||
|
|
||||||
<!-- other adapters -->
|
<!-- other adapters -->
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ def setupObjectsForTesting(site, concepts):
|
||||||
loopsRoot = concepts.getLoopsRoot()
|
loopsRoot = concepts.getLoopsRoot()
|
||||||
setupData = setupUtilitiesAndAdapters(loopsRoot)
|
setupData = setupUtilitiesAndAdapters(loopsRoot)
|
||||||
ensureUtility(site, IAuthentication, '', PluggableAuthentication,
|
ensureUtility(site, IAuthentication, '', PluggableAuthentication,
|
||||||
copy_to_zlog=False, asObject=True)
|
copy_to_zlog=False)
|
||||||
pau = component.getUtility(IAuthentication, context=site)
|
pau = component.getUtility(IAuthentication, context=site)
|
||||||
# create principal folder and user(s)
|
# create principal folder and user(s)
|
||||||
pFolder = PrincipalFolder('users.')
|
pFolder = PrincipalFolder('users.')
|
||||||
|
|
|
@ -16,15 +16,15 @@
|
||||||
|
|
||||||
<zope:adapter
|
<zope:adapter
|
||||||
for="loops.interfaces.IConcept"
|
for="loops.interfaces.IConcept"
|
||||||
factory="zope.app.securitypolicy.rolepermission.AnnotationRolePermissionManager"
|
factory="zope.securitypolicy.rolepermission.AnnotationRolePermissionManager"
|
||||||
trusted="true" />
|
trusted="true" />
|
||||||
<zope:adapter
|
<zope:adapter
|
||||||
for="loops.interfaces.IResource"
|
for="loops.interfaces.IResource"
|
||||||
factory="zope.app.securitypolicy.rolepermission.AnnotationRolePermissionManager"
|
factory="zope.securitypolicy.rolepermission.AnnotationRolePermissionManager"
|
||||||
trusted="true" />
|
trusted="true" />
|
||||||
<zope:adapter
|
<zope:adapter
|
||||||
for="loops.interfaces.IView"
|
for="loops.interfaces.IView"
|
||||||
factory="zope.app.securitypolicy.rolepermission.AnnotationRolePermissionManager"
|
factory="zope.securitypolicy.rolepermission.AnnotationRolePermissionManager"
|
||||||
trusted="true" />
|
trusted="true" />
|
||||||
|
|
||||||
<zope:adapter factory="loops.security.setter.ConceptSecuritySetter" />
|
<zope:adapter factory="loops.security.setter.ConceptSecuritySetter" />
|
||||||
|
|
|
@ -23,7 +23,6 @@ resources e.g. from forms that are called on view/node objects.
|
||||||
$Id$
|
$Id$
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from zope.app import zapi
|
|
||||||
from zope.cachedescriptors.property import Lazy
|
from zope.cachedescriptors.property import Lazy
|
||||||
from zope.component import adapts
|
from zope.component import adapts
|
||||||
from zope.i18nmessageid import MessageFactory
|
from zope.i18nmessageid import MessageFactory
|
||||||
|
|
Loading…
Add table
Reference in a new issue