Skip to content

Commit

Permalink
Add back FindSupport mix-in to OFS Application and Folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Oct 23, 2016
1 parent 1abbcf6 commit b43972f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/OFS/Application.py
Expand Up @@ -28,6 +28,7 @@
from App.ProductContext import ProductContext
from DateTime import DateTime
from OFS import bbb
from OFS.FindSupport import FindSupport
from OFS.metaconfigure import get_packages_to_initialize
from OFS.metaconfigure import package_initialized
from OFS.userfolder import UserFolder
Expand All @@ -53,7 +54,7 @@


@implementer(IApplication)
class Application(ApplicationDefaultPermissions, Folder.Folder):
class Application(ApplicationDefaultPermissions, Folder.Folder, FindSupport):
"""Top-level system object"""

security = ClassSecurityInfo()
Expand Down
1 change: 1 addition & 0 deletions src/OFS/FindSupport.py
Expand Up @@ -36,6 +36,7 @@
class FindSupport(Base):
"""Find support for Zope Folders"""

manage_options = ()
security = ClassSecurityInfo()

security.declareProtected(view_management_screens, 'ZopeFind')
Expand Down
4 changes: 3 additions & 1 deletion src/OFS/Folder.py
Expand Up @@ -20,6 +20,7 @@
from zope.interface import implementer

from OFS import bbb
from OFS.FindSupport import FindSupport
from OFS.interfaces import IFolder
from OFS.Lockable import LockableItem
from OFS.ObjectManager import ObjectManager
Expand Down Expand Up @@ -57,7 +58,8 @@ class Folder(
RoleManager,
Collection,
LockableItem,
Item):
Item,
FindSupport):

"""Folders are basic container objects that provide a standard
interface for object management. Folder objects also implement
Expand Down
2 changes: 1 addition & 1 deletion src/OFS/PropertyManager.py
Expand Up @@ -83,7 +83,7 @@ class PropertyManager(Base):
security.setPermissionDefault(access_contents_information,
('Anonymous', 'Manager'))

manage_options = tuple()
manage_options = ()

title = ''
_properties = (
Expand Down
3 changes: 2 additions & 1 deletion src/OFS/interfaces.py
Expand Up @@ -922,7 +922,8 @@ def manage_delProperties(ids=None, REQUEST=None):
"""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
interface for object management. Folder objects also implement a
management interface and can have arbitrary properties.
Expand Down

0 comments on commit b43972f

Please sign in to comment.