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
040ab7d5
Commit
040ab7d5
authored
Dec 31, 1997
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added security info
parent
7c84f807
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
10 deletions
+28
-10
lib/python/OFS/Document.py
lib/python/OFS/Document.py
+12
-1
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+3
-3
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+13
-2
lib/python/OFS/documentAdd.dtml
lib/python/OFS/documentAdd.dtml
+0
-1
lib/python/OFS/documentEdit.dtml
lib/python/OFS/documentEdit.dtml
+0
-1
lib/python/OFS/imageAdd.dtml
lib/python/OFS/imageAdd.dtml
+0
-1
lib/python/OFS/imageEdit.dtml
lib/python/OFS/imageEdit.dtml
+0
-1
No files found.
lib/python/OFS/Document.py
View file @
040ab7d5
"""Document object"""
__version__
=
'$Revision: 1.3
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
3
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
...
...
@@ -35,6 +35,17 @@ class Document(HTML, RoleManager, SimpleItem.Item_w__name__,
},
)
__ac_permissions__
=
(
(
'View Management Screens'
,
[
'manage'
,
'manage_tabs'
,
'manage_uploadForm'
]),
(
'Change Permissions'
,
[
'manage_access'
]),
(
'Change/Upload Data'
,
[
'manage_edit'
,
'manage_upload'
,
'PUT'
]),
(
'View'
,
[
''
,]),
)
__ac_types__
=
((
'Full Access'
,
map
(
lambda
x
:
x
[
0
],
__ac_permissions__
)),
(
'View Access'
,
[
'View'
,]),
)
def
__call__
(
self
,
client
=
None
,
REQUEST
=
{},
RESPONSE
=
None
,
**
kw
):
kw
[
'document_id'
]
=
self
.
id
kw
[
'document_title'
]
=
self
.
title
...
...
lib/python/OFS/Folder.py
View file @
040ab7d5
"""Folder object
$Id: Folder.py,v 1.2
8 1997/12/31 16:29:44
brian Exp $"""
$Id: Folder.py,v 1.2
9 1997/12/31 16:43:29
brian Exp $"""
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
9
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
...
...
@@ -95,7 +95,7 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
{
'icon'
:
'OFS/Properties_icon.gif'
,
'label'
:
'Properties'
,
'action'
:
'manage_propertiesForm'
,
'target'
:
'manage_main'
},
{
'icon'
:
'AccessControl/AccessControl_icon.gif'
,
'label'
:
'Security'
,
'action'
:
'manage_
rolesForm
'
,
'target'
:
'manage_main'
},
'action'
:
'manage_
access
'
,
'target'
:
'manage_main'
},
{
'icon'
:
'App/undo_icon.gif'
,
'label'
:
'Undo'
,
'action'
:
'manage_UndoForm'
,
'target'
:
'manage_main'
},
# {'icon':'OFS/Help_icon.gif', 'label':'Help',
...
...
lib/python/OFS/Image.py
View file @
040ab7d5
"""Image object"""
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
from
Persistence
import
Persistent
from
Globals
import
HTMLFile
...
...
@@ -36,6 +36,17 @@ class File(Persistent,RoleManager,SimpleItem.Item_w__name__,
},
)
__ac_permissions__
=
(
(
'View Management Screens'
,
[
'manage'
,
'manage_tabs'
,
'manage_uploadForm'
]),
(
'Change Permissions'
,
[
'manage_access'
]),
(
'Change/Upload Data'
,
[
'manage_edit'
,
'manage_upload'
,
'PUT'
]),
(
'View'
,
[
'index_html'
,]),
)
__ac_types__
=
((
'Full Access'
,
map
(
lambda
x
:
x
[
0
],
__ac_permissions__
)),
(
'View Access'
,
[
'View'
,]),
)
def
manage_edit
(
self
,
title
,
content_type
,
acl_type
=
'A'
,
acl_roles
=
[],
REQUEST
=
None
):
""" """
...
...
@@ -80,7 +91,6 @@ class File(Persistent,RoleManager,SimpleItem.Item_w__name__,
# This is bogus and needed because of the way Python tests truth.
return
1
PUT__roles__
=
'manage'
,
def
PUT
(
self
,
BODY
,
REQUEST
):
'handle PUT requests'
self
.
data
=
BODY
...
...
@@ -89,6 +99,7 @@ class File(Persistent,RoleManager,SimpleItem.Item_w__name__,
if
type
:
self
.
content_type
=
type
except
KeyError
:
pass
class
Image
(
File
):
meta_type
=
'Image'
...
...
lib/python/OFS/documentAdd.dtml
View file @
040ab7d5
...
...
@@ -36,7 +36,6 @@
<INPUT TYPE="file" NAME="file:string" SIZE="25" VALUE="">
</TD>
</TR>
<!--#var smallRolesWidget-->
<TR>
<TD></TD>
<TD>
...
...
lib/python/OFS/documentEdit.dtml
View file @
040ab7d5
...
...
@@ -21,7 +21,6 @@
<!--#/if title-->
</TD>
</TR>
<!--#var smallRolesWidget-->
<TR>
<TD COLSPAN="2" ALIGN="CENTER">
<TEXTAREA NAME="data:text"
...
...
lib/python/OFS/imageAdd.dtml
View file @
040ab7d5
...
...
@@ -37,7 +37,6 @@
<INPUT TYPE="file" NAME="file" SIZE="25" VALUE="">
</TD>
</TR>
<!--#var smallRolesWidget-->
<TR>
<TD></TD>
<TD>
...
...
lib/python/OFS/imageEdit.dtml
View file @
040ab7d5
...
...
@@ -24,7 +24,6 @@
VALUE="<!--#var content_type-->">
</TD>
</TR>
<!--#var smallRolesWidget-->
<TR>
<TD></TD><TD><BR><INPUT TYPE="SUBMIT" VALUE="Change"></TD>
</TR>
...
...
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