comparison MoinMoin/theme/__init__.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 07ab9d4b8bb8
children 1e9444f35a22
comparison
equal deleted inserted replaced
3039:744c46c1f869 3040:8608b258f8e6
734 updates = { 734 updates = {
735 'search_label': _('Search:'), 735 'search_label': _('Search:'),
736 'search_value': wikiutil.escape(form.get('value', [''])[0], 1), 736 'search_value': wikiutil.escape(form.get('value', [''])[0], 1),
737 'search_full_label': _('Text', formatted=False), 737 'search_full_label': _('Text', formatted=False),
738 'search_title_label': _('Titles', formatted=False), 738 'search_title_label': _('Titles', formatted=False),
739 'baseurl': self.request.getScriptname(),
740 'pagename_quoted': wikiutil.quoteWikinameURL(self.request.page.page_name),
739 } 741 }
740 d.update(updates) 742 d.update(updates)
741 743
742 html = u''' 744 html = u'''
743 <form id="searchform" method="get" action=""> 745 <form id="searchform" method="get" action="%(baseurl)s/%(pagename_quoted)s">
744 <div> 746 <div>
745 <input type="hidden" name="action" value="fullsearch"> 747 <input type="hidden" name="action" value="fullsearch">
746 <input type="hidden" name="context" value="180"> 748 <input type="hidden" name="context" value="180">
747 <label for="searchinput">%(search_label)s</label> 749 <label for="searchinput">%(search_label)s</label>
748 <input id="searchinput" type="text" name="value" value="%(search_value)s" size="20" 750 <input id="searchinput" type="text" name="value" value="%(search_value)s" size="20"
997 999
998 data = { 1000 data = {
999 'label': titles['__title__'], 1001 'label': titles['__title__'],
1000 'options': '\n'.join(options), 1002 'options': '\n'.join(options),
1001 'rev_field': rev and '<input type="hidden" name="rev" value="%d">' % rev or '', 1003 'rev_field': rev and '<input type="hidden" name="rev" value="%d">' % rev or '',
1002 'do_button': _("Do") 1004 'do_button': _("Do", formatted=False),
1005 'baseurl': self.request.getScriptname(),
1006 'pagename_quoted': wikiutil.quoteWikinameURL(self.request.page.page_name)
1003 } 1007 }
1004 html = ''' 1008 html = '''
1005 <form class="actionsmenu" method="get" action=""> 1009 <form class="actionsmenu" method="get" action="">
1006 <div> 1010 <div>
1007 <label>%(label)s</label> 1011 <label>%(label)s</label>