[Zope-book] http://www.zope.org/Members/michel/ZB/RelationalDatabases.html

Michel Pelletier michel at digicool.com
Fri Dec 8 03:32:56 EST 2000


On Fri, 8 Dec 2000, Jason Cunliffe wrote:

> http://www.zope.org/Members/michel/ZB/RelationalDatabases.html
> 
> 
> Binding Classes to Result Objects
> A result object has an attribute for each column in results row. However,
> result objects do not have any methods, just attributes.
> 
> There are two ways to bind a method to a Result object. As you saw in the
> previous section, you can bind DTML and other methods to Z SQL Method Result
> objects using the normal URL based acquisition bind mechanism described in
> Chapter 8. You can also bind methods to Result objects by defining a Python
> class that gets mixed in with the normal, simple Result object class. These
> classes are defined in the same location as _____________Unrestricted Python
> Methods____________ on the filesystem, in Zope's Extensions directory.
> Python classes are collections of methods and attributes. By associating a
> class with a Result object, you can make the Result object have a rich API
> and user interface.

Ah, you got this one!  Great, I just fixed it, thanks.

-Michel





More information about the Zope-book mailing list