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
e9c1d9f1
Commit
e9c1d9f1
authored
Sep 14, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated copyright dates
parent
6ca0569b
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
48 additions
and
450 deletions
+48
-450
lib/python/DocumentTemplate/DT_HTML.py
lib/python/DocumentTemplate/DT_HTML.py
+2
-2
lib/python/DocumentTemplate/DT_If.py
lib/python/DocumentTemplate/DT_If.py
+3
-63
lib/python/DocumentTemplate/DT_In.py
lib/python/DocumentTemplate/DT_In.py
+3
-117
lib/python/DocumentTemplate/DT_InSV.py
lib/python/DocumentTemplate/DT_InSV.py
+3
-44
lib/python/DocumentTemplate/DT_Raise.py
lib/python/DocumentTemplate/DT_Raise.py
+3
-28
lib/python/DocumentTemplate/DT_String.py
lib/python/DocumentTemplate/DT_String.py
+2
-2
lib/python/DocumentTemplate/DT_UI.py
lib/python/DocumentTemplate/DT_UI.py
+3
-21
lib/python/DocumentTemplate/DT_Util.py
lib/python/DocumentTemplate/DT_Util.py
+3
-3
lib/python/DocumentTemplate/DT_Var.py
lib/python/DocumentTemplate/DT_Var.py
+3
-93
lib/python/DocumentTemplate/DT_With.py
lib/python/DocumentTemplate/DT_With.py
+3
-3
lib/python/DocumentTemplate/DTtest.py
lib/python/DocumentTemplate/DTtest.py
+3
-46
lib/python/DocumentTemplate/DTtestExpr.py
lib/python/DocumentTemplate/DTtestExpr.py
+3
-14
lib/python/DocumentTemplate/DTtest_basicIn.py
lib/python/DocumentTemplate/DTtest_basicIn.py
+1
-1
lib/python/DocumentTemplate/DocumentTemplate.py
lib/python/DocumentTemplate/DocumentTemplate.py
+2
-2
lib/python/DocumentTemplate/VSEval.py
lib/python/DocumentTemplate/VSEval.py
+3
-3
lib/python/DocumentTemplate/__init__.py
lib/python/DocumentTemplate/__init__.py
+3
-3
lib/python/DocumentTemplate/gparse.py
lib/python/DocumentTemplate/gparse.py
+2
-2
lib/python/DocumentTemplate/pDocumentTemplate.py
lib/python/DocumentTemplate/pDocumentTemplate.py
+3
-3
No files found.
lib/python/DocumentTemplate/DT_HTML.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -54,7 +54,7 @@
"""HTML formated DocumentTemplates
$Id: DT_HTML.py,v 1.1
1 1998/09/08 16:12:23
jim Exp $"""
$Id: DT_HTML.py,v 1.1
2 1998/09/14 20:48:39
jim Exp $"""
from
DT_String
import
String
,
FileMixin
import
DT_String
,
regex
...
...
lib/python/DocumentTemplate/DT_If.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -117,8 +117,8 @@ __doc__='''Conditional insertion
variable is not reevaluated.
'''
__rcs_id__
=
'$Id: DT_If.py,v 1.1
2 1998/09/08 15:05:31
jim Exp $'
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
__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
]
from
DT_Util
import
ParseError
,
parse_params
,
name_param
,
str
...
...
@@ -180,63 +180,3 @@ class Else(Unless):
# The else tag is included for backward compatibility and is deprecated.
name
=
'else'
##########################################################################
#
# $Log: DT_If.py,v $
# Revision 1.12 1998/09/08 15:05:31 jim
# added str to DT_Util import to address pickling lamosities
#
# Revision 1.11 1998/09/02 21:06:03 jim
# many changes for thread safety, bug fixes, and faster import
#
# Revision 1.10 1998/09/02 14:35:52 jim
# open source copyright
#
# Revision 1.9 1998/04/02 17:37:35 jim
# Major redesign of block rendering. The code inside a block tag is
# compiled as a template but only the templates blocks are saved, and
# later rendered directly with render_blocks.
#
# Added with tag.
#
# Also, for the HTML syntax, we now allow spaces after # and after end
# or '/'. So, the tags::
#
# <!--#
# with spam
# -->
#
# and::
#
# <!--#
# end with
# -->
#
# are valid.
#
# Revision 1.8 1998/01/14 18:23:42 jim
# Added expr to unless.
#
# Revision 1.7 1998/01/14 18:03:25 jim
# Added Unless tag as replacement for else tag.
#
# Revision 1.6 1997/12/31 20:32:11 jim
# If and else blocks now cache variables.
#
# Revision 1.5 1997/11/07 17:08:11 jim
# Changed so exception is raised if a sequence cannot be gotten during
# rendering.
#
# Revision 1.4 1997/09/25 18:56:38 jim
# fixed problem in reporting errors
#
# Revision 1.3 1997/09/22 14:42:49 jim
# added expr
#
# Revision 1.2 1997/09/08 15:35:40 jim
# Fixed bug that caused else blocks to render if blocks.
#
# Revision 1.1 1997/08/27 18:55:42 jim
# initial
#
lib/python/DocumentTemplate/DT_In.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -349,8 +349,8 @@
'''
#'
__rcs_id__
=
'$Id: DT_In.py,v 1.2
8 1998/09/08 15:05:31
jim Exp $'
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_In.py,v 1.2
9 1998/09/14 20:48:40
jim Exp $'
__version__
=
'$Revision: 1.2
9
$'
[
11
:
-
2
]
from
DT_Util
import
ParseError
,
parse_params
,
name_param
,
str
from
DT_Util
import
render_blocks
,
InstanceDict
...
...
@@ -688,117 +688,3 @@ def int_param(params,md,name,default=0, st=type('')):
if
type
(
v
)
is
st
:
v
=
atoi
(
v
)
return
v
############################################################################
# $Log: DT_In.py,v $
# Revision 1.28 1998/09/08 15:05:31 jim
# added str to DT_Util import to address pickling lamosities
#
# Revision 1.27 1998/09/02 21:06:04 jim
# many changes for thread safety, bug fixes, and faster import
#
# Revision 1.26 1998/09/02 14:35:52 jim
# open source copyright
#
# Revision 1.25 1998/08/11 19:34:48 jim
# Made use (or non-use) of regex thread safe.
#
# Revision 1.24 1998/04/08 17:45:59 jim
# Now check security of items, and new skip_unauthorized attr.
#
# Revision 1.23 1998/04/02 17:37:36 jim
# Major redesign of block rendering. The code inside a block tag is
# compiled as a template but only the templates blocks are saved, and
# later rendered directly with render_blocks.
#
# Added with tag.
#
# Also, for the HTML syntax, we now allow spaces after # and after end
# or '/'. So, the tags::
#
# <!--#
# with spam
# -->
#
# and::
#
# <!--#
# end with
# -->
#
# are valid.
#
# Revision 1.22 1998/03/20 17:52:29 jim
# Added new meaning for else tag when next or previous are used.
#
# Revision 1.21 1998/02/18 15:17:54 jim
# Added sequence-step-start-index and sequence-step-end-index and
# their documentation.
#
# Note that I decided not to document sequence-step-start,
# sequence-step-end, sequence-step-orphan, and sequence-step-overlap.
# These will probably be depricated.
#
# Revision 1.20 1998/01/22 20:31:47 jim
# Fixed a bug in generation of sequence-query.
#
# Revision 1.19 1998/01/16 19:08:55 jim
# Fixed some documentation.
#
# Revision 1.18 1998/01/15 21:06:21 jim
# More of the same. :-)
#
# Revision 1.17 1998/01/15 20:36:05 jim
# More of the same. :-)
#
# Revision 1.16 1998/01/15 20:22:44 jim
# Made batch processing more robust. Now don't need to specify
# '?' or & when constructing query strings.
#
# Revision 1.15 1998/01/14 18:26:47 jim
# Added name caching to in tag.
#
# Revision 1.14 1998/01/12 16:48:12 jim
# Updated documentation.
#
# Revision 1.13 1997/12/15 17:34:40 jeffrey
# added sequence-index-[is-]even and odd variables for testing in
# sequences
#
# Revision 1.12 1997/11/19 15:42:46 jim
# added _ prefix to push and pop methods to make them private
#
# Revision 1.11 1997/11/12 23:25:56 jim
# Fixed bug in expr handling.
#
# Revision 1.10 1997/11/11 18:38:03 jim
# Made sequence-items work when iterating over mapping items.
#
# Revision 1.9 1997/11/07 17:08:33 jim
# Changed so exception is raised if a sequence cannot be gotten during
# rendering.
#
# Revision 1.8 1997/10/28 16:33:49 paul
# Small change to docstring.
#
# Revision 1.7 1997/10/05 19:50:58 jim
# Made sort work with methods.
#
# Revision 1.6 1997/10/05 19:41:59 jim
# Added sort option.
#
# Revision 1.5 1997/09/25 20:58:24 jim
# Added sequence-query to *vastly* simplify browse by batch!
#
# Revision 1.4 1997/09/25 18:56:38 jim
# fixed problem in reporting errors
#
# Revision 1.3 1997/09/22 14:42:50 jim
# added expr
#
# Revision 1.2 1997/09/02 19:04:24 jim
# Got rid of ^Ms
#
# Revision 1.1 1997/08/27 18:55:42 jim
# initial
#
#
lib/python/DocumentTemplate/DT_InSV.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -54,8 +54,8 @@
__doc__
=
'''Sequence variables support
$Id: DT_InSV.py,v 1.
6 1998/09/08 16:06:09
jim Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
$Id: DT_InSV.py,v 1.
7 1998/09/14 20:48:40
jim Exp $'''
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
from
string
import
lower
,
rfind
from
math
import
sqrt
...
...
@@ -401,44 +401,3 @@ def opt(start,end,size,orphan,sequence):
# if l - end < orphan: end=l
return
start
,
end
,
size
##############################################################################
#
# $Log: DT_InSV.py,v $
# Revision 1.6 1998/09/08 16:06:09 jim
# Got rid of some extra imports.
#
# Revision 1.5 1998/09/02 14:35:53 jim
# open source copyright
#
# Revision 1.4 1998/05/08 14:54:40 jim
# Fixed bug in handling of sequence-query.
#
# Revision 1.3 1998/04/20 15:16:56 jim
# Fixed bug in backward support for sequence-index-even etc.
#
# Revision 1.2 1998/04/03 19:28:41 jim
# Fixed statistics bug.
#
# Revision 1.1 1998/04/02 17:37:36 jim
# Major redesign of block rendering. The code inside a block tag is
# compiled as a template but only the templates blocks are saved, and
# later rendered directly with render_blocks.
#
# Added with tag.
#
# Also, for the HTML syntax, we now allow spaces after # and after end
# or '/'. So, the tags::
#
# <!--#
# with spam
# -->
#
# and::
#
# <!--#
# end with
# -->
#
# are valid.
#
#
lib/python/DocumentTemplate/DT_Raise.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -65,8 +65,8 @@
<!--#/if-->
'''
__rcs_id__
=
'$Id: DT_Raise.py,v 1.
7 1998/09/08 15:05:31
jim Exp $'
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_Raise.py,v 1.
8 1998/09/14 20:48:40
jim Exp $'
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
from
DT_Util
import
parse_params
,
name_param
,
render_blocks
,
str
...
...
@@ -99,28 +99,3 @@ class Raise:
__call__
=
render
##########################################################################
#
# $Log: DT_Raise.py,v $
# Revision 1.7 1998/09/08 15:05:31 jim
# added str to DT_Util import to address pickling lamosities
#
# Revision 1.6 1998/09/02 21:06:04 jim
# many changes for thread safety, bug fixes, and faster import
#
# Revision 1.5 1998/09/02 14:35:53 jim
# open source copyright
#
# Revision 1.4 1998/05/14 15:07:17 jim
# Finished adding with and raise docs.
#
# Revision 1.3 1998/04/02 19:05:53 jim
# Updated rendering code.
#
# Revision 1.2 1998/03/04 18:50:39 jim
# *** empty log message ***
#
# Revision 1.1 1998/03/04 18:19:56 jim
# added comment and raise tags
#
lib/python/DocumentTemplate/DT_String.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -51,7 +51,7 @@
# (540) 371-6909
#
##############################################################################
"$Id: DT_String.py,v 1.1
7 1998/09/08 15:05:32
jim Exp $"
"$Id: DT_String.py,v 1.1
8 1998/09/14 20:48:41
jim Exp $"
from
string
import
split
,
strip
import
regex
,
ts_regex
...
...
lib/python/DocumentTemplate/DT_UI.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -54,8 +54,8 @@
__doc__
=
'''Machinery to support through-the-web editing
$Id: DT_UI.py,v 1.
5 1998/09/02 14:35:54
jim Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
$Id: DT_UI.py,v 1.
6 1998/09/14 20:48:41
jim Exp $'''
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
from
DT_HTML
import
HTML
...
...
@@ -128,21 +128,3 @@ HTML.editConfirmation=HTML(
<em><!--#var dt_edit_name--></em><br>has been changed.
</center>
<!--#/if CANCEL_ACTION-->"""
)
############################################################################
# $Log: DT_UI.py,v $
# Revision 1.5 1998/09/02 14:35:54 jim
# open source copyright
#
# Revision 1.4 1997/11/05 15:11:26 paul
# Changed header to be more Principia-compliant in a way that does not break Bobo.
#
# Revision 1.3 1997/10/27 17:37:13 jim
# Removed old validation machinery.
#
# Revision 1.2 1997/09/02 19:04:52 jim
# Got rid of ^Ms
#
# Revision 1.1 1997/08/27 18:55:43 jim
# initial
#
lib/python/DocumentTemplate/DT_Util.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -51,8 +51,8 @@
# (540) 371-6909
#
##############################################################################
'''$Id: DT_Util.py,v 1.4
5 1998/09/08 16:12:23
jim Exp $'''
__version__
=
'$Revision: 1.4
5
$'
[
11
:
-
2
]
'''$Id: DT_Util.py,v 1.4
6 1998/09/14 20:48:41
jim Exp $'''
__version__
=
'$Revision: 1.4
6
$'
[
11
:
-
2
]
import
regex
,
string
,
math
,
os
from
string
import
strip
,
join
,
atoi
,
lower
,
split
,
find
...
...
lib/python/DocumentTemplate/DT_Var.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -164,8 +164,8 @@ Evaluating expressions without rendering results
'''
# '
__rcs_id__
=
'$Id: DT_Var.py,v 1.2
1 1998/09/11 15:04:51
jim Exp $'
__version__
=
'$Revision: 1.2
1
$'
[
11
:
-
2
]
__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
]
from
DT_Util
import
parse_params
,
name_param
,
html_quote
,
str
import
regex
,
string
,
sys
,
regex
...
...
@@ -390,93 +390,3 @@ class Comment:
__call__
=
render
############################################################################
# $Log: DT_Var.py,v $
# Revision 1.21 1998/09/11 15:04:51 jim
# Removed gsub from spacify.
#
# Revision 1.20 1998/09/08 16:12:24 jim
# cleaned up some imports
#
# Revision 1.19 1998/09/08 15:55:46 jim
# Added atoi to string import.
#
# Revision 1.18 1998/09/08 15:05:32 jim
# added str to DT_Util import to address pickling lamosities
#
# Revision 1.17 1998/09/02 21:06:05 jim
# many changes for thread safety, bug fixes, and faster import
#
# Revision 1.16 1998/09/02 14:35:54 jim
# open source copyright
#
# Revision 1.15 1998/08/11 19:36:54 jim
# Made use (or non-use) of regex thread safe.
#
# Revision 1.14 1998/04/14 11:58:21 jim
# Fixed bug in handling: %(foo)d
# and in handling <!--#var foo--> where foo is a tuple.
#
# Revision 1.13 1998/04/02 19:06:21 jim
# *** empty log message ***
#
# Revision 1.12 1998/04/02 17:37:38 jim
# Major redesign of block rendering. The code inside a block tag is
# compiled as a template but only the templates blocks are saved, and
# later rendered directly with render_blocks.
#
# Added with tag.
#
# Also, for the HTML syntax, we now allow spaces after # and after end
# or '/'. So, the tags::
#
# <!--#
# with spam
# -->
#
# and::
#
# <!--#
# end with
# -->
#
# are valid.
#
# Revision 1.11 1998/03/24 20:21:39 jim
# Added 'call' tag.
#
# Revision 1.10 1998/03/10 20:32:32 jim
# Fixed miss-spelling of newline_to_br
#
# Revision 1.9 1998/01/12 16:47:34 jim
# Changed a number of custom formats to modifiers, since they can
# be applies cumulatively.
# Updated documentation.
#
# Revision 1.8 1998/01/08 20:57:34 jim
# *** empty log message ***
#
# Revision 1.7 1998/01/05 21:23:01 jim
# Added support for fmt="" to allow vars with side effects.
#
# Revision 1.6 1997/12/12 16:19:06 jim
# Added additional special formats, structured-text and sql-quote.
# Also changed the way formats are handled. This has (and will)
# reveal now hidden fmt=invalid-thing errors.
#
# Revision 1.5 1997/10/27 17:39:27 jim
# removed a comment burp.
#
# Revision 1.4 1997/10/23 14:27:47 jim
# Added truncation support via size and etc attributes.
#
# Revision 1.3 1997/10/23 13:30:16 jim
# Added comma-numeric format.
#
# Revision 1.2 1997/09/22 14:42:51 jim
# added expr
#
# Revision 1.1 1997/08/27 18:55:44 jim
# initial
#
#
lib/python/DocumentTemplate/DT_With.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -75,8 +75,8 @@
'''
__rcs_id__
=
'$Id: DT_With.py,v 1.
4 1998/09/08 15:05:3
2 jim Exp $'
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DT_With.py,v 1.
5 1998/09/14 20:48:4
2 jim Exp $'
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
from
DT_Util
import
parse_params
,
name_param
,
InstanceDict
,
render_blocks
,
str
...
...
lib/python/DocumentTemplate/DTtest.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -55,8 +55,8 @@
"""Document Template Tests
"""
__rcs_id__
=
'$Id: DTtest.py,v 1.
7 1998/09/02 21:06:06
jim Exp $'
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: DTtest.py,v 1.
8 1998/09/14 20:48:42
jim Exp $'
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
from
DocumentTemplate
import
*
import
sys
...
...
@@ -567,46 +567,3 @@ if __name__ == "__main__":
except
:
command
=
'main'
globals
()[
command
]()
############################################################################
# $Log: DTtest.py,v $
# Revision 1.7 1998/09/02 21:06:06 jim
# many changes for thread safety, bug fixes, and faster import
#
# Revision 1.6 1998/09/02 14:35:55 jim
# open source copyright
#
# Revision 1.5 1998/05/14 16:24:34 jim
# Add method to test automatic rendering of vars.
#
# Revision 1.4 1998/04/02 17:37:38 jim
# Major redesign of block rendering. The code inside a block tag is
# compiled as a template but only the templates blocks are saved, and
# later rendered directly with render_blocks.
#
# Added with tag.
#
# Also, for the HTML syntax, we now allow spaces after # and after end
# or '/'. So, the tags::
#
# <!--#
# with spam
# -->
#
# and::
#
# <!--#
# end with
# -->
#
# are valid.
#
# Revision 1.3 1997/11/11 18:39:00 jim
# Added test for:
# Made sequence-items work when iterating over mapping items.
#
# Revision 1.2 1997/10/27 17:40:02 jim
# Removed old validation machinery.
#
# Revision 1.1 1997/08/27 18:55:44 jim
# initial
#
lib/python/DocumentTemplate/DTtestExpr.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -54,8 +54,8 @@
__doc__
=
'''short description
$Id: DTtestExpr.py,v 1.
2 1998/09/02 14:35:55
jim Exp $'''
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
$Id: DTtestExpr.py,v 1.
3 1998/09/14 20:48:42
jim Exp $'''
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
from
DocumentTemplate
import
*
import
sys
...
...
@@ -94,14 +94,3 @@ if __name__ == "__main__":
try
:
command
=
sys
.
argv
[
1
]
except
:
command
=
'main'
globals
()[
command
]()
##############################################################################
#
# $Log: DTtestExpr.py,v $
# Revision 1.2 1998/09/02 14:35:55 jim
# open source copyright
#
# Revision 1.1 1997/09/22 15:13:17 jim
# *** empty log message ***
#
#
lib/python/DocumentTemplate/DTtest_basicIn.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
lib/python/DocumentTemplate/DocumentTemplate.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -163,7 +163,7 @@ Document Templates may be created 4 ways:
'''
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
ParseError
=
'Document Template Parse Error'
...
...
lib/python/DocumentTemplate/VSEval.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -54,8 +54,8 @@
"""Very Safe Python Expressions
"""
__rcs_id__
=
'$Id: VSEval.py,v 1.1
7 1998/09/08 16:03:00
jim Exp $'
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
__rcs_id__
=
'$Id: VSEval.py,v 1.1
8 1998/09/14 20:48:43
jim Exp $'
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
from
string
import
translate
import
string
...
...
lib/python/DocumentTemplate/__init__.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -56,8 +56,8 @@ __doc__='''Package wrapper for Document Template
This wrapper allows the (now many) document template modules to be
segregated in a separate package.
$Id: __init__.py,v 1.
9 1998/09/02 21:17:14
jim Exp $'''
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
$Id: __init__.py,v 1.
10 1998/09/14 20:48:43
jim Exp $'''
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
from
DocumentTemplate
import
String
,
File
,
HTML
,
HTMLDefault
,
HTMLFile
from
DocumentTemplate
import
html_quote
...
...
lib/python/DocumentTemplate/gparse.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -51,7 +51,7 @@
# (540) 371-6909
#
##############################################################################
"$Id: gparse.py,v 1.
4 1998/09/02 14:35:57
jim Exp $"
"$Id: gparse.py,v 1.
5 1998/09/14 20:48:44
jim Exp $"
import
sys
,
parser
,
symbol
,
token
from
symbol
import
*
from
token
import
*
...
...
lib/python/DocumentTemplate/pDocumentTemplate.py
View file @
e9c1d9f1
##############################################################################
#
# Copyright (c) 1998, Digital Creations, Fredericksburg, VA, USA.
# Copyright (c) 199
6-199
8, Digital Creations, Fredericksburg, VA, USA.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -54,8 +54,8 @@
__doc__
=
'''Python implementations of document template some features
$Id: pDocumentTemplate.py,v 1.1
6 1998/09/02 21:06:07
jim Exp $'''
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
$Id: pDocumentTemplate.py,v 1.1
7 1998/09/14 20:48:44
jim Exp $'''
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
import
string
,
sys
,
types
from
string
import
join
...
...
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