Commit 040ab7d5 authored by 's avatar

Added security info

parent 7c84f807
"""Document object"""
__version__='$Revision: 1.32 $'[11:-2]
__version__='$Revision: 1.33 $'[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
......
"""Folder object
$Id: Folder.py,v 1.28 1997/12/31 16:29:44 brian Exp $"""
$Id: Folder.py,v 1.29 1997/12/31 16:43:29 brian Exp $"""
__version__='$Revision: 1.28 $'[11:-2]
__version__='$Revision: 1.29 $'[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',
......
"""Image object"""
__version__='$Revision: 1.16 $'[11:-2]
__version__='$Revision: 1.17 $'[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'
......
......@@ -36,7 +36,6 @@
<INPUT TYPE="file" NAME="file:string" SIZE="25" VALUE="">
</TD>
</TR>
<!--#var smallRolesWidget-->
<TR>
<TD></TD>
<TD>
......
......@@ -21,7 +21,6 @@
<!--#/if title-->
</TD>
</TR>
<!--#var smallRolesWidget-->
<TR>
<TD COLSPAN="2" ALIGN="CENTER">
<TEXTAREA NAME="data:text"
......
......@@ -37,7 +37,6 @@
<INPUT TYPE="file" NAME="file" SIZE="25" VALUE="">
</TD>
</TR>
<!--#var smallRolesWidget-->
<TR>
<TD></TD>
<TD>
......
......@@ -24,7 +24,6 @@
VALUE="<!--#var content_type-->">
</TD>
</TR>
<!--#var smallRolesWidget-->
<TR>
<TD></TD><TD><BR><INPUT TYPE="SUBMIT" VALUE="Change"></TD>
</TR>
......
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