[Zope-DB] result

Andrew Veitch andrew@logicalprogression.net
Tue, 11 Mar 2003 23:56:14 +0000


You'd need to do:

from Shared.DC.ZRDB.Results import Results

and then create instance - check out the source for details.

However, you almost certainly don't need to do this. If you just create an
ordinary dictionary for all practical purposes this will behave in the same
way in a dtml-in as a Results object would.

A

On 11/3/03 11:16 pm, "D. Rick Anderson" <ruger@comnett.net> wrote:

> I sent this to the zope@zope.org board, but nobody answered and I
> supposed it's because it's more DB related. ;-)
> 
> I need to know how to build a 'result' like the ones that are returned
> from a query. I'm wanting to take a set of data, and be able to use it
> with dtml-in exactly like I would an SQL query. Mainly because
> eventually it will be replaced by an actual query and I dont' want to
> have to re-code this whole site when it does.  I read 'How to write a
> DA' on the Zope.org site, but it's section on the result is terse and
> doesn't really explain what you have to do.
> 
> Thanks,
> 
> Rick
> 
> 
> 
> 
> 
> _______________________________________________
> Zope-DB mailing list
> Zope-DB@zope.org
> http://mail.zope.org/mailman/listinfo/zope-db