[Persistence-sig] persistence to code-related-object?
Jeff Sasmor
jsasmor@gte.net
Mon, 26 Aug 2002 11:50:51 -0400
Hello, Paolo,
I have done what you're writing about, I think, if what you mean is
being able to import from a code object stored in the ZODB.
It's part of a Python development system that I am working on,
and actually it's not all that hard to do (now, getting 'reload' to
work properly is **much** more challenging).
The key to getting this to work is the imputil package which I
believe was originally written by Greg Ward and extended
by the same folk(s) who wrote the McMillin installer package.
You can find it at their (McMillin) website or email me and I
can fwd it to you.
I have a whole folder/object structure similar to what Zope
looks like, with the ZODB (ZODB 3, so far) underlying it. That
made it simpler to deal with the import issue, you just say
import folder.object
where the object is a PythonMethod obj that has a GUI editor
(wxPython/Scintilla) and a code obj embedded in it.
So you can start with the imputil package or wait a few months
and leverage off what I have done.
jms
#--------------------------------
Jeff Sasmor
jeff@sasmor.com
----- Original Message -----
From: "Paolo Invernizzi" <paoloinvernizzi@dmsware.com>
To: <persistence-sig@python.org>
Sent: Monday, August 26, 2002 4:19 AM
Subject: [Persistence-sig] persistence to code-related-object?
Hello folks,
I was looking at the class persistence module in current zodb, and the
current implementation is pretty broken. (I've posted details on the
zodb-dev mailing list...)
Jeremy adviced me to ask all you if the problem of persistence applied to code
stuff (function,module,classes,code-object,...) is relevant to this
sig or not.
I'm pretty interested, as applying persistence machinery to code
related object and leveraging the import module to handle imports from
persistent module, spread new interesting paths to investigate.
Paolo Invernizzi
_______________________________________________
Persistence-sig mailing list
Persistence-sig@python.org
http://mail.python.org/mailman-21/listinfo/persistence-sig