Commit cbd3d223 authored by Jim Fulton's avatar Jim Fulton

untabified

parent cad7d8e1
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
"""HTML formated DocumentTemplates """HTML formated DocumentTemplates
$Id: DT_HTML.py,v 1.12 1998/09/14 20:48:39 jim Exp $""" $Id: DT_HTML.py,v 1.13 1998/09/14 22:03:31 jim Exp $"""
from DT_String import String, FileMixin from DT_String import String, FileMixin
import DT_String, regex import DT_String, regex
......
...@@ -117,8 +117,8 @@ __doc__='''Conditional insertion ...@@ -117,8 +117,8 @@ __doc__='''Conditional insertion
variable is not reevaluated. variable is not reevaluated.
''' '''
__rcs_id__='$Id: DT_If.py,v 1.13 1998/09/14 20:48:39 jim Exp $' __rcs_id__='$Id: DT_If.py,v 1.14 1998/09/14 22:03:31 jim Exp $'
__version__='$Revision: 1.13 $'[11:-2] __version__='$Revision: 1.14 $'[11:-2]
from DT_Util import ParseError, parse_params, name_param, str from DT_Util import ParseError, parse_params, name_param, str
...@@ -179,4 +179,3 @@ class Unless: ...@@ -179,4 +179,3 @@ class Unless:
class Else(Unless): class Else(Unless):
# The else tag is included for backward compatibility and is deprecated. # The else tag is included for backward compatibility and is deprecated.
name='else' name='else'
...@@ -349,8 +349,8 @@ ...@@ -349,8 +349,8 @@
''' #' ''' #'
__rcs_id__='$Id: DT_In.py,v 1.29 1998/09/14 20:48:40 jim Exp $' __rcs_id__='$Id: DT_In.py,v 1.30 1998/09/14 22:03:32 jim Exp $'
__version__='$Revision: 1.29 $'[11:-2] __version__='$Revision: 1.30 $'[11:-2]
from DT_Util import ParseError, parse_params, name_param, str from DT_Util import ParseError, parse_params, name_param, str
from DT_Util import render_blocks, InstanceDict from DT_Util import render_blocks, InstanceDict
...@@ -687,4 +687,3 @@ def int_param(params,md,name,default=0, st=type('')): ...@@ -687,4 +687,3 @@ def int_param(params,md,name,default=0, st=type('')):
v=md[v] v=md[v]
if type(v) is st: v=atoi(v) if type(v) is st: v=atoi(v)
return v return v
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
__doc__='''Sequence variables support __doc__='''Sequence variables support
$Id: DT_InSV.py,v 1.7 1998/09/14 20:48:40 jim Exp $''' $Id: DT_InSV.py,v 1.8 1998/09/14 22:03:32 jim Exp $'''
__version__='$Revision: 1.7 $'[11:-2] __version__='$Revision: 1.8 $'[11:-2]
from string import lower, rfind from string import lower, rfind
from math import sqrt from math import sqrt
...@@ -400,4 +400,3 @@ def opt(start,end,size,orphan,sequence): ...@@ -400,4 +400,3 @@ def opt(start,end,size,orphan,sequence):
except: end=len(sequence) except: end=len(sequence)
# if l - end < orphan: end=l # if l - end < orphan: end=l
return start,end,size return start,end,size
...@@ -65,8 +65,8 @@ ...@@ -65,8 +65,8 @@
<!--#/if--> <!--#/if-->
''' '''
__rcs_id__='$Id: DT_Raise.py,v 1.8 1998/09/14 20:48:40 jim Exp $' __rcs_id__='$Id: DT_Raise.py,v 1.9 1998/09/14 22:03:32 jim Exp $'
__version__='$Revision: 1.8 $'[11:-2] __version__='$Revision: 1.9 $'[11:-2]
from DT_Util import parse_params, name_param, render_blocks, str from DT_Util import parse_params, name_param, render_blocks, str
...@@ -98,4 +98,3 @@ class Raise: ...@@ -98,4 +98,3 @@ class Raise:
raise t, v raise t, v
__call__=render __call__=render
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
# (540) 371-6909 # (540) 371-6909
# #
############################################################################## ##############################################################################
"$Id: DT_String.py,v 1.18 1998/09/14 20:48:41 jim Exp $" "$Id: DT_String.py,v 1.19 1998/09/14 22:03:32 jim Exp $"
from string import split, strip from string import split, strip
import regex, ts_regex import regex, ts_regex
...@@ -512,4 +512,3 @@ class File(FileMixin, String): ...@@ -512,4 +512,3 @@ class File(FileMixin, String):
template is used the first time. template is used the first time.
""" """
def manage_edit(self,data): raise TypeError, 'cannot edit files' def manage_edit(self,data): raise TypeError, 'cannot edit files'
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
__doc__='''Machinery to support through-the-web editing __doc__='''Machinery to support through-the-web editing
$Id: DT_UI.py,v 1.6 1998/09/14 20:48:41 jim Exp $''' $Id: DT_UI.py,v 1.7 1998/09/14 22:03:33 jim Exp $'''
__version__='$Revision: 1.6 $'[11:-2] __version__='$Revision: 1.7 $'[11:-2]
from DT_HTML import HTML from DT_HTML import HTML
......
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
# (540) 371-6909 # (540) 371-6909
# #
############################################################################## ##############################################################################
'''$Id: DT_Util.py,v 1.46 1998/09/14 20:48:41 jim Exp $''' '''$Id: DT_Util.py,v 1.47 1998/09/14 22:03:33 jim Exp $'''
__version__='$Revision: 1.46 $'[11:-2] __version__='$Revision: 1.47 $'[11:-2]
import regex, string, math, os import regex, string, math, os
from string import strip, join, atoi, lower, split, find from string import strip, join, atoi, lower, split, find
......
...@@ -164,8 +164,8 @@ Evaluating expressions without rendering results ...@@ -164,8 +164,8 @@ Evaluating expressions without rendering results
''' # ' ''' # '
__rcs_id__='$Id: DT_Var.py,v 1.22 1998/09/14 20:48:42 jim Exp $' __rcs_id__='$Id: DT_Var.py,v 1.23 1998/09/14 22:03:33 jim Exp $'
__version__='$Revision: 1.22 $'[11:-2] __version__='$Revision: 1.23 $'[11:-2]
from DT_Util import parse_params, name_param, html_quote, str from DT_Util import parse_params, name_param, html_quote, str
import regex, string, sys, regex import regex, string, sys, regex
...@@ -389,4 +389,3 @@ class Comment: ...@@ -389,4 +389,3 @@ class Comment:
return '' return ''
__call__=render __call__=render
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
''' '''
__rcs_id__='$Id: DT_With.py,v 1.5 1998/09/14 20:48:42 jim Exp $' __rcs_id__='$Id: DT_With.py,v 1.6 1998/09/14 22:03:33 jim Exp $'
__version__='$Revision: 1.5 $'[11:-2] __version__='$Revision: 1.6 $'[11:-2]
from DT_Util import parse_params, name_param, InstanceDict, render_blocks, str from DT_Util import parse_params, name_param, InstanceDict, render_blocks, str
......
...@@ -55,8 +55,8 @@ ...@@ -55,8 +55,8 @@
"""Document Template Tests """Document Template Tests
""" """
__rcs_id__='$Id: DTtest.py,v 1.8 1998/09/14 20:48:42 jim Exp $' __rcs_id__='$Id: DTtest.py,v 1.9 1998/09/14 22:03:34 jim Exp $'
__version__='$Revision: 1.8 $'[11:-2] __version__='$Revision: 1.9 $'[11:-2]
from DocumentTemplate import * from DocumentTemplate import *
import sys import sys
...@@ -566,4 +566,3 @@ if __name__ == "__main__": ...@@ -566,4 +566,3 @@ if __name__ == "__main__":
try: command=sys.argv[1] try: command=sys.argv[1]
except: command='main' except: command='main'
globals()[command]() globals()[command]()
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
"""Very Safe Python Expressions """Very Safe Python Expressions
""" """
__rcs_id__='$Id: VSEval.py,v 1.18 1998/09/14 20:48:43 jim Exp $' __rcs_id__='$Id: VSEval.py,v 1.19 1998/09/14 22:03:34 jim Exp $'
__version__='$Revision: 1.18 $'[11:-2] __version__='$Revision: 1.19 $'[11:-2]
from string import translate from string import translate
import string import string
......
DocumentTemplate releases DocumentTemplate releases
2.2
This release has a number of new features and bug fixes.
Features
- There is a new user's guide in HTML and PDF formats with - There is a new user's guide in HTML and PDF formats with
table of contents and index. table of contents and index.
- Import of some modules is delayed providing 30% faster imports. - AFAIK DocumentTemplate is now thread-safe.
- Several occurrences of 'from some_module import *' have been - There is a new open-source copyright.
eliminated.
- No longer enable the through-the-web-editing interface by default. - Import of some modules is delayed providing 30% faster imports.
- Made regex use thread safe. - No longer enable the through-the-web-editing interface by default.
- Added short-hand expr usage: - Added short-hand expr usage:
...@@ -20,6 +25,11 @@ DocumentTemplate releases ...@@ -20,6 +25,11 @@ DocumentTemplate releases
<!--#some_tag expr="foo.bar"--> <!--#some_tag expr="foo.bar"-->
Bugs fixed
- Several occurrences of 'from some_module import *' have been
eliminated.
- Fixed bugs in error reporting. - Fixed bugs in error reporting.
- Handle valueless attributes a bit better. - Handle valueless attributes a bit better.
...@@ -120,5 +130,5 @@ DocumentTemplate releases ...@@ -120,5 +130,5 @@ DocumentTemplate releases
- New 'in' tag variables for getting information about the start and - New 'in' tag variables for getting information about the start and
end indexes of the current batch. end indexes of the current batch.
"Download DocumentTemplate 2.1":DocumentTemplate-2.1.tar.gz. "Download DocumentTemplate 2.2":DocumentTemplate-2.2.tar.gz.
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