Nicholas Wieland wrote:

As usual, my question is rather simple :)
I'd like to know what are the best practices for product organization - for example I have _tons_ of queries to sqlserver, and my main class is becoming less manageble every time I look at it :/ I like the way SQL integrates in Zope, what I don't like is having a giant __init__ and a lot of _sqlSomething at the end of the class. Can I associate queries to something else than a _variable ? Something like a dictionary or a class ? Can I move SQL calls outside the initializer ? I'd prefer to have a class for data access and another one to glue all the parts together, maybe I'm plain wrong but I think that my product would be a lot cleaner. What are the best practices for FS based products ?

If you're writing SQL queries attached to a Product and using them in said Product, you should look at ExtZSQL:

It was made for precisely this problem.


"Building Websites with Plone"

Enfold Systems, LLC

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to