Commit 73ab6139 authored by Jim Fulton's avatar Jim Fulton

Updated for latest security model.

parent a4539e17
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
__doc__='''Generic Database Connection Support __doc__='''Generic Database Connection Support
$Id: Connection.py,v 1.5 1998/01/16 19:12:54 jim Exp $''' $Id: Connection.py,v 1.6 1998/01/21 22:59:00 jim Exp $'''
__version__='$Revision: 1.5 $'[11:-2] __version__='$Revision: 1.6 $'[11:-2]
import Globals, OFS.SimpleItem, AccessControl.Role, Persistence, Acquisition import Globals, OFS.SimpleItem, AccessControl.Role, Persistence, Acquisition
from DateTime import DateTime from DateTime import DateTime
...@@ -40,6 +40,7 @@ class Connection( ...@@ -40,6 +40,7 @@ class Connection(
('Change', ('manage_edit',) ), ('Change', ('manage_edit',) ),
('Open/Close', ('manage_open_connection', ('Open/Close', ('manage_open_connection',
'manage_close_connection')), 'manage_close_connection')),
('Shared permission', ['',]),
) )
# Define pre-defined types of access: # Define pre-defined types of access:
...@@ -134,6 +135,9 @@ class Connection( ...@@ -134,6 +135,9 @@ class Connection(
############################################################################## ##############################################################################
# #
# $Log: Connection.py,v $ # $Log: Connection.py,v $
# Revision 1.6 1998/01/21 22:59:00 jim
# Updated for latest security model.
#
# Revision 1.5 1998/01/16 19:12:54 jim # Revision 1.5 1998/01/16 19:12:54 jim
# Changed so failure to connect to the database does not prevent # Changed so failure to connect to the database does not prevent
# activation. # activation.
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
__doc__='''Generic Database adapter __doc__='''Generic Database adapter
$Id: DA.py,v 1.24 1998/01/21 20:56:55 brian Exp $''' $Id: DA.py,v 1.25 1998/01/21 22:59:34 jim Exp $'''
__version__='$Revision: 1.24 $'[11:-2] __version__='$Revision: 1.25 $'[11:-2]
import OFS.SimpleItem, Aqueduct.Aqueduct, Aqueduct.RDB import OFS.SimpleItem, Aqueduct.Aqueduct, Aqueduct.RDB
import DocumentTemplate, marshal, md5, base64, DateTime, Acquisition, os import DocumentTemplate, marshal, md5, base64, DateTime, Acquisition, os
...@@ -60,7 +60,9 @@ class DA( ...@@ -60,7 +60,9 @@ class DA(
'manage_properties', 'manage_advancedForm', 'manage_properties', 'manage_advancedForm',
)), )),
('Change permissions', ('manage_access',) ), ('Change permissions', ('manage_access',) ),
('Change', ('manage_edit',) ), ('Change', ('manage_edit','manage_advanced') ),
('Test', ('manage_testForm','manage_test') ),
('Shared permission', ['',]),
) )
# Define pre-defined types of access: # Define pre-defined types of access:
...@@ -339,6 +341,9 @@ def getBrain(self, ...@@ -339,6 +341,9 @@ def getBrain(self,
############################################################################## ##############################################################################
# #
# $Log: DA.py,v $ # $Log: DA.py,v $
# Revision 1.25 1998/01/21 22:59:34 jim
# Updated for latest security model.
#
# Revision 1.24 1998/01/21 20:56:55 brian # Revision 1.24 1998/01/21 20:56:55 brian
# Changed Access Control tab to Security # Changed Access Control tab to Security
# #
......
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