Mental disconnect help: Zope objects vs. Python objects in ZODB
Hello, I'm designing a large e-commerce site with Zope. In the process I have also designed an object API for the site. My problem is that I can't bridge my conception of ZODB as a database for Zope objects and my conception of ZODB as a container for Python objects. For the latter case I'm thinking of AMK's ZODB/ZEO repackaging. For example, I want to create a Python class for a Product object and store the instances in the ZODB. I have looked at ZClasses and they don't seem to support data structures that I'm comfortable with in Python like dictionaries. Am I being dense in this mental disconnect and is it just trivial to write Python scripts that create objects in the ZODB and have Zope dtml calls that access the attributes in these objects? ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com ------------------------------------------------------
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of andres@corrada.com
Am I being dense in this mental disconnect and is it just trivial to write Python scripts that create objects in the ZODB and have Zope dtml calls that access the attributes in these objects?
I have written a How-To that'll get you at least some of the way in understanding it. regards Max M. W. Rasmussen, Denmark. New Media Director private: maxmcorp@worldonline.dk work: maxm@normik.dk ----------------------------------------------------- Shipping software is an unnatural act
On Thu, Jan 18, 2001 at 11:36:59PM +0100, Max M wrote:
I have written a How-To that'll get you at least some of the way in understanding it.
I second Chris on the request for a URL pointing to your HOW-TO. I'd appreciate any help that gets me out of this disconnect rut. ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com ------------------------------------------------------
participants (3)
-
andres@corrada.com -
Chris Withers -
Max M