Commit 4a77c011 authored by Jean-Paul Smets's avatar Jean-Paul Smets

newTempBase added


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@625 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e53fc10e
......@@ -15,3 +15,16 @@ def addFolder(folder, id, REQUEST=None, **kw):
REQUEST['RESPONSE'].redirect( 'manage_main' )
InitializeClass(ERP5Folder.Folder)
from Products.ERP5Type.Base import TempBase
from Products.PythonScripts.Utility import allow_class
allow_class(TempBase)
def newTempBase(folder, id, REQUEST=None, **kw):
o = TempBase(id)
o = o.__of__(folder)
if kw is not None: o._edit(force_update=1, **kw)
return o
from AccessControl import ModuleSecurityInfo
ModuleSecurityInfo('Products.ERP5Type.Document').declarePublic('newTempBase',)
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