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
[EMAIL PROTECTED]

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to