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

Log in
Name

Password

 

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

--- PropertyFolder.py.orderedfolder 2003-02-24 15:19:08.000000000 -0500
+++ PropertyFolder.py 2004-01-09 13:48:12.000000000 -0500
@@ -19,7 +19,7 @@

from urllib import quote
from Globals import DTMLFile, InitializeClass
-from OFS.Folder import Folder
+from OFS.OrderedFolder import OrderedFolder
from OFS.PropertyManager import PropertyManager
from Products.ZCatalog.CatalogPathAwareness import CatalogAware

@@ -37,20 +37,20 @@

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

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

meta_type='PropertyFolder'

id = title = object_type = PropertyFolderDescription = ''

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

property_extensible_schema__ = 1
published = 0

- __ac_permissions__ = Folder.__ac_permissions__+(
+ __ac_permissions__ = OrderedFolder.__ac_permissions__+(
('View',('__call__', 'text_content', 'PrincipiaSearchSource')),
('PropertyFolder: Edit', ('manage_propertiesForm',
'manage_editProperties',
@@ -68,7 +68,7 @@

_properties = ({'id':'title', 'type':'string', 'mode':'w'}, )

- manage_options = Folder.manage_options + (
+ manage_options = OrderedFolder.manage_options + (
{'label': 'Manage', 'action': 'manage_manageForm'},)

manage_manageForm = DTMLFile('dtml/manageForm', globals())