[Zope-dev] bug in zpatterns-0.4 ?
Jephte CLAIN
Jephte.Clain@univ-reunion.fr
Tue, 27 Jun 2000 11:28:44 +0400
mike wrote:
> > This causes infinite loop because Rack.newItem calls Rack.createItem
> > which calls my (modified) getItem
>
> 1. Leave getItem untouched. Move all that SQL-related stuff into the
> retrieveItem method which *is intended* to be overriden.
>
> 2. Move newItem stuff into Specialist. You have mixed 'Restaurant' and
> the 'FoodStore' in this snippet :-) Do this instead:
Good point. I have to remember that getItem/newItem are not for
overriding.
But the problem remains the same. a low level method (createItem) should
not call a high level method (getItem)
regards,
jephte clain
jclain@univ-reunion.fr