[Zope-Checkins] CVS: Packages/OFS - Folder.py:1.95
Evan Simpson
evan@zope.com
Mon, 15 Oct 2001 10:38:14 -0400
Update of /cvs-repository/Packages/OFS
In directory cvs.zope.org:/tmp/cvs-serv1629
Modified Files:
Folder.py
Log Message:
Create index_html as a Page Template.
=== Packages/OFS/Folder.py 1.94 => 1.95 ===
if createPublic:
- if not checkPermission('Add Documents, Images, and Files', ob):
+ if not checkPermission('Add Page Templates', ob):
raise 'Unauthorized', (
- 'You are not authorized to add DTML Documents.'
+ 'You are not authorized to add Page Templates.'
)
- ob.manage_addDTMLDocument(id='index_html', title='')
+ ob.manage_addProduct['PageTemplates'].manage_addPageTemplate(
+ id='index_html', title='')
if REQUEST is not None:
return self.manage_main(self, REQUEST, update_menu=1)