Try to get the query.cgi script working again. Unfortunately, I'm not
setup to test it at all. :-( * viewcvs/lib/query.py (main): Populate the 'docroot' data dictionary item. * viewcvs/templates/query.ezt Stop trying (and failing) to use the common header include ... I don't have the energy to make this thing work with that right now. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@838 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/tags/1.0.0-rc1
parent
1d6743ab98
commit
d0a62c7520
|
@ -381,6 +381,8 @@ def main(server, viewcvs_link):
|
|||
commits = [ ]
|
||||
query = 'skipped'
|
||||
|
||||
script_name = server.getenv('SCRIPT_NAME', '')
|
||||
|
||||
data = {
|
||||
'cfg' : cfg,
|
||||
'address' : cfg.general.address,
|
||||
|
@ -392,6 +394,9 @@ def main(server, viewcvs_link):
|
|||
'directory' : server.escape(form_data.directory, 1),
|
||||
'file' : server.escape(form_data.file, 1),
|
||||
'who' : server.escape(form_data.who, 1),
|
||||
'docroot' : cfg.options.docroot is None \
|
||||
and script_name + '/' + viewcvs.docroot_magic_path \
|
||||
or cfg.options.docroot,
|
||||
|
||||
'sortby' : form_data.sortby,
|
||||
'date' : form_data.date,
|
||||
|
|
|
@ -1,11 +1,17 @@
|
|||
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html><head>
|
||||
<!-- ViewCVS -- http://viewcvs.sourceforge.net/
|
||||
by Greg Stein -- mailto:gstein@lyra.org
|
||||
-->
|
||||
<title>[cfg.general.main_title] - query</title>
|
||||
</head>
|
||||
<body text="#000000" bgcolor="#ffffff">
|
||||
|
||||
[# setup page definitions]
|
||||
[define location][rootname][if-any where]: [where][end][end]
|
||||
[define page_title][cfg.general.main_title] - query - [location][end]
|
||||
[define help_href][docroot]/help_query.html[end]
|
||||
[# end]
|
||||
|
||||
[include "include/header.ezt" "query"]
|
||||
|
||||
<p>
|
||||
Select your parameters for querying the CVS commit database. You
|
||||
can search for multiple matches by typing a comma-seperated list
|
||||
|
|
Loading…
Reference in New Issue