Ralph Bean avatar Ralph Bean committed 23845a8

Removed filter schema. No-one is using it (I hope).

Comments (0)

Files changed (2)

 
 setup(
     name='tw2.jqplugins.jqgrid',
-    version='2.0b21',
+    version='2.0b22',
     description='toscawidgets2 wrapper for the jQuery grid plugin',
     long_description=long_description,
     author='Ralph Bean',

tw2/jqplugins/jqgrid/widgets/core.py

 import tw2.jquery.base as tw2_jq_c_b
 import tw2.jqplugins.ui.base as tw2_jq_ui
 
-import formencode.validators as fv
 from tw2.jqplugins.jqgrid import base
 
 _pager_defaults = {'enableSearch': True, 'enableClear': True, 'gridModel': True}
 
-import formencode as fe
-import formencode.validators as fv
-# TODO -- how to make use of this?  a tw2 controller?
-class jqGridFilterSchema(fe.Schema):
-    allow_extra_fields=True
-
-    page = fv.Int(if_empty=1, not_empty=False, if_missing=1)
-    rows = fv.Int(if_empty=10, not_empty=False, if_missing=1)
-    sidx = fv.String(if_empty=None, not_empty=False, if_missing=None)
-    sord = fv.String(if_empty=None, not_empty=False, if_missing=None)
-    _search = fv.StringBool(if_empty=False, not_empty=False, if_missing=False)
-    searchField = fv.String(if_empty=None, not_empty=False, if_missing=None)
-    searchString = fv.String(if_empty=None, not_empty=False, if_missing=None)
-    searchOper = fv.String(if_empty=None, not_empty=False, if_missing=None)
-
-
 class jqGridWidget(tw2_jq_ui.JQueryUIWidget):
     resources = [
         tw2.jquery.jquery_js,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.