Nicholas Wieland wrote at 2005-7-27 13:54 +0200:
>Well, not exactly - just a way to separate access to data from everything else
>in the product.
>Maybe a separate class that needs the connection as argument and that just
>returns the data I need in appropriate data structures by calling class
>class DataModel (object):
> def __init__ (self, conn):
> self.conn = conn
> self.sqlFetchSomething = SQL (.....)
I think, a class variable "sqlFetchSomething" would do a better
job -- unless "SQL" depends on "conn".
* fewer objects in the ZODB, fewer loads, faster operations
* easier evolution of your SQL (in you need to change the
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -