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
73ab6139
Commit
73ab6139
authored
Jan 21, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated for latest security model.
parent
a4539e17
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
lib/python/Shared/DC/ZRDB/Connection.py
lib/python/Shared/DC/ZRDB/Connection.py
+6
-2
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+8
-3
No files found.
lib/python/Shared/DC/ZRDB/Connection.py
View file @
73ab6139
...
...
@@ -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.
...
...
lib/python/Shared/DC/ZRDB/DA.py
View file @
73ab6139
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.2
4 1998/01/21 20:56:55 brian
Exp $'''
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
$Id: DA.py,v 1.2
5 1998/01/21 22:59:34 jim
Exp $'''
__version__
=
'$Revision: 1.2
5
$'
[
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
#
...
...
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