[GMG-Devel] [PATCH 25/83] Add search forms.

Alon Levy alon at pobox.com
Tue Feb 25 14:58:08 EST 2014


From: Praveen Kumar <praveen97uma at gmail.com>

---
 mediagoblin/plugins/search/forms.py | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 mediagoblin/plugins/search/forms.py

diff --git a/mediagoblin/plugins/search/forms.py b/mediagoblin/plugins/search/forms.py
new file mode 100644
index 0000000..738cb30
--- /dev/null
+++ b/mediagoblin/plugins/search/forms.py
@@ -0,0 +1,8 @@
+import wtforms
+
+from mediagoblin.tools.translate import lazy_pass_to_ugettext as _
+
+class SearchForm(wtforms.Form):
+    query = wtforms.TextField(
+        _('Search'),
+        [wtforms.validators.Length(min=1, max=512)])
-- 
1.8.5.3



More information about the devel mailing list