I'm having a problem storing infinity. The following code reproduces
the problem on w2k:
from ZODB import FileStorage, DB
from persistent import Persistent
from persistent.mapping import PersistentMapping as dict
import transaction
storage = FileStorage.FileStorage('zodb.db')
db = DB(storage)
Is there a standard procedure for dealing with fundamental changes to
classes? For instance, how do you make a ZODB cope with a class being
renamed, or being placed in a different location? How will it know
that oldmod.myclass == newmod.myclass?
Chris
On 8/16/06, Jim Fulton [EMAIL PROTECTED] wrote:
On Aug 16, 2006, at 5:13 AM, Adam Groszer wrote:
Hello Andreas,
Yep, you're right :-)
Are there any hooks in ZODB to support that or that should be a major
overhaul?
There are no hooks. It would probably not be a major overhaul,
however,
When commiting a transaction, is there any way to track the progress
of data commited? I have a small gui app, and I'd like to display a
progress bar indicating the status of the commit.
Chris
___
For more information about ZODB, see the ZODB Wiki:
On 7/26/06, Gary Poster [EMAIL PROTECTED] wrote:
The reason why I'm doing this is because I'm trying to update the
classes of persistent objects loaded into memory.
Want to elaborate on this a bit? It sounds like stuff other folks
have done, but you might want to give more detail.
When a
On 7/26/06, Chris McDonough [EMAIL PROTECTED] wrote:
FWIW I believe by default at least, open ZODB connections are tied to
the thread which did the opening (they are returned to a pool when
closed and reused, possibly in another thread). And indeed each
connection does have a cache; caching is
Is it possible to close a connection used in one thread from another
thread? My program has a locking mechanism, so I can ensure threads
don't use their connection while it's closed, but whenever I try to
close one thread's connection from another thread, I get errors like:
self.conn.close()
in ZODB to first close all connections, call
resetCaches(), then reopen the connections?
Chris
On 7/14/06, Chris S [EMAIL PROTECTED] wrote:
I have a small module that can dynamically update code objects in
memory after reloading their module (http://paste.plone.org/5431). It
greatly simplifies
I'm trying to detect a disparity between an instance __version__ and a
class __version__, signifying a class upgrade. However, I'm not sure
why the following code doesn't work.
class Foo(Persistent):
__version__ = 1.0
def __setstate__(self, state):
Persistent.__setstate__( self,
On 7/14/06, Chris S [EMAIL PROTECTED] wrote:
I'm trying to detect a disparity between an instance __version__ and a
class __version__, signifying a class upgrade. However, I'm not sure
why the following code doesn't work.
class Foo(Persistent):
__version__ = 1.0
def __setstate__(self
On 7/13/06, David Binger [EMAIL PROTECTED] wrote:
On Jul 13, 2006, at 12:55 PM, Chris S wrote:
I don't think this is the case. Consider my simple example below. None
of my classes inherit Persistent, and even though I set _p_changed =
1, nothing's persisted.
In your example, it seems like
On 7/13/06, David Binger [EMAIL PROTECTED] wrote:
On Jul 13, 2006, at 1:35 PM, Chris S wrote:
On 7/13/06, David Binger [EMAIL PROTECTED] wrote:
On Jul 13, 2006, at 12:55 PM, Chris S wrote:
I don't think this is the case. Consider my simple example
below. None
of my classes inherit
On 7/13/06, David Binger [EMAIL PROTECTED] wrote:
On Jul 13, 2006, at 3:55 PM, Chris S wrote:
Uh, calling root.get(name, obj) assigns obj to the root if the name is
not yet defined. And of course I'm not assigning to any other
Persistent instances, since the point of the code was to show
13 matches
Mail list logo