RE: [Zope-dev] ZPatterns Design Issue

2001-04-25 Thread Roch'e Compaan
I generally follow this approach for long lists and reports, but the tree tag is a bit more tricky because you only have a simple data object without the context that a real object provides. A real object makes it a lot simpler if you recursively draw a hierarchy - doing it with simple data

Re: [Zope-dev] ZPatterns Design Issue

2001-04-24 Thread Phillip J. Eby
At 03:01 PM 4/24/01 +0200, Roch'e Compaan wrote: Building the tree leads to a whole bunch of queries to the database that really slows thing down ie. besides the queries that retrieve children, select queries to retrieve individual instances is called by getItem through SkinScript for each item

RE: [Zope-dev] ZPatterns Design Issue

2001-04-24 Thread Roch'e Compaan
How do you bind a SQL Result with multiple records with multiple instances of the class? Can you do this in Skinscript? Or do you mean I should return the sql result directly? Roché Why don't you just have the rack's getChildrenFor() method return instances of the correct class, with all

RE: [Zope-dev] ZPatterns Design Issue

2001-04-24 Thread Phillip J. Eby
At 05:26 PM 4/24/01 +0200, Roch'e Compaan wrote: How do you bind a SQL Result with multiple records with multiple instances of the class? Can you do this in Skinscript? Or do you mean I should return the sql result directly? Just return the result directly. If the data is all from SQL, that's