How can I pass objects in a web page?

Cliff Wells clifford.wells at comcast.net
Mon Sep 20 17:36:02 EDT 2004


On Mon, 2004-09-20 at 13:59 -0700, Brian Bull wrote:
> I have written something that creates about 5000 unique objects.  I
> want to have a link on a page that when clicked will take the user to
> a page that will "describe" the contents of the object.  The problem
> seems to be passing the object from one static page to another via a
> link.  Is this possible?

The web, being stateless, usually requires that you "rebuild the world"
with every mouse click.  Probably what you'd want to do is use some sort
of persistent object store (usually a database) to recover your objects
from.  I know there are a few projects that make this at least semi-
transparent, ZODB being one of the more commonly used ones (it's part of
Zope but can be used separately, if I'm not mistaken).  Try googling for
python+persistent+objects and see what comes up.

Regards,
Cliff

-- 
Cliff Wells <clifford.wells at comcast.net>




More information about the Python-list mailing list