Commit bf8e37eb authored by Jim Fulton's avatar Jim Fulton

Updated permissions.

parent ea8fc941
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
__doc__='''SQL Method Product __doc__='''SQL Method Product
$Id: __init__.py,v 1.3 1998/02/23 19:00:31 jim Exp $''' $Id: __init__.py,v 1.4 1998/05/11 15:00:46 jim Exp $'''
__version__='$Revision: 1.3 $'[11:-2] __version__='$Revision: 1.4 $'[11:-2]
from ImageFile import ImageFile from ImageFile import ImageFile
import Aqueduct.Search, SQL import Aqueduct.Search, SQL
...@@ -45,11 +45,18 @@ misc_={ ...@@ -45,11 +45,18 @@ misc_={
__ac_permissions__=( __ac_permissions__=(
('Add Database Methods', ('Add Database Methods',
('manage_addAqueductSQLMethodForm', 'manage_addAqueductSQLMethod')), ('manage_addAqueductSQLMethodForm', 'manage_addAqueductSQLMethod')),
('Open/Close Database Connections', ()),
('Change Database Methods', ()),
('Change Database Connections', ()),
('Use Database Methods', ()),
) )
############################################################################## ##############################################################################
# #
# $Log: __init__.py,v $ # $Log: __init__.py,v $
# Revision 1.4 1998/05/11 15:00:46 jim
# Updated permissions.
#
# Revision 1.3 1998/02/23 19:00:31 jim # Revision 1.3 1998/02/23 19:00:31 jim
# updated permissions # updated permissions
# #
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
__doc__='''Generic Database Connection Support __doc__='''Generic Database Connection Support
$Id: Connection.py,v 1.13 1998/05/08 15:00:08 jim Exp $''' $Id: Connection.py,v 1.14 1998/05/11 15:00:24 jim Exp $'''
__version__='$Revision: 1.13 $'[11:-2] __version__='$Revision: 1.14 $'[11:-2]
import Globals, OFS.SimpleItem, AccessControl.Role, Persistence, Acquisition, sys import Globals, OFS.SimpleItem, AccessControl.Role, Persistence, Acquisition, sys
from DateTime import DateTime from DateTime import DateTime
...@@ -38,15 +38,12 @@ class Connection( ...@@ -38,15 +38,12 @@ class Connection(
('View management screens', ('manage_tabs','manage_main', ('View management screens', ('manage_tabs','manage_main',
'manage_properties')), 'manage_properties')),
('Change permissions', ('manage_access',) ), ('Change permissions', ('manage_access',) ),
('Change', ('manage_edit',) ), ('Change Database Connections', ('manage_edit',) ),
('Open/Close', ('manage_open_connection', ('Open/Close Database Connection',
('manage_open_connection',
'manage_close_connection')), 'manage_close_connection')),
) )
# Define pre-defined types of access:
__ac_types__=(('Full Access', map(lambda x: x[0], __ac_permissions__)),
)
_v_connected='' _v_connected=''
connection_string='' connection_string=''
...@@ -145,6 +142,9 @@ class Connection( ...@@ -145,6 +142,9 @@ class Connection(
############################################################################## ##############################################################################
# #
# $Log: Connection.py,v $ # $Log: Connection.py,v $
# Revision 1.14 1998/05/11 15:00:24 jim
# Updated permissions.
#
# Revision 1.13 1998/05/08 15:00:08 jim # Revision 1.13 1998/05/08 15:00:08 jim
# Changed permission settings to be in line with new machinery. # Changed permission settings to be in line with new machinery.
# #
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
__doc__='''Generic Database adapter __doc__='''Generic Database adapter
$Id: DA.py,v 1.46 1998/05/08 15:00:27 jim Exp $''' $Id: DA.py,v 1.47 1998/05/11 15:00:13 jim Exp $'''
__version__='$Revision: 1.46 $'[11:-2] __version__='$Revision: 1.47 $'[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
...@@ -66,13 +66,10 @@ class DA( ...@@ -66,13 +66,10 @@ class DA(
'manage_advancedForm', 'manage_advancedForm',
)), )),
('Change permissions', ('manage_access',) ), ('Change permissions', ('manage_access',) ),
('Change', ('manage_edit','manage_advanced') ), ('Change Database Methods',
('Test', ('manage_testForm','manage_test') ), ('manage_edit','manage_advanced',
('Use', ('__call__',)), 'manage_testForm','manage_test')),
) ('Use Database Methods', ('__call__',''), ('Anonymous','Manager')),
# Define pre-defined types of access:
__ac_types__=(('Full Access', map(lambda x: x[0], __ac_permissions__)),
) )
...@@ -434,6 +431,9 @@ def getBrain(self, ...@@ -434,6 +431,9 @@ def getBrain(self,
############################################################################## ##############################################################################
# #
# $Log: DA.py,v $ # $Log: DA.py,v $
# Revision 1.47 1998/05/11 15:00:13 jim
# Updated permissions.
#
# Revision 1.46 1998/05/08 15:00:27 jim # Revision 1.46 1998/05/08 15:00:27 jim
# Changed permission settings to be in line with new machinery. # Changed permission settings to be in line with new machinery.
# #
......
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