hello,

I have a custom Rack which have a searchResults:

-----8<-----
def searchResults(self, **kw):
        sqlresults = self.sql_search(kw)
        return map(
                lambda r, self=self: self.getItem(r.key), 
                sqlresults
        )
-----8<-----

The sql query give me a list of keys to be looked up in the ZODB. I have
got an AttributeProvider on the rack which get the other attributes from
the SQL table.
However, when I try to use the results from DTML inside the specialist:

<dtml-in "searchResults()">
<dtml-var sqlvalue>
</dtml-in>

This does not work. It throws an exception (sqlvalue not found)
But:

<dtml-var "searchResults()[0].sqlvalue">

*does* work. Why the DataSkin seems no to be pushed on the variable
stack in the first case???

any ideas?

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