Skip to content

Commit

Permalink
Fixed the tests further
Browse files Browse the repository at this point in the history
  • Loading branch information
trollfot committed Apr 29, 2012
1 parent bc47532 commit 2f03509
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
12 changes: 12 additions & 0 deletions src/grokcore/catalog/configure.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:grok="http://namespaces.zope.org/grok">

<include package="zope.catalog" file="subscribers.zcml" />
<include package="zope.intid" file="subscribers.zcml" />
<include package="grokcore.site" file="meta.zcml" />
<include package="." file="meta.zcml" />
<include package="zope.container" />
<include package="grokcore.site" />

</configure>
4 changes: 1 addition & 3 deletions src/grokcore/catalog/ftesting.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
package="grokcore.catalog">

<include package="zope.app.appsetup" file="ftesting.zcml" />

<include package="grokcore.catalog" file="meta.zcml" />

<include package="grokcore.catalog" />
<grok:grok package="grokcore.catalog.ftests" />

</configure>
3 changes: 2 additions & 1 deletion src/grokcore/catalog/ftests/catalog/indexes_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
>>> from zope.catalog.interfaces import ICatalog
>>> from zope.component import getUtility, queryUtility
>>> catalog = getUtility(ICatalog)
>>> for obj in catalog.searchResults(how_old=(13, 13)):
... print obj.name
Alpha
Expand Down Expand Up @@ -59,7 +60,7 @@ class MammothIndexes(grokcore.catalog.Indexes):
grokcore.catalog.context(IMammoth)

name = grokcore.catalog.Field()
how_old = grokcore.catalog.Field('age')
how_old = grokcore.catalog.Field(attribute='age')


class Mammoth(Model):
Expand Down

0 comments on commit 2f03509

Please sign in to comment.