Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing loss of some code in cgi in previous commit

  • Loading branch information...
commit c552cb53118ab639b3c494f94cd415c04d15aad2 1 parent 8b9e906
@cl4u2 authored
Showing with 18 additions and 2 deletions.
  1. +18 −2 ninuxoo.cgi
View
20 ninuxoo.cgi
@@ -168,7 +168,7 @@ else:
otherresults = resp.getOtherResults()
if len(otherresults) > 0:
- print "<br/>ma forse ti possono interessare:<br/>"
+ print "<br/>altri risultati trovati:<br/>"
for qr in otherresults:
label = qr.label
@@ -206,7 +206,7 @@ def ultrie(resourcetrie, resuri=""):
res1 += "<ul>\n"
for resource in resourcetrie.resources:
if schoice == "verbose":
- res1 += '<li class="result">%s [%s]</li>\n' % (resource.getFilename(), resource.firstseen)
+ res1 += '<li class="result">%s</li>\n' % resource.getFilename()
else:
fileuri = resource.uri.replace("smb://", smbschema, 1)
res1 += '<li class="result"><a href="%s">%s</a></li>\n' % (fileuri, resource.getFilename())
@@ -225,6 +225,22 @@ def ultrie(resourcetrie, resuri=""):
res = res1
return res
+for i in range(len(resp.resultlistlist)):
+ rlist = resp.resultlistlist[i]
+ if len(rlist) > 0:
+ if rlist.exactresult:
+ csstitleclass = 'exactrestitle'
+ cssclass = 'exactresults'
+ else:
+ csstitleclass = 'otherrestitle'
+ cssclass = 'otherresults'
+ print "<a name='res%d' class='%s'>%s</a>" %(i, csstitleclass, resp.getLabels()[i])
+ print "<ul class='%s'>" % cssclass
+ resourcetrie = rlist.getTrie()
+ print ultrie(resourcetrie)
+ print "</ul>"
+ print "<div class='bottomtoplink'><span class='uarr'>&uarr;</span><a href='#rindex'>TOP</a></div>"
+
print bottomform
print outputtail

0 comments on commit c552cb5

Please sign in to comment.
Something went wrong with that request. Please try again.