Commit b43972fe authored by Hanno Schlichting's avatar Hanno Schlichting

Add back FindSupport mix-in to OFS Application and Folder.

parent 1abbcf66
...@@ -28,6 +28,7 @@ from App import FactoryDispatcher ...@@ -28,6 +28,7 @@ from App import FactoryDispatcher
from App.ProductContext import ProductContext from App.ProductContext import ProductContext
from DateTime import DateTime from DateTime import DateTime
from OFS import bbb from OFS import bbb
from OFS.FindSupport import FindSupport
from OFS.metaconfigure import get_packages_to_initialize from OFS.metaconfigure import get_packages_to_initialize
from OFS.metaconfigure import package_initialized from OFS.metaconfigure import package_initialized
from OFS.userfolder import UserFolder from OFS.userfolder import UserFolder
...@@ -53,7 +54,7 @@ APP_MANAGER = None ...@@ -53,7 +54,7 @@ APP_MANAGER = None
@implementer(IApplication) @implementer(IApplication)
class Application(ApplicationDefaultPermissions, Folder.Folder): class Application(ApplicationDefaultPermissions, Folder.Folder, FindSupport):
"""Top-level system object""" """Top-level system object"""
security = ClassSecurityInfo() security = ClassSecurityInfo()
......
...@@ -36,6 +36,7 @@ import collections ...@@ -36,6 +36,7 @@ import collections
class FindSupport(Base): class FindSupport(Base):
"""Find support for Zope Folders""" """Find support for Zope Folders"""
manage_options = ()
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareProtected(view_management_screens, 'ZopeFind') security.declareProtected(view_management_screens, 'ZopeFind')
......
...@@ -20,6 +20,7 @@ from App.special_dtml import DTMLFile ...@@ -20,6 +20,7 @@ from App.special_dtml import DTMLFile
from zope.interface import implementer from zope.interface import implementer
from OFS import bbb from OFS import bbb
from OFS.FindSupport import FindSupport
from OFS.interfaces import IFolder from OFS.interfaces import IFolder
from OFS.Lockable import LockableItem from OFS.Lockable import LockableItem
from OFS.ObjectManager import ObjectManager from OFS.ObjectManager import ObjectManager
...@@ -57,7 +58,8 @@ class Folder( ...@@ -57,7 +58,8 @@ class Folder(
RoleManager, RoleManager,
Collection, Collection,
LockableItem, LockableItem,
Item): Item,
FindSupport):
"""Folders are basic container objects that provide a standard """Folders are basic container objects that provide a standard
interface for object management. Folder objects also implement interface for object management. Folder objects also implement
......
...@@ -83,7 +83,7 @@ class PropertyManager(Base): ...@@ -83,7 +83,7 @@ class PropertyManager(Base):
security.setPermissionDefault(access_contents_information, security.setPermissionDefault(access_contents_information,
('Anonymous', 'Manager')) ('Anonymous', 'Manager'))
manage_options = tuple() manage_options = ()
title = '' title = ''
_properties = ( _properties = (
......
...@@ -922,7 +922,8 @@ class IPropertyManager(Interface): ...@@ -922,7 +922,8 @@ class IPropertyManager(Interface):
"""Delete one or more properties specified by 'ids'.""" """Delete one or more properties specified by 'ids'."""
class IFolder(IObjectManager, IPropertyManager, IRoleManager, IItem): class IFolder(IObjectManager, IPropertyManager, IRoleManager,
IItem, IFindSupport):
"""Folders are basic container objects that provide a standard """Folders are basic container objects that provide a standard
interface for object management. Folder objects also implement a interface for object management. Folder objects also implement a
management interface and can have arbitrary properties. management interface and can have arbitrary properties.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment