Commit 201955fc authored by Andreas Jung's avatar Andreas Jung

reverted wrong update to trunk

parent e711e01d
......@@ -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
......
......@@ -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.newDateTime
import DateTime
utility_builtins['DateTime']= DateTime.DateTime
except: pass
def same_type(arg1, *args):
......
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