mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Alon Levy
Subject: [GMG-Devel] [PATCH 25/83] Add search forms.
Date: Tue, 25 Feb 2014 21:58:08 +0200

From: Praveen Kumar <address@hidden>

---
 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]