Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
613f3172
Commit
613f3172
authored
Feb 22, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added initial support for pickling classes
parent
21b2c409
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
34 deletions
+48
-34
lib/python/Products/OFSP/__init__.py
lib/python/Products/OFSP/__init__.py
+48
-34
No files found.
lib/python/Products/OFSP/__init__.py
View file @
613f3172
...
...
@@ -83,10 +83,10 @@
#
##############################################################################
__doc__
=
'''Base Principia
$Id: __init__.py,v 1.1
8 1999/01/27 20:30:37 brian
Exp $'''
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
$Id: __init__.py,v 1.1
9 1999/02/22 20:51:44 jim
Exp $'''
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
import
Session
,
Draft
import
Session
,
Draft
,
ZClasses
import
OFS.Image
,
OFS
.
Folder
,
AccessControl
.
User
import
OFS.DTMLMethod
,
OFS
.
DTMLDocument
from
ImageFile
import
ImageFile
...
...
@@ -99,25 +99,34 @@ classes=('OFS.DTMLMethod.DTMLMethod', 'OFS.DTMLDocument.DTMLDocument',
klasses
=
(
'OFS.Folder.Folder'
,
'AccessControl.User.UserFolder'
)
meta_types
=
(
{
'name'
:
Draft
.
Draft
.
meta_type
,
'action'
:
'manage_addPrincipiaDraftForm'
},
{
'name'
:
'User Folder'
,
'action'
:
'manage_addUserFolder'
},
{
'name'
:
'Session'
,
'action'
:
'manage_addSessionForm'
},
{
'name'
:
'File'
,
'action'
:
'manage_addFileForm'
},
{
'name'
:
'Image'
,
'action'
:
'manage_addImageForm'
},
{
'name'
:
'Folder'
,
'action'
:
'manage_addFolderForm'
},
{
'name'
:
'DTML Method'
,
'action'
:
'manage_addDTMLMethodForm'
},
{
'name'
:
'DTML Document'
,
'action'
:
'manage_addDTMLDocumentForm'
},
ZClasses
.
meta_types
+
(
{
'name'
:
Draft
.
Draft
.
meta_type
,
'action'
:
'manage_addPrincipiaDraftForm'
},
{
'name'
:
'User Folder'
,
'action'
:
'manage_addUserFolder'
},
{
'name'
:
'Session'
,
'action'
:
'manage_addSessionForm'
},
{
'name'
:
'File'
,
'action'
:
'manage_addFileForm'
},
{
'name'
:
'Image'
,
'action'
:
'manage_addImageForm'
},
{
'name'
:
'Folder'
,
'action'
:
'manage_addFolderForm'
},
{
'name'
:
'DTML Method'
,
'action'
:
'manage_addDTMLMethodForm'
},
{
'name'
:
'DTML Document'
,
'action'
:
'manage_addDTMLDocumentForm'
},
)
)
def
PUT
(
self
):
# This is here mainly as a hac^H^Hook for holding PUT permissions
raise
TypeError
,
'Directory PUT is not supported'
methods
=
{
# for bw compatibility
'manage_addDocument'
:
OFS
.
DTMLMethod
.
add
,
'manage_addDocument'
:
OFS
.
DTMLMethod
.
add
,
'manage_addDTMLMethod'
:
OFS
.
DTMLMethod
.
add
,
'manage_addDTMLMethodForm'
:
OFS
.
DTMLMethod
.
addForm
,
'manage_addDTMLDocument'
:
OFS
.
DTMLDocument
.
add
,
...
...
@@ -136,30 +145,35 @@ methods={
'manage_addPrincipiaDraftForm'
:
Draft
.
manage_addPrincipiaDraftForm
,
'manage_addPrincipiaDraft'
:
Draft
.
manage_addPrincipiaDraft
,
}
methods
.
update
(
ZClasses
.
methods
)
misc_
=
{
'session'
:
ImageFile
(
'images/session.gif'
,
globals
()),
}
misc_
.
update
(
ZClasses
.
misc_
)
__ac_permissions__
=
(
(
'Add Sessions'
,(
'manage_addSessionForm'
,
'manage_addSession'
)),
(
'Add Documents, Images, and Files'
,
(
'manage_addDTMLDocumentForm'
,
'manage_addDTMLDocument'
,
'manage_addDTMLMethodForm'
,
'manage_addDTMLMethod'
,
'manage_addFileForm'
,
'manage_addFile'
,
'manage_addImageForm'
,
'manage_addImage'
,
'PUT'
)
),
(
'Add Folders'
,(
'manage_addFolderForm'
,
'manage_addFolder'
)),
(
'Add User Folders'
,(
'manage_addUserFolder'
,)),
(
'Change DTML Documents'
,
()),
(
'Change DTML Methods'
,
()),
(
'Change Images and Files'
,
()),
(
'Change proxy roles'
,
()),
(
'Change Sessions'
,
()),
(
'Join/leave Sessions'
,
()),
(
'Save/discard Session changes'
,
()),
(
'Manage users'
,
()),
#('Add DraftFolders',
# ('manage_addDraftFolderForm', 'manage_addDraftFolder')),
ZClasses
.
__ac_permissions__
+
(
(
'Add Sessions'
,(
'manage_addSessionForm'
,
'manage_addSession'
)),
(
'Add Documents, Images, and Files'
,
(
'manage_addDTMLDocumentForm'
,
'manage_addDTMLDocument'
,
'manage_addDTMLMethodForm'
,
'manage_addDTMLMethod'
,
'manage_addFileForm'
,
'manage_addFile'
,
'manage_addImageForm'
,
'manage_addImage'
,
'PUT'
)
),
(
'Add Folders'
,(
'manage_addFolderForm'
,
'manage_addFolder'
)),
(
'Add User Folders'
,(
'manage_addUserFolder'
,)),
(
'Change DTML Documents'
,
()),
(
'Change DTML Methods'
,
()),
(
'Change Images and Files'
,
()),
(
'Change proxy roles'
,
()),
(
'Change Sessions'
,
()),
(
'Join/leave Sessions'
,
()),
(
'Save/discard Session changes'
,
()),
(
'Manage users'
,
()),
#('Add DraftFolders',
# ('manage_addDraftFolderForm', 'manage_addDraftFolder')),
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment