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
201955fc
Commit
201955fc
authored
Jun 19, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverted wrong update to trunk
parent
e711e01d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
lib/python/AccessControl/DTML.py
lib/python/AccessControl/DTML.py
+2
-4
lib/python/RestrictedPython/Utilities.py
lib/python/RestrictedPython/Utilities.py
+3
-3
No files found.
lib/python/AccessControl/DTML.py
View file @
201955fc
...
...
@@ -84,13 +84,12 @@
##############################################################################
'''Add security system support to Document Templates
$Id: DTML.py,v 1.
5 2001/06/19 15:33:09
andreas Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
$Id: DTML.py,v 1.
6 2001/06/19 23:15:41
andreas Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
from
DocumentTemplate
import
DT_Util
import
SecurityManagement
,
string
,
math
,
whrandom
,
random
import
DocumentTemplate.sequence
import
DateTime.newDateTime
# Allow access to unprotected attributes
DT_Util
.
TemplateDict
.
__allow_access_to_unprotected_subobjects__
=
1
...
...
@@ -100,7 +99,6 @@ whrandom.__allow_access_to_unprotected_subobjects__=1
random
.
__allow_access_to_unprotected_subobjects__
=
1
DocumentTemplate
.
sequence
.
__allow_access_to_unprotected_subobjects__
=
1
DateTime
.
newDateTime
.
__allow_access_to_unprotected_subobjects__
=
1
# Add security testing capabilities
...
...
lib/python/RestrictedPython/Utilities.py
View file @
201955fc
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
string
,
math
,
random
,
whrandom
import
DocumentTemplate.sequence
...
...
@@ -97,8 +97,8 @@ utility_builtins['whrandom'] = whrandom
utility_builtins
[
'sequence'
]
=
DocumentTemplate
.
sequence
try
:
import
DateTime
.newDateTime
utility_builtins
[
'DateTime'
]
=
DateTime
.
new
DateTime
import
DateTime
utility_builtins
[
'DateTime'
]
=
DateTime
.
DateTime
except
:
pass
def
same_type
(
arg1
,
*
args
):
...
...
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