You are not logged in Log in Join
You are here: Home » Members » hewei » Zope RPMs for RedHat » Zope Product RPMs » Property Tools » Patch for PropertyTools to make use of the 'Folder (Ordered)' object » View Document

Log in
Name

Password

 

Patch for PropertyTools to make use of the 'Folder (Ordered)' object

--- PropertyFolder/PropertyFolder.py.orig 2004-02-12 05:29:47.000000000 +0800
+++ PropertyFolder/PropertyFolder.py 2004-03-31 14:02:41.000000000 +0800
@@ -20,7 +20,7 @@
from Globals import DTMLFile, InitializeClass
from AccessControl import ClassSecurityInfo
from AccessControl.Permissions import change_permissions, view
-from OFS.Folder import Folder
+from OFS.OrderedFolder import OrderedFolder
from Products.PropertyTools.PropertyTools import PropertyTools

def manage_addPropertyFolder(self, id, title = '', REQUEST = None):
@@ -35,20 +35,20 @@

manage_addPropertyFolderForm = DTMLFile('dtml/addForm', globals())

-class PropertyFolder(PropertyTools, Folder):
+class PropertyFolder(PropertyTools, OrderedFolder):
""" PropertyFolder: Just a simple PropertyFolder with locks """

security = ClassSecurityInfo()

meta_type='PropertyFolder'

- possible_meta_types = Folder.all_meta_types
+ possible_meta_types = OrderedFolder.all_meta_types
selected_meta_types = []

- __ac_permissions__ = Folder.__ac_permissions__ + \
+ __ac_permissions__ = OrderedFolder.__ac_permissions__ + \
PropertyTools.__ac_permissions__

- manage_options = Folder.manage_options + (
+ manage_options = OrderedFolder.manage_options + (
PropertyTools.manage_options[-1],) + (
{'label':'Metatypes', 'action':'manage_metatypesForm'},)