Commit 5d0e4e0b authored by Jean-Paul Smets's avatar Jean-Paul Smets

Now static file


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@239 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fc3a7d67
# ERP5Type has a specific __init__ file to circumvent circular references
# Hide internal implementation
from Globals import InitializeClass
from Products.ERP5Type.Document.Folder import Folder
# Default constructor for Folder
# Can be overriden by adding a method addFolder in class Folder
def addFolder(folder, id, REQUEST=None, **kw):
o = Folder(id)
folder._setObject(id, o)
if kw is not None: o.__of__(folder)._edit(force_update=1, **kw)
# contentCreate already calls reindex 3 times ...
# o.reindexObject()
if REQUEST is not None:
REQUEST['RESPONSE'].redirect( 'manage_main' )
InitializeClass(Folder)
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