TinyTable object type is Shared.DC.ZRDB.Results.Results???
Hi, I create a TinyTable object. Then I run the following code: <dtml-in "objectItems('TinyTable')"> <dtml-var sequence-item fmt=html-quote><BR> </dtml-in> I get this: <Shared.DC.ZRDB.Results.Results instance at 8628c78> Welcome to the Twilight Zone. What's happening here? This really gets in the way when I try to access the TinyTable object from a ZCatalog search: <dtml-in Catalog> <dtml-with "Catalog.getobject(data_record_id_)"> <IMG SRC="<dtml-var icon>"> <dtml-var id> </dtml-with> </dtml-in> This displays the correct icon and id for all objects other than TinyTable. For TinyTable this displays the Catalog icon, and the <dtml-var id> returns Unauthorized, even for Manager. Any ideas? Itai -- Itai Tavor -- "Je sautille, donc je suis." -- itavor@vic.bigpond.net.au -- - Kermit the Frog -- -- "What he needs now is understanding... and a confederate victory" -- -- Dr. Jacobi, Twin Peaks --
In article <v04220800b4ea072f64f5@[192.168.0.2]>, Itai Tavor <itavor@bigpond.net.au> wrote:
Hi,
I create a TinyTable object. Then I run the following code:
<dtml-in "objectItems('TinyTable')"> <dtml-var sequence-item fmt=html-quote><BR> </dtml-in>
I get this:
<Shared.DC.ZRDB.Results.Results instance at 8628c78>
This is as expected, really. When you say <dtml-var foo>, if foo is callable then it's called automatically and the results are returned. When you say <dtml-var sequence-item>, the sequence-item is a TinyTable. Since TinyTables are callable, returning a Results instance, that's what you get.
participants (2)
-
Itai Tavor -
tsarnaļ¼ endicor.com