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
cbd3d223
Commit
cbd3d223
authored
Sep 14, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
untabified
parent
cad7d8e1
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1603 additions
and
1600 deletions
+1603
-1600
lib/python/DocumentTemplate/DT_HTML.py
lib/python/DocumentTemplate/DT_HTML.py
+131
-131
lib/python/DocumentTemplate/DT_If.py
lib/python/DocumentTemplate/DT_If.py
+41
-42
lib/python/DocumentTemplate/DT_In.py
lib/python/DocumentTemplate/DT_In.py
+293
-294
lib/python/DocumentTemplate/DT_InSV.py
lib/python/DocumentTemplate/DT_InSV.py
+233
-234
lib/python/DocumentTemplate/DT_Raise.py
lib/python/DocumentTemplate/DT_Raise.py
+17
-18
lib/python/DocumentTemplate/DT_String.py
lib/python/DocumentTemplate/DT_String.py
+297
-298
lib/python/DocumentTemplate/DT_UI.py
lib/python/DocumentTemplate/DT_UI.py
+11
-11
lib/python/DocumentTemplate/DT_Util.py
lib/python/DocumentTemplate/DT_Util.py
+87
-87
lib/python/DocumentTemplate/DT_Var.py
lib/python/DocumentTemplate/DT_Var.py
+95
-96
lib/python/DocumentTemplate/DT_With.py
lib/python/DocumentTemplate/DT_With.py
+20
-20
lib/python/DocumentTemplate/DTtest.py
lib/python/DocumentTemplate/DTtest.py
+303
-304
lib/python/DocumentTemplate/DTtest_basicIn.py
lib/python/DocumentTemplate/DTtest_basicIn.py
+1
-1
lib/python/DocumentTemplate/VSEval.py
lib/python/DocumentTemplate/VSEval.py
+58
-58
lib/python/DocumentTemplate/release_notes
lib/python/DocumentTemplate/release_notes
+16
-6
No files found.
lib/python/DocumentTemplate/DT_HTML.py
View file @
cbd3d223
...
...
@@ -54,7 +54,7 @@
"""HTML formated DocumentTemplates
$Id: DT_HTML.py,v 1.1
2 1998/09/14 20:48:39
jim Exp $"""
$Id: DT_HTML.py,v 1.1
3 1998/09/14 22:03:31
jim Exp $"""
from
DT_String
import
String
,
FileMixin
import
DT_String
,
regex
...
...
lib/python/DocumentTemplate/DT_If.py
View file @
cbd3d223
...
...
@@ -117,8 +117,8 @@ __doc__='''Conditional insertion
variable is not reevaluated.
'''
__rcs_id__
=
'$Id: DT_If.py,v 1.1
3 1998/09/14 20:48:39
jim Exp $'
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_If.py,v 1.1
4 1998/09/14 22:03:31
jim Exp $'
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
from
DT_Util
import
ParseError
,
parse_params
,
name_param
,
str
...
...
@@ -179,4 +179,3 @@ class Unless:
class
Else
(
Unless
):
# The else tag is included for backward compatibility and is deprecated.
name
=
'else'
lib/python/DocumentTemplate/DT_In.py
View file @
cbd3d223
...
...
@@ -349,8 +349,8 @@
'''
#'
__rcs_id__
=
'$Id: DT_In.py,v 1.
29 1998/09/14 20:48:40
jim Exp $'
__version__
=
'$Revision: 1.
29
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_In.py,v 1.
30 1998/09/14 22:03:32
jim Exp $'
__version__
=
'$Revision: 1.
30
$'
[
11
:
-
2
]
from
DT_Util
import
ParseError
,
parse_params
,
name_param
,
str
from
DT_Util
import
render_blocks
,
InstanceDict
...
...
@@ -687,4 +687,3 @@ def int_param(params,md,name,default=0, st=type('')):
v
=
md
[
v
]
if
type
(
v
)
is
st
:
v
=
atoi
(
v
)
return
v
lib/python/DocumentTemplate/DT_InSV.py
View file @
cbd3d223
...
...
@@ -54,8 +54,8 @@
__doc__
=
'''Sequence variables support
$Id: DT_InSV.py,v 1.
7 1998/09/14 20:48:40
jim Exp $'''
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
$Id: DT_InSV.py,v 1.
8 1998/09/14 22:03:32
jim Exp $'''
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
from
string
import
lower
,
rfind
from
math
import
sqrt
...
...
@@ -400,4 +400,3 @@ def opt(start,end,size,orphan,sequence):
except
:
end
=
len
(
sequence
)
# if l - end < orphan: end=l
return
start
,
end
,
size
lib/python/DocumentTemplate/DT_Raise.py
View file @
cbd3d223
...
...
@@ -65,8 +65,8 @@
<!--#/if-->
'''
__rcs_id__
=
'$Id: DT_Raise.py,v 1.
8 1998/09/14 20:48:40
jim Exp $'
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_Raise.py,v 1.
9 1998/09/14 22:03:32
jim Exp $'
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
from
DT_Util
import
parse_params
,
name_param
,
render_blocks
,
str
...
...
@@ -98,4 +98,3 @@ class Raise:
raise
t
,
v
__call__
=
render
lib/python/DocumentTemplate/DT_String.py
View file @
cbd3d223
...
...
@@ -51,7 +51,7 @@
# (540) 371-6909
#
##############################################################################
"$Id: DT_String.py,v 1.1
8 1998/09/14 20:48:41
jim Exp $"
"$Id: DT_String.py,v 1.1
9 1998/09/14 22:03:32
jim Exp $"
from
string
import
split
,
strip
import
regex
,
ts_regex
...
...
@@ -512,4 +512,3 @@ class File(FileMixin, String):
template is used the first time.
"""
def manage_edit(self,data): raise TypeError, 'cannot edit files'
lib/python/DocumentTemplate/DT_UI.py
View file @
cbd3d223
...
...
@@ -54,8 +54,8 @@
__doc__
=
'''Machinery to support through-the-web editing
$Id: DT_UI.py,v 1.
6 1998/09/14 20:48:41
jim Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
$Id: DT_UI.py,v 1.
7 1998/09/14 22:03:33
jim Exp $'''
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
from
DT_HTML
import
HTML
...
...
lib/python/DocumentTemplate/DT_Util.py
View file @
cbd3d223
...
...
@@ -51,8 +51,8 @@
# (540) 371-6909
#
##############################################################################
'''$Id: DT_Util.py,v 1.4
6 1998/09/14 20:48:41
jim Exp $'''
__version__
=
'$Revision: 1.4
6
$'
[
11
:
-
2
]
'''$Id: DT_Util.py,v 1.4
7 1998/09/14 22:03:33
jim Exp $'''
__version__
=
'$Revision: 1.4
7
$'
[
11
:
-
2
]
import
regex
,
string
,
math
,
os
from
string
import
strip
,
join
,
atoi
,
lower
,
split
,
find
...
...
lib/python/DocumentTemplate/DT_Var.py
View file @
cbd3d223
...
...
@@ -164,8 +164,8 @@ Evaluating expressions without rendering results
'''
# '
__rcs_id__
=
'$Id: DT_Var.py,v 1.2
2 1998/09/14 20:48:42
jim Exp $'
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_Var.py,v 1.2
3 1998/09/14 22:03:33
jim Exp $'
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
from
DT_Util
import
parse_params
,
name_param
,
html_quote
,
str
import
regex
,
string
,
sys
,
regex
...
...
@@ -389,4 +389,3 @@ class Comment:
return
''
__call__
=
render
lib/python/DocumentTemplate/DT_With.py
View file @
cbd3d223
...
...
@@ -75,8 +75,8 @@
'''
__rcs_id__
=
'$Id: DT_With.py,v 1.
5 1998/09/14 20:48:42
jim Exp $'
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_With.py,v 1.
6 1998/09/14 22:03:33
jim Exp $'
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
from
DT_Util
import
parse_params
,
name_param
,
InstanceDict
,
render_blocks
,
str
...
...
lib/python/DocumentTemplate/DTtest.py
View file @
cbd3d223
...
...
@@ -55,8 +55,8 @@
"""Document Template Tests
"""
__rcs_id__
=
'$Id: DTtest.py,v 1.
8 1998/09/14 20:48:42
jim Exp $'
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DTtest.py,v 1.
9 1998/09/14 22:03:34
jim Exp $'
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
from
DocumentTemplate
import
*
import
sys
...
...
@@ -566,4 +566,3 @@ if __name__ == "__main__":
try
:
command
=
sys
.
argv
[
1
]
except
:
command
=
'main'
globals
()[
command
]()
lib/python/DocumentTemplate/DTtest_basicIn.py
View file @
cbd3d223
lib/python/DocumentTemplate/VSEval.py
View file @
cbd3d223
...
...
@@ -54,8 +54,8 @@
"""Very Safe Python Expressions
"""
__rcs_id__
=
'$Id: VSEval.py,v 1.1
8 1998/09/14 20:48:43
jim Exp $'
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: VSEval.py,v 1.1
9 1998/09/14 22:03:34
jim Exp $'
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
from
string
import
translate
import
string
...
...
lib/python/DocumentTemplate/release_notes
View file @
cbd3d223
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
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
eliminated.
- There is a new open-source copyright.
-
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:
...
...
@@ -20,6 +25,11 @@ DocumentTemplate releases
<!--#some_tag expr="foo.bar"-->
Bugs fixed
- Several occurrences of 'from some_module import *' have been
eliminated.
- Fixed bugs in error reporting.
- Handle valueless attributes a bit better.
...
...
@@ -120,5 +130,5 @@ DocumentTemplate releases
- New 'in' tag variables for getting information about the start and
end indexes of the current batch.
"Download DocumentTemplate 2.
1":DocumentTemplate-2.1
.tar.gz.
"Download DocumentTemplate 2.
2":DocumentTemplate-2.2
.tar.gz.
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