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