Commit 56bd2afb authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added DocumentatioHelper minimal API

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15933 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16cd9cd2
...@@ -315,7 +315,6 @@ if allowClassTool(): ...@@ -315,7 +315,6 @@ if allowClassTool():
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from Products.CMFCore.WorkflowCore import WorkflowMethod
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
...@@ -857,6 +856,13 @@ def initialize( context ): ...@@ -857,6 +856,13 @@ def initialize( context ):
if REQUEST is not None: if REQUEST is not None:
REQUEST.RESPONSE.redirect('%s/manage_viewProductGeneration?manage_tabs_message=New+Product+Saved+In+%s' % (self.absolute_url(), base_path)) REQUEST.RESPONSE.redirect('%s/manage_viewProductGeneration?manage_tabs_message=New+Product+Saved+In+%s' % (self.absolute_url(), base_path))
security.declareProtected(Permissions.ManagePortal, 'getDocumentationHelper')
def getDocumentationHelper(self, uri, helper_class):
"""
Returns a documentation of the appropriate class (helper_class)
for a given uri
"""
security.declareProtected( Permissions.ManagePortal, security.declareProtected( Permissions.ManagePortal,
'asDocumentationHelper') 'asDocumentationHelper')
def asDocumentationHelper(self, class_id): def asDocumentationHelper(self, class_id):
......
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