Skip to content

Commit

Permalink
Add a field to SearchableText
Browse files Browse the repository at this point in the history
  • Loading branch information
smcmahon committed May 13, 2011
1 parent 3e403ca commit cf721a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions collective/dexterity_class/everything_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
from z3c.relationfield.schema import RelationChoice, RelationList
from plone.formwidget.contenttree import ObjPathSourceBinder

from collective.dexteritytextindexer import searchable

from collective.dexterity_class import MessageFactory as _


Expand All @@ -38,6 +40,7 @@ class IEverythingModel(form.Schema):
fields=['file_upload', 'image_field'],
)

searchable('text_line')
text_line = schema.TextLine(title=_(u"Text Line"), required=False)

date_time_field = schema.Date(title=u'Date-Time Field', required=False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<property name="behaviors">
<element value="plone.app.content.interfaces.INameFromTitle" />
<element value="plone.app.dexterity.behaviors.metadata.IBasic"/>
<element value="collective.dexteritytextindexer.behavior.IDexterityTextIndexer" />
</property>

<!-- View information -->
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
install_requires=[
'setuptools',
'plone.app.dexterity',
'collective.dexteritytextindexer',
# -*- Extra requirements: -*-
],
entry_points="""
Expand Down

0 comments on commit cf721a7

Please sign in to comment.