[Checkins] SVN: grok/trunk/src/grok/ftests/rest/rest_traverse.py fix a bug in the tests where a sub object was always returned, not just when a particular name was traversed
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Fri Nov 27 05:08:19 EST 2009
Log message for revision 106052:
fix a bug in the tests where a sub object was always returned, not just when a particular name was traversed
Changed:
U grok/trunk/src/grok/ftests/rest/rest_traverse.py
-=-
Modified: grok/trunk/src/grok/ftests/rest/rest_traverse.py
===================================================================
--- grok/trunk/src/grok/ftests/rest/rest_traverse.py 2009-11-27 10:04:22 UTC (rev 106051)
+++ grok/trunk/src/grok/ftests/rest/rest_traverse.py 2009-11-27 10:08:19 UTC (rev 106052)
@@ -74,7 +74,7 @@
class MyContent(grok.Model):
def traverse(self, name):
- if 'sub':
+ if name == 'sub':
return MyContent()
class LayerZ(grok.IRESTLayer):
More information about the checkins
mailing list