From 56bd2afbf83178b33fa4aa7460bd1ad08c82d022 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Wed, 29 Aug 2007 17:17:19 +0000
Subject: [PATCH] Added DocumentatioHelper minimal API

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15933 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Tool/ClassTool.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Type/Tool/ClassTool.py b/product/ERP5Type/Tool/ClassTool.py
index 1e6a5fc411..319336c175 100644
--- a/product/ERP5Type/Tool/ClassTool.py
+++ b/product/ERP5Type/Tool/ClassTool.py
@@ -315,7 +315,6 @@ if allowClassTool():
 
 from AccessControl import ClassSecurityInfo
 from Products.CMFCore.utils import getToolByName
-from Products.CMFCore.WorkflowCore import WorkflowMethod
 from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
 from Products.ERP5Type.XMLObject import XMLObject
 
@@ -857,6 +856,13 @@ def initialize( context ):
         if REQUEST is not None:
           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,
                                  'asDocumentationHelper')
       def asDocumentationHelper(self, class_id):
-- 
2.30.9