Commit 0f544ab1 authored by 's avatar

*** empty log message ***

parent 8a06860b
...@@ -83,17 +83,19 @@ ...@@ -83,17 +83,19 @@
# #
############################################################################## ##############################################################################
__doc__='''Base Principia __doc__='''Base Principia
$Id: __init__.py,v 1.17 1998/12/04 20:15:31 jim Exp $''' $Id: __init__.py,v 1.18 1999/01/27 20:30:37 brian Exp $'''
__version__='$Revision: 1.17 $'[11:-2] __version__='$Revision: 1.18 $'[11:-2]
import Session, Draft import Session, Draft
import OFS.Image, OFS.Folder, AccessControl.User
import OFS.DTMLMethod, OFS.DTMLDocument
from ImageFile import ImageFile from ImageFile import ImageFile
import OFS.Image, OFS.Document, OFS.Folder, AccessControl.User
product_name='Base Principia' product_name='Zope built-in objects'
classes=('Session.Session', 'OFS.Image.File', classes=('OFS.DTMLMethod.DTMLMethod', 'OFS.DTMLDocument.DTMLDocument',
'OFS.Image.Image', 'OFS.Document.Document') 'Session.Session', 'OFS.Image.File', 'OFS.Image.Image',
)
klasses=('OFS.Folder.Folder', 'AccessControl.User.UserFolder') klasses=('OFS.Folder.Folder', 'AccessControl.User.UserFolder')
meta_types=( meta_types=(
...@@ -103,7 +105,8 @@ meta_types=( ...@@ -103,7 +105,8 @@ meta_types=(
{'name': 'File', 'action':'manage_addFileForm'}, {'name': 'File', 'action':'manage_addFileForm'},
{'name': 'Image', 'action':'manage_addImageForm'}, {'name': 'Image', 'action':'manage_addImageForm'},
{'name': 'Folder', 'action':'manage_addFolderForm'}, {'name': 'Folder', 'action':'manage_addFolderForm'},
{'name': 'Document', 'action':'manage_addDocumentForm'}, {'name': 'DTML Method', 'action':'manage_addDTMLMethodForm'},
{'name': 'DTML Document', 'action':'manage_addDTMLDocumentForm'},
) )
...@@ -112,16 +115,21 @@ def PUT(self): ...@@ -112,16 +115,21 @@ def PUT(self):
raise TypeError, 'Directory PUT is not supported' raise TypeError, 'Directory PUT is not supported'
methods={ methods={
'manage_addSessionForm': Session.manage_addSessionForm, # for bw compatibility
'manage_addSession': Session.manage_addSession, 'manage_addDocument': OFS.DTMLMethod.add,
'manage_addDocument': OFS.Document.manage_addDocument,
'manage_addDocumentForm': OFS.Document.manage_addDocumentForm, 'manage_addDTMLMethod': OFS.DTMLMethod.add,
'manage_addDTMLMethodForm': OFS.DTMLMethod.addForm,
'manage_addDTMLDocument': OFS.DTMLDocument.add,
'manage_addDTMLDocumentForm': OFS.DTMLDocument.addForm,
'manage_addFolder': OFS.Folder.manage_addFolder, 'manage_addFolder': OFS.Folder.manage_addFolder,
'manage_addFolderForm': OFS.Folder.manage_addFolderForm, 'manage_addFolderForm': OFS.Folder.manage_addFolderForm,
'manage_addImage': OFS.Image.manage_addImage, 'manage_addImage': OFS.Image.manage_addImage,
'manage_addImageForm': OFS.Image.manage_addImageForm, 'manage_addImageForm': OFS.Image.manage_addImageForm,
'manage_addFile': OFS.Image.manage_addFile, 'manage_addFile': OFS.Image.manage_addFile,
'manage_addFileForm': OFS.Image.manage_addFileForm, 'manage_addFileForm': OFS.Image.manage_addFileForm,
'manage_addSessionForm': Session.manage_addSessionForm,
'manage_addSession': Session.manage_addSession,
'PUT': PUT, 'PUT': PUT,
'PUT__roles__': ('Manager',), 'PUT__roles__': ('Manager',),
'manage_addUserFolder': AccessControl.User.manage_addUserFolder, 'manage_addUserFolder': AccessControl.User.manage_addUserFolder,
...@@ -136,14 +144,16 @@ misc_={ ...@@ -136,14 +144,16 @@ misc_={
__ac_permissions__=( __ac_permissions__=(
('Add Sessions',('manage_addSessionForm', 'manage_addSession')), ('Add Sessions',('manage_addSessionForm', 'manage_addSession')),
('Add Documents, Images, and Files', ('Add Documents, Images, and Files',
('manage_addDocumentForm', 'manage_addDocument', ('manage_addDTMLDocumentForm', 'manage_addDTMLDocument',
'manage_addDTMLMethodForm', 'manage_addDTMLMethod',
'manage_addFileForm', 'manage_addFile', 'manage_addFileForm', 'manage_addFile',
'manage_addImageForm', 'manage_addImage', 'manage_addImageForm', 'manage_addImage',
'PUT') 'PUT')
), ),
('Add Folders',('manage_addFolderForm', 'manage_addFolder')), ('Add Folders',('manage_addFolderForm', 'manage_addFolder')),
('Add User Folders',('manage_addUserFolder',)), ('Add User Folders',('manage_addUserFolder',)),
('Change Documents', ()), ('Change DTML Documents', ()),
('Change DTML Methods', ()),
('Change Images and Files', ()), ('Change Images and Files', ()),
('Change proxy roles', ()), ('Change proxy roles', ()),
('Change Sessions', ()), ('Change Sessions', ()),
......
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