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

Updated for latest security model.

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