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

Fixed bug in report generation.

parent 958b1dee
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
############################################################################## ##############################################################################
__doc__='''Shared Aqueduct classes and functions __doc__='''Shared Aqueduct classes and functions
$Id: Aqueduct.py,v 1.19 1998/01/12 19:19:48 jim Exp $''' $Id: Aqueduct.py,v 1.20 1998/01/12 20:36:26 jim Exp $'''
__version__='$Revision: 1.19 $'[11:-2] __version__='$Revision: 1.20 $'[11:-2]
from Globals import HTMLFile, Persistent from Globals import HTMLFile, Persistent
import DocumentTemplate, DateTime, regex, regsub, string, urllib, rotor import DocumentTemplate, DateTime, regex, regsub, string, urllib, rotor
...@@ -207,13 +207,13 @@ def custom_default_report(id, result, action='', no_table=0): ...@@ -207,13 +207,13 @@ def custom_default_report(id, result, action='', no_table=0):
if no_table: tr, _tr, td, _td, delim = '<p>', '</p>', '', '', ', ' if no_table: tr, _tr, td, _td, delim = '<p>', '</p>', '', '', ', '
else: tr, _tr, td, _td, delim = '<tr>', '</tr>', '<td>', '</td>', '' else: tr, _tr, td, _td, delim = '<tr>', '</tr>', '<td>', '</td>', ''
if no_table: tr='<p>' if no_table: tr='<p>', '</p>'
else: tr, _tr = '<tr>', '</p>' else: tr, _tr = '<tr>', '</tr>'
row=('%s\n%s\t\t%s' % row=('%s\n%s\t%s' %
(tr,string.joinfields( (tr,string.joinfields(
map(lambda c, td=td, _td=_td: map(lambda c, td=td, _td=_td:
'\t\t%s<!--#var %s%s-->%s\n' '\t%s<!--#var %s%s-->%s\n'
% (td,urllib.quote(c['name']), % (td,urllib.quote(c['name']),
c['type']!='s' and ' null=""' or '',_td), c['type']!='s' and ' null=""' or '',_td),
columns), columns),
...@@ -366,6 +366,9 @@ def delimited_output(results,REQUEST,RESPONSE): ...@@ -366,6 +366,9 @@ def delimited_output(results,REQUEST,RESPONSE):
############################################################################## ##############################################################################
# #
# $Log: Aqueduct.py,v $ # $Log: Aqueduct.py,v $
# Revision 1.20 1998/01/12 20:36:26 jim
# Fixed bug in report generation.
#
# Revision 1.19 1998/01/12 19:19:48 jim # Revision 1.19 1998/01/12 19:19:48 jim
# *** empty log message *** # *** empty log message ***
# #
......
<!--#in %(id)s size=50 start=query_start--> <!--#in %(id)s size=50 start=query_start-->
<!--#if sequence-start--> <!--#if sequence-start-->
<!--#if previous-sequence--> <!--#if previous-sequence-->
<a href="<!--#var URL-->/<!--#var sequence-query <a href="<!--#var URL-->/<!--#var sequence-query
-->&query_start=<!--#var -->&query_start=<!--#var
...@@ -8,8 +9,9 @@ ...@@ -8,8 +9,9 @@
</a> </a>
<!--#/if previous-sequence--> <!--#/if previous-sequence-->
%(else no_table)[<table border> %(else no_table)[<table border>
%(heading) %(heading)s
s%(else)] %(else)]
<!--#/if sequence-start--> <!--#/if sequence-start-->
%(row)s %(row)s
......
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