28 Feb
2004
28 Feb
'04
9:57 p.m.
Chris Bruce wrote at 2004-2-27 15:55 -0800:
I am trying to make a folderish ObjectManager that can display items that exist inside it (in ZODB) as well as some items in a db. I would like the database items to appears as if they exist in the folder. Most of this is for the manage interface. I created a Product that extends ObjectManager.
Should I just override objectItems and objectIds?
When you want to use the standard ZMI, you will need to override the "object*" methods.
But I am worried about how to handle the _getObj method.
Look at how "Z SQL Methods" wrap database records into custom classes (maybe called "brains"). Do something similar in your "_getOb". -- Dieter