Hello Pylons/Paste experts.

I want to use StackedObjectProxy in my Pylons application for some of my own
data structures: I've got some basic container classes that need to be
REQUEST specific (not necessarily thread specific). My understanding of the
docs indicates to me that this is the right thing to use, but it's not
working as I expect.

If I use one browser to put some values into one of these container classes,
then hit the same controller with another browser (not another window --
another browser) I see the data from the first input. So, the data is
drifting across requests.

This almost certainly is pilot error, but before I dig in and try and trace
the code to find my error, I thought I'd make sure I understand SOP
properly.

Here's what I've got:

from paste.registry import StackedObjectProxy
_forms_storage_container = { }
registry = request.environ['paste.registry']
registry.register(StackedObjectProxy(), _forms_storage_container)

My hope was that _forms_storage_container would thereby do something *magic*
to allow me to yank items from it for requests and to keep the data therein
independent from other requests.

Is it perhaps deepcopy related?

Any other clues would be very appreciated.

Thanks!
_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to