[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Relational Database Connectivity
webmaster@zope.org
webmaster@zope.org
Sat, 28 Sep 2002 08:20:17 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/RelationalDatabases.stx#3-91
---------------
A result object has an attribute for each column in results row.
However, result objects do not have any methods, just
attributes.
% Anonymous User - Aug. 8, 2002 9:31 am:
This Class is tied to a SQL-Method returning just one row per call.
Is it possible to use this feature with SQL-Methods returning multiple rows ?
This would be nice - e.g. for filtering query results in the Class, reducing pollution of the container
folder by dozens of SQL-Methods.
% Anonymous User - Sep. 28, 2002 8:20 am:
/A result object has an attribute for each column in results row./
is this correct english? i dont understand. maybe you mean
/A result object has in each of its results rows attributes for each table column./
AFAIK, its not an attribute, but a dictionary key. OTOH, getattr is redefined. very foggy here...