mò .á¸Ec@s#dZdkZdkZdklZdklZdklZdk l Z dk l Z dkl Z dk lZd klZdkZdkZdkZdkZd klZe d eƒƒZd d d dd„Zdeieieiieiieieifd„ƒYZeeƒdS(s‹Folder object Folders are the basic container objects and are analogous to directories. $Id: Folder.py 40300 2005-11-21 16:54:03Z efge $ N(sInitializeClass(sgetSecurityManager(s Unauthorized(sadd_page_templates(sadd_user_folders(sDTMLFile(sWriteLockInterface(s implements(sIFoldersdtml/folderAddticCsât|ƒ}||_|i||ƒ|i|ƒ}tƒi}|o+|t |ƒp t d‚n|i ƒn|o>|t|ƒp t d‚n|ididdddƒn|d j o|i||dd ƒSnd S( sÜAdd a new Folder object with id *id*. If the 'createPublic' and 'createUserF' parameters are set to any true value, an 'index_html' and a 'UserFolder' objects are created respectively in the new folder. s+You are not authorized to add User Folders.s-You are not authorized to add Page Templates.t PageTemplatestidt index_htmlttitleRt update_menuiN(tFolderRtobRtselft _setObjectt_getObtgetSecurityManagertcheckPermissiont createUserFtadd_user_folderst Unauthorizedtmanage_addUserFoldert createPublictadd_page_templatestmanage_addProducttmanage_addPageTemplatetREQUESTtNonet manage_main(RRRRR RRR ((t)/data/zmath/zope/lib/python/OFS/Folder.pytmanage_addFolder%s      ! RcBs¶tZdZefZeeƒdZhdd<dd<ddRRR((Rt?s           $=&