[Zope] Why can't I subclass a ZSQLMethod?

Ivan Raikov ivan@faxnet.com
30 Jun 2000 16:32:59 -0400


Why don't you create a ZClass and make the ZSQLMethod to be one of its
methods? Then the ZClass can provide the user interface to the SQL
query and the result set.

Regards,
Ivan Raikov

"Cary O'Brien" <cobrien@Radix.Net> writes:

> I want to wrap a presentation layer around ZSQLQueries, so that
> they will have methods to generate an input form [1] for the query,
> and generate tabular results if so desired.
> 
> I tried to create a ZClass to do this, but I can't subclass from a
> ZSQLMethod.
> 
> Any other ideas on how to do this (besides a class where you have
> to tell it the ZSQLMethod to use)?
> 
> -- cary
> 
> [1] Using sql.arguments_str to find out the arguments.  Finding THAT was
>     a struggle!  
> 
>