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
a6d40fd5
Commit
a6d40fd5
authored
Apr 15, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed up input form generation to use input arguments in order.
Also excluse decorations when 1 query used.
parent
7883cf74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
lib/python/Shared/DC/ZRDB/Search.py
lib/python/Shared/DC/ZRDB/Search.py
+17
-8
No files found.
lib/python/Shared/DC/ZRDB/Search.py
View file @
a6d40fd5
...
...
@@ -10,11 +10,11 @@
##########################################################################
__doc__
=
'''Aqueduct Search Interface Wizard
$Id: Search.py,v 1.
4 1998/01/12 19:20:11
jim Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
$Id: Search.py,v 1.
5 1998/04/15 14:22:28
jim Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
from
Aqueduct
import
custom_default_report
,
nicify
from
Aqueduct
import
custom_default_report
,
nicify
,
Args
from
string
import
join
addForm
=
HTMLFile
(
'searchAdd'
,
globals
())
...
...
@@ -33,11 +33,16 @@ def add(self, report_id, report_title, report_style,
'No <em>input id</em> were specified'
)
qs
=
map
(
lambda
q
,
self
=
self
:
_getquery
(
self
,
q
),
queries
)
arguments
=
{}
keys
=
[]
for
q
in
qs
:
id
=
q
.
id
arguments
=
{}
for
name
,
arg
in
q
.
_searchable_arguments
().
items
():
arguments
[
"%s/%s"
%
(
id
,
name
)]
=
arg
if
input_id
:
for
name
,
arg
in
q
.
_searchable_arguments
().
items
():
if
len
(
qs
)
>
1
:
key
=
"%s/%s"
%
(
id
,
name
)
else
:
key
=
name
arguments
[
key
]
=
arg
keys
.
append
(
key
)
if
q
.
_searchable_result_columns
()
is
None
:
raise
'Unusable Searchable Error'
,(
"""The input searchable object, <em>%s</em>,
...
...
@@ -46,9 +51,10 @@ def add(self, report_id, report_title, report_style,
cannot be generated. Before creating a report
from this query, you must try out the query. To
try out the query, <a href="%s">click hear</a>.
"""
%
(
q
.
title_and_id
(),
q
.
id
))
"""
%
(
q
.
title_and_id
(),
id
))
if
input_id
:
arguments
=
Args
(
arguments
,
keys
)
self
.
manage_addDocument
(
input_id
,
input_title
,
default_input_form
(
arguments
,
report_id
))
...
...
@@ -115,7 +121,6 @@ def default_input_form(arguments,action='query',
tabs
=
''
):
if
arguments
:
items
=
arguments
.
items
()
items
.
sort
()
return
(
"%s
\
n
%s%s"
%
(
'<!--#var standard_html_header-->
\
n
%s
\
n
'
...
...
@@ -174,6 +179,10 @@ def default_input_form(arguments,action='query',
##############################################################################
#
# $Log: Search.py,v $
# Revision 1.5 1998/04/15 14:22:28 jim
# Fixed up input form generation to use input arguments in order.
# Also excluse decorations when 1 query used.
#
# Revision 1.4 1998/01/12 19:20:11 jim
# *** empty log message ***
#
...
...
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