[Checkins] SVN: z3c.contents/trunk/src/z3c/contents/ Don't expose
the IContentsSearch interface in the zec.contents.interface API
Roger Ineichen
roger at projekt01.ch
Sat Apr 12 18:14:03 EDT 2008
Log message for revision 85292:
Don't expose the IContentsSearch interface in the zec.contents.interface API
this is just specific to the existing form and not reusable.
Only forms have to define it's own search pattern and the required fields.
Changed:
U z3c.contents/trunk/src/z3c/contents/browser.py
U z3c.contents/trunk/src/z3c/contents/interfaces.py
-=-
Modified: z3c.contents/trunk/src/z3c/contents/browser.py
===================================================================
--- z3c.contents/trunk/src/z3c/contents/browser.py 2008-04-12 22:09:56 UTC (rev 85291)
+++ z3c.contents/trunk/src/z3c/contents/browser.py 2008-04-12 22:14:03 UTC (rev 85292)
@@ -64,7 +64,11 @@
class ContentsSearchForm(form.Form):
template = getPageTemplate()
- fields = field.Fields(interfaces.IContentsSearch)
+ fields = field.Fields(field.Field(
+ zope.schema.TextLine(
+ title=_(u'Search'),
+ description=_('Search term'),
+ default=u''), 'searchterm'))
prefix = 'search'
table = None
ignoreContext = True
Modified: z3c.contents/trunk/src/z3c/contents/interfaces.py
===================================================================
--- z3c.contents/trunk/src/z3c/contents/interfaces.py 2008-04-12 22:09:56 UTC (rev 85291)
+++ z3c.contents/trunk/src/z3c/contents/interfaces.py 2008-04-12 22:14:03 UTC (rev 85292)
@@ -28,20 +28,6 @@
"""Container management page."""
-class IContentsSearch(zope.interface.Interface):
- """We would like to provide a search field for searching within the
- container.
-
- Possible addition here could be a choice field to search within specific
- columns.
- """
-
- searchterm = zope.schema.TextLine(
- title=_(u'Search'),
- description=_('Search term'),
- default=u'')
-
-
class ISearch(zope.interface.Interface):
"""
Search support for containers.
More information about the Checkins
mailing list