comparison MoinMoin/macro/AdvancedSearch.py @ 3040:8608b258f8e6

bug fix of MoinMoinBugs/MoveAttachmentNotWorkingWithModPython (thanks to Boleslaw Kulbabinski) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 05 Feb 2008 21:22:56 +0100
parents 388204baf00f
children 3489709aa99f
comparison
equal deleted inserted replaced
3039:744c46c1f869 3040:8608b258f8e6
6 displays advanced search dialog. 6 displays advanced search dialog.
7 7
8 @license: GNU GPL, see COPYING for details. 8 @license: GNU GPL, see COPYING for details.
9 """ 9 """
10 10
11 from MoinMoin import wikiutil
11 from MoinMoin.i18n import languages 12 from MoinMoin.i18n import languages
12 from MoinMoin.widget import html 13 from MoinMoin.widget import html
13 from MoinMoin.util.web import makeSelection 14 from MoinMoin.util.web import makeSelection
14 from MoinMoin.support.python_compatibility import sorted 15 from MoinMoin.support.python_compatibility import sorted
15
16 import mimetypes 16 import mimetypes
17 17
18 Dependencies = ['pages'] 18 Dependencies = ['pages']
19 19
20 20
133 ) 133 )
134 ]) 134 ])
135 135
136 # the dialogue 136 # the dialogue
137 return f.rawHTML('\n'.join([ 137 return f.rawHTML('\n'.join([
138 u'<form method="get" action="">', 138 u'<form method="get" action="%s/%s">' % (macro.request.getScriptname(), wikiutil.quoteWikinameURL(macro.request.formatter.page.page_name)),
139 u'<div>', 139 u'<div>',
140 u'<input type="hidden" name="action" value="fullsearch">', 140 u'<input type="hidden" name="action" value="fullsearch">',
141 u'<input type="hidden" name="advancedsearch" value="1">', 141 u'<input type="hidden" name="advancedsearch" value="1">',
142 f.table(1, attrs={'tableclass': 'advancedsearch'}), 142 f.table(1, attrs={'tableclass': 'advancedsearch'}),
143 search_boxes, 143 search_boxes,