changeset 2663:c1f0d6ec3b55

Add a hidden action field to the search form.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Thu, 09 Aug 2007 01:21:08 +0200
parents 9c71c7c7f5f6
children 4d4a1a5c0c42
files jabberbot/xmppbot.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jabberbot/xmppbot.py	Thu Aug 09 01:18:41 2007 +0200
+++ b/jabberbot/xmppbot.py	Thu Aug 09 01:21:08 2007 +0200
@@ -451,6 +451,7 @@
         full_search = forms.Option("f", search_type2)
 
         form = forms.Form(xmlnode_or_type="form", title=form_title, instructions=help_form)
+        form.add_field(name="action", field_type="hidden", value="search")
         form.add_field(name="case", field_type="boolean", label=case_label)
         form.add_field(name="regexp", field_type="boolean", label=regexp_label)
         form.add_field(name="search_type", options=[title_search, full_search], field_type="list-single", label=search_label)