Commit 5132aeba authored by Hanno Schlichting's avatar Hanno Schlichting

No longer use HelpSys pages from ``Products.OFSP`` in core Zope 2.

parent 4d4491be
...@@ -22,6 +22,8 @@ Bugs Fixed ...@@ -22,6 +22,8 @@ Bugs Fixed
Restructuring Restructuring
+++++++++++++ +++++++++++++
- No longer use HelpSys pages from ``Products.OFSP`` in core Zope 2.
- Register OFS as a package and give it an initialize function. Moved - Register OFS as a package and give it an initialize function. Moved
registration of OFS classes there from Products.OFSP. registration of OFS classes there from Products.OFSP.
......
...@@ -61,18 +61,12 @@ class DatabaseManager(Item, Implicit): ...@@ -61,18 +61,12 @@ class DatabaseManager(Item, Implicit):
meta_type = 'Database Management' meta_type = 'Database Management'
icon = 'p_/DatabaseManagement_icon' icon = 'p_/DatabaseManagement_icon'
manage_options=( manage_options=((
( {'label':'Database', 'action':'manage_main'},
{'label':'Database', 'action':'manage_main', {'label':'Activity', 'action':'manage_activity'},
'help':('OFSP','Database-Management_Database.stx')}, {'label':'Cache Parameters', 'action':'manage_cacheParameters'},
{'label':'Activity', 'action':'manage_activity', {'label':'Flush Cache', 'action':'manage_cacheGC'},
'help':('OFSP','Database-Management_Activity.stx')}, ))
{'label':'Cache Parameters', 'action':'manage_cacheParameters',
'help':('OFSP','Database-Management_Cache-Parameters.stx')},
{'label':'Flush Cache', 'action':'manage_cacheGC',
'help':('OFSP','Database-Management_Flush-Cache.stx')},
)
)
# These need to be here rather to make tabs work correctly. This # These need to be here rather to make tabs work correctly. This
# needs to be revisited. # needs to be revisited.
...@@ -160,13 +154,10 @@ class DebugManager(Item, Implicit): ...@@ -160,13 +154,10 @@ class DebugManager(Item, Implicit):
meta_type = name meta_type = name
icon = 'p_/DebugManager_icon' icon = 'p_/DebugManager_icon'
manage_options=( manage_options=((
( {'label':'Debugging Info', 'action':'manage_main', {'label':'Debugging Info', 'action':'manage_main'},
'help':('OFSP','Debug-Information_Debug.stx')}, {'label':'Profiling', 'action':'manage_profile'},
{'label':'Profiling', 'action':'manage_profile', ))
'help':('OFSP','Debug-Information_Profile.stx')},
)
)
manage_debug = DTMLFile('dtml/debug', globals()) manage_debug = DTMLFile('dtml/debug', globals())
...@@ -293,9 +284,8 @@ class ApplicationManager(Folder,CacheManager): ...@@ -293,9 +284,8 @@ class ApplicationManager(Folder,CacheManager):
) )
manage_options=( manage_options=(
({'label':'Contents', 'action':'manage_main', ({'label':'Contents', 'action':'manage_main'}, ) +
'help':('OFSP','Control-Panel_Contents.stx')}, UndoSupport.manage_options
) + UndoSupport.manage_options
) )
id = 'Control_Panel' id = 'Control_Panel'
......
...@@ -39,8 +39,7 @@ class DavLockManager(Item, Implicit): ...@@ -39,8 +39,7 @@ class DavLockManager(Item, Implicit):
manage_davlocks._setName('manage_davlocks') manage_davlocks._setName('manage_davlocks')
manage_options = ( manage_options = (
{'label': 'Write Locks', 'action': 'manage_main', {'label': 'Write Locks', 'action': 'manage_main'}
'help': ('OFSP', 'DavLocks-ManageLocks.stx'), },
) )
def findLockedObjects(self, frompath=''): def findLockedObjects(self, frompath=''):
......
...@@ -276,8 +276,8 @@ def initializeProduct(productp, name, home, app): ...@@ -276,8 +276,8 @@ def initializeProduct(productp, name, home, app):
break break
if not found: if not found:
product.manage_options = product.manage_options + ( product.manage_options = product.manage_options + (
{'label':'Refresh', 'action':'manage_refresh', {'label':'Refresh', 'action':'manage_refresh'},
'help': ('OFSP','Product_Refresh.stx')},) )
return product return product
......
...@@ -37,8 +37,7 @@ class UndoSupport(ExtensionClass.Base): ...@@ -37,8 +37,7 @@ class UndoSupport(ExtensionClass.Base):
security = ClassSecurityInfo() security = ClassSecurityInfo()
manage_options=( manage_options=(
{'label': 'Undo', 'action': 'manage_UndoForm', {'label': 'Undo', 'action': 'manage_UndoForm'},
'help': ('OFSP', 'Undo.stx')},
) )
security.declareProtected(undo_changes, 'manage_UndoForm') security.declareProtected(undo_changes, 'manage_UndoForm')
......
...@@ -86,7 +86,6 @@ class Cacheable: ...@@ -86,7 +86,6 @@ class Cacheable:
'label':'Cache', 'label':'Cache',
'action':'ZCacheable_manage', 'action':'ZCacheable_manage',
'filter':filterCacheTab, 'filter':filterCacheTab,
'help':('OFSP','Cacheable-properties.stx'),
},) },)
security = ClassSecurityInfo() security = ClassSecurityInfo()
...@@ -422,7 +421,6 @@ class CacheManager: ...@@ -422,7 +421,6 @@ class CacheManager:
manage_options = ( manage_options = (
{'label':'Associate', {'label':'Associate',
'action':'ZCacheManager_associate', 'action':'ZCacheManager_associate',
'help':('OFSP','CacheManager-associate.stx'),
}, },
) )
......
...@@ -70,15 +70,11 @@ class DTMLMethod(RestrictedDTML, ...@@ -70,15 +70,11 @@ class DTMLMethod(RestrictedDTML,
func_code.co_varnames = 'self', 'REQUEST', 'RESPONSE' func_code.co_varnames = 'self', 'REQUEST', 'RESPONSE'
func_code.co_argcount = 3 func_code.co_argcount = 3
manage_options = ( manage_options = ((
( {'label': 'Edit', 'action': 'manage_main'},
{'label': 'Edit', 'action': 'manage_main', {'label': 'View', 'action': ''},
'help': ('OFSP', 'DTML-DocumentOrMethod_Edit.stx')}, {'label': 'Proxy', 'action': 'manage_proxyForm'},
{'label': 'View', 'action': '', )
'help': ('OFSP', 'DTML-DocumentOrMethod_View.stx')},
{'label': 'Proxy', 'action': 'manage_proxyForm',
'help': ('OFSP', 'DTML-DocumentOrMethod_Proxy.stx')},
)
+ Historical.manage_options + Historical.manage_options
+ RoleManager.manage_options + RoleManager.manage_options
+ Item_w__name__.manage_options + Item_w__name__.manage_options
......
...@@ -52,17 +52,14 @@ class FindSupport(Base): ...@@ -52,17 +52,14 @@ class FindSupport(Base):
security.declareProtected(view_management_screens, 'manage_findAdv') security.declareProtected(view_management_screens, 'manage_findAdv')
manage_findAdv=DTMLFile('dtml/findAdv', globals(), manage_findAdv=DTMLFile('dtml/findAdv', globals(),
management_view='Find', management_view='Find')
help_topic='Find_Advanced.stx',
help_product='OFSP')
security.declareProtected(view_management_screens, 'manage_findResult') security.declareProtected(view_management_screens, 'manage_findResult')
manage_findResult=DTMLFile('dtml/findResult', globals(), manage_findResult=DTMLFile('dtml/findResult', globals(),
management_view='Find') management_view='Find')
manage_options=( manage_options=(
{'label':'Find', 'action':'manage_findForm', {'label':'Find', 'action':'manage_findForm'},
'help':('OFSP','Find.stx')},
) )
security.declareProtected(view_management_screens, 'ZopeFind') security.declareProtected(view_management_screens, 'ZopeFind')
......
...@@ -92,14 +92,11 @@ class Folder( ...@@ -92,14 +92,11 @@ class Folder(
_properties=({'id':'title', 'type': 'string','mode':'wd'},) _properties=({'id':'title', 'type': 'string','mode':'wd'},)
manage_options=( manage_options=(
ObjectManager.manage_options+ ObjectManager.manage_options +
( ({'label': 'View', 'action': ''}, ) +
{'label':'View', 'action':'', PropertyManager.manage_options +
'help':('OFSP','Folder_View.stx')}, RoleManager.manage_options +
)+ Item.manage_options +
PropertyManager.manage_options+
RoleManager.manage_options+
Item.manage_options+
FindSupport.manage_options FindSupport.manage_options
) )
......
...@@ -97,10 +97,9 @@ class Historical(Base): ...@@ -97,10 +97,9 @@ class Historical(Base):
HistoricalRevisions=Historian() HistoricalRevisions=Historian()
manage_options=({'label':'History', 'action':'manage_change_history_page', manage_options=(
'help':('OFSP','History.stx') {'label':'History', 'action':'manage_change_history_page'},
}, )
)
security.declareProtected(view_history, 'manage_change_history_page') security.declareProtected(view_history, 'manage_change_history_page')
manage_change_history_page = DTMLFile( manage_change_history_page = DTMLFile(
......
...@@ -120,10 +120,8 @@ class File(Persistent, Implicit, PropertyManager, ...@@ -120,10 +120,8 @@ class File(Persistent, Implicit, PropertyManager,
manage_options=( manage_options=(
( (
{'label':'Edit', 'action':'manage_main', {'label': 'Edit', 'action': 'manage_main'},
'help':('OFSP','File_Edit.stx')}, {'label': 'View', 'action': ''},
{'label':'View', 'action':'',
'help':('OFSP','File_View.stx')},
) )
+ PropertyManager.manage_options + PropertyManager.manage_options
+ RoleManager.manage_options + RoleManager.manage_options
...@@ -788,10 +786,8 @@ class Image(File): ...@@ -788,10 +786,8 @@ class Image(File):
) )
manage_options=( manage_options=(
({'label':'Edit', 'action':'manage_main', ({'label':'Edit', 'action':'manage_main'},
'help':('OFSP','Image_Edit.stx')}, {'label':'View', 'action':'view_image_or_file'}, )
{'label':'View', 'action':'view_image_or_file',
'help':('OFSP','Image_View.stx')},)
+ PropertyManager.manage_options + PropertyManager.manage_options
+ RoleManager.manage_options + RoleManager.manage_options
+ Item_w__name__.manage_options + Item_w__name__.manage_options
......
...@@ -172,8 +172,7 @@ class ObjectManager(CopyContainer, ...@@ -172,8 +172,7 @@ class ObjectManager(CopyContainer,
manage_index_main=DTMLFile('dtml/index_main', globals()) manage_index_main=DTMLFile('dtml/index_main', globals())
manage_options=( manage_options=(
{'label':'Contents', 'action':'manage_main', {'label':'Contents', 'action':'manage_main'},
'help':('OFSP','ObjectManager_Contents.stx')},
) )
isAnObjectManager=1 isAnObjectManager=1
......
...@@ -47,11 +47,9 @@ class OrderSupport(object): ...@@ -47,11 +47,9 @@ class OrderSupport(object):
_default_sort_key = 'position' _default_sort_key = 'position'
_default_sort_reverse = 0 _default_sort_reverse = 0
manage_options = ( { 'label':'Contents', manage_options = (
'action':'manage_main', {'label':'Contents', 'action':'manage_main'},
'help':('OFSP','OrderSupport_Contents.stx') } )
,
)
# #
# ZMI Methods # ZMI Methods
......
...@@ -107,8 +107,7 @@ class PropertyManager(Base, ElementWithAttributes): ...@@ -107,8 +107,7 @@ class PropertyManager(Base, ElementWithAttributes):
('Anonymous', 'Manager')) ('Anonymous', 'Manager'))
manage_options=( manage_options=(
{'label':'Properties', 'action':'manage_propertiesForm', {'label':'Properties', 'action':'manage_propertiesForm'},
'help':('OFSP','Properties.stx')},
) )
security.declareProtected(manage_properties, 'manage_propertiesForm') security.declareProtected(manage_properties, 'manage_propertiesForm')
......
...@@ -460,9 +460,7 @@ class SimpleItem(Item, ...@@ -460,9 +460,7 @@ class SimpleItem(Item,
security.setPermissionDefault(View, ('Manager',)) security.setPermissionDefault(View, ('Manager',))
manage_options=Item.manage_options+( manage_options=Item.manage_options+(
{'label':'Security', {'label': 'Security', 'action': 'manage_access'},
'action':'manage_access',
'help':('OFSP', 'Security.stx')},
) )
InitializeClass(SimpleItem) InitializeClass(SimpleItem)
<dtml-var manage_page_header> <dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _, <dtml-var "manage_form_title(this(), _,
form_title='Add Folder (Ordered)', form_title='Add Folder (Ordered)'
help_product='OFSP', )">
help_topic='Folder_Add.stx'
)">
<p class="form-help"> <p class="form-help">
An ordered Folder contains other objects. Use Folders to organize your An ordered Folder contains other objects. Use Folders to organize your
web objects in to logical groups. The <em>create public interface</em> web objects in to logical groups. The <em>create public interface</em>
......
<dtml-var manage_page_header> <dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _, <dtml-var "manage_form_title(this(), _,
form_title='Add DTML Document', form_title='Add DTML Document'
help_product='OFSP', )">
help_topic='DTML-DocumentOrMethod_Add.stx'
)">
<p class="form-help"> <p class="form-help">
A DTML Document is used to hold text content. It can contain A DTML Document is used to hold text content. It can contain
......
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
<dtml-var "manage_form_title(this(), _, <dtml-var "manage_form_title(this(), _,
form_title='Add Folder', form_title='Add Folder',
help_product='OFSP', )">
help_topic='Folder_Add.stx'
)">
<p class="form-help"> <p class="form-help">
A Folder contains other objects. Use Folders to organize your A Folder contains other objects. Use Folders to organize your
web objects in to logical groups. The <em>create public interface</em> web objects in to logical groups. The <em>create public interface</em>
......
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
<dtml-var "manage_form_title(this(), _, <dtml-var "manage_form_title(this(), _,
form_title='Add %s' % Kind, form_title='Add %s' % Kind,
help_product='OFSP', )">
help_topic='File_Add.stx'
)">
<p class="form-help"> <p class="form-help">
Select a file to upload from your local computer by clicking the Select a file to upload from your local computer by clicking the
......
<dtml-var manage_page_header> <dtml-var manage_page_header>
<dtml-var "manage_tabs(this(), _, <dtml-var "manage_tabs(this(), _, )">
help_product='OFSP',
help_topic='ObjectManager_Import-Export.stx'
)">
<p class="form-help"> <p class="form-help">
You can export Zope objects to a file in order to transfer You can export Zope objects to a file in order to transfer
......
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
<dtml-var "manage_form_title(this(), _, <dtml-var "manage_form_title(this(), _,
form_title='Add DTML Method', form_title='Add DTML Method',
help_product='OFSP', )">
help_topic='DTML-DocumentOrMethod_Add.stx'
)">
<p class="form-help"> <p class="form-help">
A DTML Method is used to hold scripting tags and text content. A DTML Method is used to hold scripting tags and text content.
......
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
<dtml-var "manage_form_title(this(), _, <dtml-var "manage_form_title(this(), _,
form_title='Rename Items', form_title='Rename Items',
help_product='OFSP', )">
help_topic='ObjectManager_Rename.stx'
)">
<dtml-if expr="REQUEST.has_key('ids')"> <dtml-if expr="REQUEST.has_key('ids')">
<form action="<dtml-var "REQUEST.URL1" html_quote>" method="post"> <form action="<dtml-var "REQUEST.URL1" html_quote>" method="post">
......
...@@ -44,11 +44,6 @@ TALES Python expressions ...@@ -44,11 +44,6 @@ TALES Python expressions
keep them from generating very large numbers and sequences. This keep them from generating very large numbers and sequences. This
limitation helps protect against denial of service attacks. limitation helps protect against denial of service attacks.
In addition, these utility functions are available: 'DateTime',
'test', and 'same_type'. See "DTML
functions":../../OFSP/Help/dtml-funcs.stx for more
information on these functions.
Finally, these functions are available in Python expressions, Finally, these functions are available in Python expressions,
but not in Python-based scripts: but not in Python-based scripts:
......
Accelerated HTTP Cache Managers Accelerated HTTP Cache Managers
For background information, see the
<a href="../../OFSP/Help/Caching.stx">description of cache management</a>.
The HTTP protocol provides for headers that can indicate to The HTTP protocol provides for headers that can indicate to
downstream proxy caches, browser caches, and dedicated caches that downstream proxy caches, browser caches, and dedicated caches that
certain documents and images are cacheable. Most images, for example, certain documents and images are cacheable. Most images, for example,
......
RAM Cache Managers RAM Cache Managers
For background information, see the
<a href="../../OFSP/Help/Caching.stx">description of cache management</a>.
The RAM cache manager allows you to cache the result of calling The RAM cache manager allows you to cache the result of calling
expensive objects, such as Python Scripts and External Methods, expensive objects, such as Python Scripts and External Methods,
in memory. It provides access statistics and simple configuration in memory. It provides access statistics and simple configuration
......
...@@ -96,35 +96,25 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -96,35 +96,25 @@ class ZCatalog(Folder, Persistent, Implicit):
manage_options = ( manage_options = (
{'label': 'Contents', # TAB: Contents {'label': 'Contents', # TAB: Contents
'action': 'manage_main', 'action': 'manage_main'},
'help': ('OFSP','ObjectManager_Contents.stx')},
{'label': 'Catalog', # TAB: Cataloged Objects {'label': 'Catalog', # TAB: Cataloged Objects
'action': 'manage_catalogView', 'action': 'manage_catalogView'},
'help':('ZCatalog','ZCatalog_Cataloged-Objects.stx')},
{'label': 'Properties', # TAB: Properties {'label': 'Properties', # TAB: Properties
'action': 'manage_propertiesForm', 'action': 'manage_propertiesForm'},
'help': ('OFSP','Properties.stx')},
{'label': 'Indexes', # TAB: Indexes {'label': 'Indexes', # TAB: Indexes
'action': 'manage_catalogIndexes', 'action': 'manage_catalogIndexes'},
'help': ('ZCatalog','ZCatalog_Indexes.stx')},
{'label': 'Metadata', # TAB: Metadata {'label': 'Metadata', # TAB: Metadata
'action': 'manage_catalogSchema', 'action': 'manage_catalogSchema'},
'help':('ZCatalog','ZCatalog_MetaData-Table.stx')},
{'label': 'Find Objects', # TAB: Find Objects {'label': 'Find Objects', # TAB: Find Objects
'action': 'manage_catalogFind', 'action': 'manage_catalogFind'},
'help':('ZCatalog','ZCatalog_Find-Items-to-ZCatalog.stx')},
{'label': 'Advanced', # TAB: Advanced {'label': 'Advanced', # TAB: Advanced
'action': 'manage_catalogAdvanced', 'action': 'manage_catalogAdvanced'},
'help':('ZCatalog','ZCatalog_Advanced.stx')},
{'label': 'Undo', # TAB: Undo {'label': 'Undo', # TAB: Undo
'action': 'manage_UndoForm', 'action': 'manage_UndoForm'},
'help': ('OFSP','Undo.stx')},
{'label': 'Security', # TAB: Security {'label': 'Security', # TAB: Security
'action': 'manage_access', 'action': 'manage_access'},
'help': ('OFSP','Security.stx')},
{'label': 'Ownership', # TAB: Ownership {'label': 'Ownership', # TAB: Ownership
'action': 'manage_owner', 'action': 'manage_owner'}
'help': ('OFSP','Ownership.stx'),}
) )
security.declareProtected(manage_zcatalog_entries, 'manage_main') security.declareProtected(manage_zcatalog_entries, 'manage_main')
......
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