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
1639278c
Commit
1639278c
authored
Dec 05, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor change to help out testing DAs.
parent
62055423
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
lib/python/Shared/DC/ZRDB/Aqueduct.py
lib/python/Shared/DC/ZRDB/Aqueduct.py
+10
-6
No files found.
lib/python/Shared/DC/ZRDB/Aqueduct.py
View file @
1639278c
...
...
@@ -10,8 +10,8 @@
##############################################################################
__doc__
=
'''Shared Aqueduct classes and functions
$Id: Aqueduct.py,v 1.1
3 1997/10/09 15:10:37
jim Exp $'''
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
$Id: Aqueduct.py,v 1.1
4 1997/12/05 21:23:55
jim Exp $'''
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
,
Persistent
import
DocumentTemplate
,
DateTime
,
regex
,
regsub
,
string
,
urllib
,
rotor
...
...
@@ -129,19 +129,20 @@ class Composite:
{
'id'
:
k
,
'selected'
:
k
in
queries
},
self
.
aqueductQueryIds
())
def
default_input_form
(
id
,
arguments
,
action
=
'query'
):
def
default_input_form
(
id
,
arguments
,
action
=
'query'
,
tabs
=
''
):
if
arguments
:
items
=
arguments
.
items
()
items
.
sort
()
return
(
"%s
\
n
%s%s"
%
(
'<html><head><title>%s Input Data</title></head><body>
\
n
'
'<html><head><title>%s Input Data</title></head><body>
\
n
%s
\
n
'
'<form action="<!--#var URL2-->/<!--#var id-->/%s" '
'method="get">
\
n
'
'<h2>%s Input Data</h2>
\
n
'
'Enter query parameters:<br>'
'<table>
\
n
'
%
(
id
,
action
,
id
),
%
(
id
,
tabs
,
action
,
id
),
string
.
joinfields
(
map
(
lambda
a
:
...
...
@@ -191,7 +192,7 @@ custom_default_report_src=DocumentTemplate.File(
dtml_dir
+
'customDefaultReport.dtml'
)
def
custom_default_report
(
id
,
result
,
action
=
''
):
columns
=
result
.
_searchable_result_columns
()
columns
=
result
.
_searchable_result_columns
()
heading
=
(
'<tr>
\
n
%s</tr>'
%
string
.
joinfields
(
map
(
lambda
c
:
...
...
@@ -358,6 +359,9 @@ def delimited_output(results,REQUEST,RESPONSE):
##############################################################################
#
# $Log: Aqueduct.py,v $
# Revision 1.14 1997/12/05 21:23:55 jim
# Minor change to help out testing DAs.
#
# Revision 1.13 1997/10/09 15:10:37 jim
# Added some attempts to provide backward compatibility with earlier
# Principia version.
...
...
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