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
2bd55ac4
Commit
2bd55ac4
authored
Apr 02, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
628a16ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
lib/python/DocumentTemplate/DT_Var.py
lib/python/DocumentTemplate/DT_Var.py
+7
-3
lib/python/DocumentTemplate/pDocumentTemplate.py
lib/python/DocumentTemplate/pDocumentTemplate.py
+6
-3
No files found.
lib/python/DocumentTemplate/DT_Var.py
View file @
2bd55ac4
...
...
@@ -114,7 +114,7 @@ Evaluating expressions without rendering results
'''
# '
__rcs_id__
=
'$Id: DT_Var.py,v 1.1
2 1998/04/02 17:37:38
jim Exp $'
__rcs_id__
=
'$Id: DT_Var.py,v 1.1
3 1998/04/02 19:06:21
jim Exp $'
############################################################################
# Copyright
...
...
@@ -168,7 +168,7 @@ __rcs_id__='$Id: DT_Var.py,v 1.12 1998/04/02 17:37:38 jim Exp $'
# (540) 371-6909
#
############################################################################
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
from
DT_Util
import
*
...
...
@@ -273,7 +273,8 @@ class Call:
def
__init__
(
self
,
args
):
args
=
parse_params
(
args
,
name
=
''
,
expr
=
''
)
name
,
expr
=
name_param
(
args
,
'call'
,
1
)
if
expr
is
None
:
expr
=
None
if
expr
is
None
:
expr
=
name
else
:
expr
=
expr
.
eval
self
.
simple_form
=
expr
,
None
...
...
@@ -367,6 +368,9 @@ modifiers=map(lambda f: (f.__name__, f), modifiers)
############################################################################
# $Log: DT_Var.py,v $
# 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
...
...
lib/python/DocumentTemplate/pDocumentTemplate.py
View file @
2bd55ac4
...
...
@@ -58,8 +58,8 @@
__doc__
=
'''Python implementations of document template some features
$Id: pDocumentTemplate.py,v 1.
8 1998/04/02 17:37:40
jim Exp $'''
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
$Id: pDocumentTemplate.py,v 1.
9 1998/04/02 19:06:39
jim Exp $'''
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
import
regex
,
string
from
string
import
join
...
...
@@ -197,7 +197,7 @@ def render_blocks(blocks, md):
except
KeyError
,
v
:
if
n
!=
v
:
raise
KeyError
,
v
,
sys
.
exc_traceback
cond
=
None
else
:
cond
=
section
(
md
)
else
:
cond
=
cond
(
md
)
if
cond
:
section
=
section
[
i
+
1
]
if
section
:
section
=
render_blocks
(
section
,
md
)
...
...
@@ -226,6 +226,9 @@ def render_blocks(blocks, md):
##############################################################################
#
# $Log: pDocumentTemplate.py,v $
# Revision 1.9 1998/04/02 19:06:39 jim
# *** empty log message ***
#
# Revision 1.8 1998/04/02 17:37:40 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
...
...
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