Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
b43972fe
Commit
b43972fe
authored
Oct 23, 2016
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add back FindSupport mix-in to OFS Application and Folder.
parent
1abbcf66
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
4 deletions
+9
-4
src/OFS/Application.py
src/OFS/Application.py
+2
-1
src/OFS/FindSupport.py
src/OFS/FindSupport.py
+1
-0
src/OFS/Folder.py
src/OFS/Folder.py
+3
-1
src/OFS/PropertyManager.py
src/OFS/PropertyManager.py
+1
-1
src/OFS/interfaces.py
src/OFS/interfaces.py
+2
-1
No files found.
src/OFS/Application.py
View file @
b43972fe
...
...
@@ -28,6 +28,7 @@ from App import FactoryDispatcher
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
...
...
@@ -53,7 +54,7 @@ APP_MANAGER = None
@
implementer
(
IApplication
)
class
Application
(
ApplicationDefaultPermissions
,
Folder
.
Folder
):
class
Application
(
ApplicationDefaultPermissions
,
Folder
.
Folder
,
FindSupport
):
"""Top-level system object"""
security
=
ClassSecurityInfo
()
...
...
src/OFS/FindSupport.py
View file @
b43972fe
...
...
@@ -36,6 +36,7 @@ import collections
class
FindSupport
(
Base
):
"""Find support for Zope Folders"""
manage_options
=
()
security
=
ClassSecurityInfo
()
security
.
declareProtected
(
view_management_screens
,
'ZopeFind'
)
...
...
src/OFS/Folder.py
View file @
b43972fe
...
...
@@ -20,6 +20,7 @@ from App.special_dtml import DTMLFile
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
...
...
@@ -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
...
...
src/OFS/PropertyManager.py
View file @
b43972fe
...
...
@@ -83,7 +83,7 @@ class PropertyManager(Base):
security
.
setPermissionDefault
(
access_contents_information
,
(
'Anonymous'
,
'Manager'
))
manage_options
=
tuple
()
manage_options
=
()
title
=
''
_properties
=
(
...
...
src/OFS/interfaces.py
View file @
b43972fe
...
...
@@ -922,7 +922,8 @@ class IPropertyManager(Interface):
"""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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment