Commit 2bd55ac4 authored by Jim Fulton's avatar Jim Fulton

*** empty log message ***

parent 628a16ca
...@@ -114,7 +114,7 @@ Evaluating expressions without rendering results ...@@ -114,7 +114,7 @@ Evaluating expressions without rendering results
''' # ' ''' # '
__rcs_id__='$Id: DT_Var.py,v 1.12 1998/04/02 17:37:38 jim Exp $' __rcs_id__='$Id: DT_Var.py,v 1.13 1998/04/02 19:06:21 jim Exp $'
############################################################################ ############################################################################
# Copyright # Copyright
...@@ -168,7 +168,7 @@ __rcs_id__='$Id: DT_Var.py,v 1.12 1998/04/02 17:37:38 jim Exp $' ...@@ -168,7 +168,7 @@ __rcs_id__='$Id: DT_Var.py,v 1.12 1998/04/02 17:37:38 jim Exp $'
# (540) 371-6909 # (540) 371-6909
# #
############################################################################ ############################################################################
__version__='$Revision: 1.12 $'[11:-2] __version__='$Revision: 1.13 $'[11:-2]
from DT_Util import * from DT_Util import *
...@@ -273,7 +273,8 @@ class Call: ...@@ -273,7 +273,8 @@ class Call:
def __init__(self, args): def __init__(self, args):
args = parse_params(args, name='', expr='') args = parse_params(args, name='', expr='')
name, expr = name_param(args,'call',1) 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 self.simple_form=expr,None
...@@ -367,6 +368,9 @@ modifiers=map(lambda f: (f.__name__, f), modifiers) ...@@ -367,6 +368,9 @@ modifiers=map(lambda f: (f.__name__, f), modifiers)
############################################################################ ############################################################################
# $Log: DT_Var.py,v $ # $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 # Revision 1.12 1998/04/02 17:37:38 jim
# Major redesign of block rendering. The code inside a block tag is # Major redesign of block rendering. The code inside a block tag is
# compiled as a template but only the templates blocks are saved, and # compiled as a template but only the templates blocks are saved, and
......
...@@ -58,8 +58,8 @@ ...@@ -58,8 +58,8 @@
__doc__='''Python implementations of document template some features __doc__='''Python implementations of document template some features
$Id: pDocumentTemplate.py,v 1.8 1998/04/02 17:37:40 jim Exp $''' $Id: pDocumentTemplate.py,v 1.9 1998/04/02 19:06:39 jim Exp $'''
__version__='$Revision: 1.8 $'[11:-2] __version__='$Revision: 1.9 $'[11:-2]
import regex, string import regex, string
from string import join from string import join
...@@ -197,7 +197,7 @@ def render_blocks(blocks, md): ...@@ -197,7 +197,7 @@ def render_blocks(blocks, md):
except KeyError, v: except KeyError, v:
if n != v: raise KeyError, v, sys.exc_traceback if n != v: raise KeyError, v, sys.exc_traceback
cond=None cond=None
else: cond=section(md) else: cond=cond(md)
if cond: if cond:
section=section[i+1] section=section[i+1]
if section: section=render_blocks(section,md) if section: section=render_blocks(section,md)
...@@ -226,6 +226,9 @@ def render_blocks(blocks, md): ...@@ -226,6 +226,9 @@ def render_blocks(blocks, md):
############################################################################## ##############################################################################
# #
# $Log: pDocumentTemplate.py,v $ # $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 # Revision 1.8 1998/04/02 17:37:40 jim
# Major redesign of block rendering. The code inside a block tag is # Major redesign of block rendering. The code inside a block tag is
# compiled as a template but only the templates blocks are saved, and # compiled as a template but only the templates blocks are saved, and
......
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