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
d2487d10
Commit
d2487d10
authored
Jan 09, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Security changes
parent
dd4f5983
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
lib/python/OFS/Document.py
lib/python/OFS/Document.py
+3
-2
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+3
-3
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+5
-1
No files found.
lib/python/OFS/Document.py
View file @
d2487d10
"""Document object"""
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
...
...
@@ -40,7 +40,8 @@ class Document(HTML, Explicit, RoleManager, Item_w__name__):
(
'View management screens'
,
[
'manage'
,
'manage_tabs'
,
'manage_uploadForm'
]),
(
'Change permissions'
,
[
'manage_access'
]),
(
'Change/upload data'
,
[
'manage_edit'
,
'manage_upload'
,
'PUT'
]),
(
'View'
,
[
''
,]),
(
'View'
,
[
'__call__'
,]),
(
'Shared permission'
,
[
''
,]),
)
__ac_types__
=
((
'Full Access'
,
map
(
lambda
x
:
x
[
0
],
__ac_permissions__
)),
...
...
lib/python/OFS/Folder.py
View file @
d2487d10
"""Folder object
$Id: Folder.py,v 1.3
1 1998/01/02 17:22:56
brian Exp $"""
$Id: Folder.py,v 1.3
2 1998/01/09 20:23:19
brian Exp $"""
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
2
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
...
...
@@ -103,7 +103,7 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
(
'Add properties'
,
[
'manage_addProperty'
]),
(
'Change properties'
,
[
'manage_editProperties'
]),
(
'Delete properties'
,
[
'manage_delProperties'
]),
(
'
Default
permission'
,
[
''
]),
(
'
Shared
permission'
,
[
''
]),
)
__ac_types__
=
((
'Full Access'
,
map
(
lambda
x
:
x
[
0
],
__ac_permissions__
)),
...
...
lib/python/OFS/Image.py
View file @
d2487d10
"""Image object"""
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
,
MessageDialog
from
AccessControl.Role
import
RoleManager
...
...
@@ -37,6 +37,7 @@ class File(Persistent,Implicit,RoleManager,Item_w__name__):
(
'Change permissions'
,
[
'manage_access'
]),
(
'Change/upload data'
,
[
'manage_edit'
,
'manage_upload'
,
'PUT'
]),
(
'View'
,
[
'index_html'
,]),
(
'Shared permission'
,
[
''
,]),
)
__ac_types__
=
((
'Full Access'
,
map
(
lambda
x
:
x
[
0
],
__ac_permissions__
)),
...
...
@@ -85,6 +86,7 @@ class File(Persistent,Implicit,RoleManager,Item_w__name__):
message
=
'Your changes have been saved'
,
action
=
'manage_main'
)
PUT__roles__
=
[
'Manager'
]
def
PUT
(
self
,
BODY
,
REQUEST
):
'handle PUT requests'
self
.
data
=
BODY
...
...
@@ -107,6 +109,8 @@ class Image(File):
manage_uploadForm
=
HTMLFile
(
'imageUpload'
,
globals
(),
Kind
=
'Image'
,
kind
=
'image'
)
manage
=
manage_main
=
manage_editForm
PUT__roles__
=
[
'Manager'
]
def
__str__
(
self
):
return
'<IMG SRC="%s" ALT="%s">'
%
(
self
.
__name__
,
self
.
title_or_id
())
...
...
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