[Grok-dev] Managing non-persisted objects
alecmunro at gmail.com
Fri Jun 27 11:52:26 EDT 2008
It's been a while since I've picked up grok, but I've got an
interesting project to try out, and the .13 release seemed like a good
occasion to dive back in.
In my app, I want to drive a windows App using COM, controlled through
a web page. I've got the basics down (I can click a link and have the
app be opened), but I'm a little lost as to how to manage the COM
object. It doesn't persist (raises "can't pickle PyIDispatch
objects"), as I would expect, so maintaining the reference to the
application between requests is where I'm stuck.
I suppose the first question is whether it is even possible to do
things this way?
If there is, my guess is that I would need someway to specify certain
objects as non-persisting, so it never attempts to pickle them (and
they are wiped out when the system shuts down).
Advice is much appreciated.
More information about the Grok-dev