[Checkins] SVN: grokcore.catalog/trunk/src/grokcore/catalog/ Fixed the tests further

Souheil Chelfouh cvs-admin at zope.org
Sun Apr 29 10:21:57 UTC 2012


Log message for revision 125370:
  Fixed the tests further
  

Changed:
  A   grokcore.catalog/trunk/src/grokcore/catalog/configure.zcml
  U   grokcore.catalog/trunk/src/grokcore/catalog/ftesting.zcml
  U   grokcore.catalog/trunk/src/grokcore/catalog/ftests/catalog/indexes_attribute.py

-=-
Added: grokcore.catalog/trunk/src/grokcore/catalog/configure.zcml
===================================================================
--- grokcore.catalog/trunk/src/grokcore/catalog/configure.zcml	                        (rev 0)
+++ grokcore.catalog/trunk/src/grokcore/catalog/configure.zcml	2012-04-29 10:21:53 UTC (rev 125370)
@@ -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>

Modified: grokcore.catalog/trunk/src/grokcore/catalog/ftesting.zcml
===================================================================
--- grokcore.catalog/trunk/src/grokcore/catalog/ftesting.zcml	2012-04-29 10:00:23 UTC (rev 125369)
+++ grokcore.catalog/trunk/src/grokcore/catalog/ftesting.zcml	2012-04-29 10:21:53 UTC (rev 125370)
@@ -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>

Modified: grokcore.catalog/trunk/src/grokcore/catalog/ftests/catalog/indexes_attribute.py
===================================================================
--- grokcore.catalog/trunk/src/grokcore/catalog/ftests/catalog/indexes_attribute.py	2012-04-29 10:00:23 UTC (rev 125369)
+++ grokcore.catalog/trunk/src/grokcore/catalog/ftests/catalog/indexes_attribute.py	2012-04-29 10:21:53 UTC (rev 125370)
@@ -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
@@ -59,7 +60,7 @@
     grokcore.catalog.context(IMammoth)
 
     name = grokcore.catalog.Field()
-    how_old = grokcore.catalog.Field('age')
+    how_old = grokcore.catalog.Field(attribute='age')
 
 
 class Mammoth(Model):



More information about the checkins mailing list