[ZODB-Dev] BTrees persistence problem

2006-06-29 Thread Florent Guillaume
._p_changed B() This prints: False 4 False False Where I would expect True for the last two at least. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more information a

Re: [ZODB-Dev] Re: getting the object ID (_p_oid attribute)

2006-06-26 Thread Florent Guillaume
with the same oid have the same identity (that's the purpose of the "pickle cache" and "_added" cache if you're interested in internals). Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTE

Re: [ZODB-Dev] Re: getting the object ID (_p_oid attribute)

2006-06-26 Thread Florent Guillaume
edits them and sends them back. You can shorten that to def __eq__(self, other): return aq_base(self) is aq_base(other) And you can ditch the aq_base if you don't use acquisition-based classes. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59

[ZODB-Dev] Re: getting the object ID (_p_oid attribute)

2006-06-26 Thread Florent Guillaume
e any way to get an object ID *before* an object has been persisted? You can call container._p_jar.add(yourobject) to have it get an oid before commit time. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL

[ZODB-Dev] Re: What makes the ZODB slow?

2006-06-26 Thread Florent Guillaume
Chris Withers wrote: Florent Guillaume wrote: I can comment, I have a big brain too: the code in the catalog uses per-connection series of keys, so no conflicts arise. Really? I thought they were per-thread... wasn't aware that each thread was tied to one connection indefinitely... I th

Re: [ZODB-Dev] Re: More exciting ZODB errors ;-)

2006-06-26 Thread Florent Guillaume
On 26 Jun 2006, at 15:12, Chris Withers wrote: Florent Guillaume wrote: This patch didn't seem to cure our Zope 2.8 afflicted with the "assert end is not None" problem. Florent, Have you actually seen any problems from these errors? I still see them occasionally, but they nev

Re: [ZODB-Dev] Re: What makes the ZODB slow?

2006-06-26 Thread Florent Guillaume
On 26 Jun 2006, at 15:02, Chris Withers wrote: Florent Guillaume wrote: BTrees perform best when keys' prefixes are randomly distributed. So if your application generates keys like 'foo001', 'foo002',... you'll get lots of conflicts. Same for consecutive integ

[ZODB-Dev] Re: More exciting ZODB errors ;-)

2006-06-25 Thread Florent Guillaume
esh() operation. Could you expand on the "it does more than cache handling"? Invalidations being synchronous, BTW do you have other patches in your local patched ZODB? I'm willing to look at all of them and see if they can be integrated. Thanks, Florent -- Florent Guillaume, Nuxeo

Re: [ZODB-Dev] Re: What makes the ZODB slow?

2006-06-23 Thread Florent Guillaume
On 23 Jun 2006, at 17:55, Andreas Jung wrote: --On 23. Juni 2006 17:51:35 +0200 Florent Guillaume <[EMAIL PROTECTED]> wrote: BTrees perform best when keys' prefixes are randomly distributed. So if your application generates keys like 'foo001', 'foo002',...

[ZODB-Dev] Re: What makes the ZODB slow?

2006-06-23 Thread Florent Guillaume
flicts. Same for consecutive integers in IOBTree. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wik

[ZODB-Dev] Re: What makes the ZODB slow?

2006-06-23 Thread Florent Guillaume
r class designed for that (namely BTrees), otherwise it's left up to the application to deal with it when it receives a ConflictError. So you're probably observing slowness in the frameworks on top of it. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +3

[ZODB-Dev] proposed comments

2006-06-20 Thread Florent Guillaume
ort and in other connections on finish. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/W

[ZODB-Dev] Re: Getting an up to date instance of a persistent object

2006-05-26 Thread Florent Guillaume
l.zope.org/mailman/listinfo/zodb-dev -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-De

[ZODB-Dev] Re: Questions on ZODB BTrees versus bsddb BTrees

2006-05-05 Thread Florent Guillaume
ng all values >= X is then simply a matter of using the proper API on the reverse Tree (and it's fast). Florent If someone with more knowledge of ZODB and the BTrees therein and bsddb feels like confirming, correcting, or commenting on the above summary, and options, that would be gre

[ZODB-Dev] Re: tid error with ClientStorage cache in Zope 2.9.2

2006-05-02 Thread Florent Guillaume
# ZEO client cache, in bytes # cache-size 20MB # # Uncomment to have a persistent disk cache # #client zeo1 # # Note the part about the persistent disk cache. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&am

[ZODB-Dev] Re: Changes in _p_changed behaviour between Zope 2.7 and 2.9

2006-04-29 Thread Florent Guillaume
Chris Withers wrote: Florent Guillaume wrote: base._p_changed=0 Marks the object not changed, to allow ghostifying. base._p_deactivate() Ghostifies the object. base.__setstate__(state) Updates the object's dict directly. This really shouldn

[ZODB-Dev] Re: Changes in _p_changed behaviour between Zope 2.7 and 2.9

2006-04-27 Thread Florent Guillaume
ilestorage somewhere and committing some transactions to it, but that seems a little heavyweight... You don't need any transactions to at least test this sequence, only the Persistent base class and a dummy connection can be involved. To really test the history yes of course you'll

[ZODB-Dev] Re: SVN: Zope3/branches/jim-adapter/src/zope/app/component/ Added compatibility for old pickles.

2006-04-25 Thread Florent Guillaume
e called for a readonly storage (which the original code checks)? Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more information about ZODB, see the ZODB Wiki

Re: [ZODB-Dev] Re: ZEO and Twisted

2006-04-25 Thread Florent Guillaume
On 25 Apr 2006, at 15:23, Jim Fulton wrote: Florent Guillaume wrote: [Ccing zodb-dev] On 25 Apr 2006, at 15:09, David Pratt wrote: The protocol is simple yes, but the iteractions w.r.t threading are sometimes subtle. Hi Florent. This could be set up using a twisted's applic

[ZODB-Dev] Re: ZEO and Twisted

2006-04-25 Thread Florent Guillaume
e ZEO server. For the ZEO server I don't see the point of changing it, it works well. OTOH a ClientStorage has to integrate with the other servers in Zope, and that's the one that would benefit from being moved to the twisted event loop if twisted is used. Florent -- Florent Guillaum

[ZODB-Dev] Re: Getting all OIDs from a storage.

2006-04-24 Thread Florent Guillaume
iterating over all objects on any storage? Yes, such an API to iterate over all storage objects has been talked about several times before, but never implemented. It would be quite useful. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo

[ZODB-Dev] Re: Serial and transaction id

2006-04-10 Thread Florent Guillaume
depends on it. I'm sure it does now -- in part because the checkin comment mentioned changing some methods that used to return both serial and tid to return only the latter. It's certainly the case that the current ZEO cache only knows about tids (and oids, versions and pickles -- n

[ZODB-Dev] Re: Zodb with Yaml

2006-03-20 Thread Florent Guillaume
de to know if it would need to be modified, maybe the function names in the code are misleading). No, the pickle cache doesn't actually have anything to do with the pickle protocol. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxe

[ZODB-Dev] Re: Possible contributions to ZODB

2006-02-03 Thread Florent Guillaume
ecause in fact in you current unit tests, you're testing much more, including the ZODB mechanisms that detect concurrently modified objects in different connections and regenerate old state from the database, etc. It's not strictly needed (and is a lot of setup). Florent -- Florent Guil

[ZODB-Dev] Re: Question (Re: Possible contributions to ZODB)

2006-02-03 Thread Florent Guillaume
esses without fear of conflict errors. This is vital for zasync, and other similar asynchronous queuing problems. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___

[ZODB-Dev] Debugging ReadConflictErrors on ZODB 3.4 (Zope 2.8)

2006-01-31 Thread Florent Guillaume
eedback welcome. Some people have reported infinite loops starting zopectl debug, but I haven't had time to dig. Florent zodb-oid-debug.z28.patch Description: Binary data -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxe

[ZODB-Dev] _added_during_commit not needed

2006-01-23 Thread Florent Guillaume
nt code in add(). Florent PS: I'll take the time in a few weeks to review the messages I posted here and checkin changes for those who have received approval. But I don't have the bandwidth right now. -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59

[ZODB-Dev] zodb pickle format for root

2006-01-20 Thread Florent Guillaume
ut it should. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing li

[ZODB-Dev] Re: [Zope-dev] Re: zLOG module deprecated

2006-01-09 Thread Florent Guillaume
On 9 Jan 2006, at 17:20, Fred Drake wrote: On 1/9/06, Florent Guillaume <[EMAIL PROTECTED]> wrote: My point is that the python logging levels are insufficiently fine grained. The python logging framework leaves room for numeric levels and registering equivalent strings, and indeed ZO

[ZODB-Dev] Re: [Zope-dev] Re: zLOG module deprecated

2006-01-09 Thread Florent Guillaume
On 9 Jan 2006, at 17:25, Andreas Jung wrote: --On 9. Januar 2006 17:06:25 +0100 Florent Guillaume <[EMAIL PROTECTED]> wrote: My point is that the python logging levels are insufficiently fine grained. Sufficently enough for me. "Sufficient for me" is not a good reason sor

[ZODB-Dev] Re: [Zope-dev] Re: zLOG module deprecated

2006-01-09 Thread Florent Guillaume
registering equivalent strings, and indeed ZODB and zLOG have them defined. I want to use them. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more information abou

[ZODB-Dev] Re: zLOG module deprecated

2006-01-09 Thread Florent Guillaume
s that are done on every request at the trace level (as they were before the move to python's logging module), I'm thinking of transaction logs here. This leaves the 'debug' level free for application debugging. Florent -- Florent Guillaume, Nuxeo (Paris, France) CT

[ZODB-Dev] Re: session problems

2006-01-09 Thread Florent Guillaume
a new or existing connection linked to the multidatabase set return anyjar.get_connection(self._getDBName()) along with a unit test. But the code that's in 2.9.0 is just as effective. Florent Florent Guillaume wrote: Ok I've dug deeper and now understand the problem. The ro

[ZODB-Dev] Re: ZODB with a Relational Database

2006-01-03 Thread Florent Guillaume
enty of Data.fs with more than 10GB. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis

[ZODB-Dev] Re: session problems

2006-01-01 Thread Florent Guillaume
Could folks have a look and tell me what they think of the proposed patch? Actually it is my belief this is a concern of DB or Connection, not MountedObject, and the code shouldn't be in MountedObject but that's the easiest workaround for now. Florent Florent Guillaume wrote: O

[ZODB-Dev] Re: Connection pool makes no sense

2005-12-29 Thread Florent Guillaume
;ve just caught me on "thousands" but gave no comments on deletion of connection instances... but this is the clue to the topic. Even hundreds of ZODB connections is absurd. Again, with 4 threads you should never get more than 4 Filestorage connections plus 4 TemporaryStorage connections. Flo

[ZODB-Dev] Re: Connection pool makes no sense

2005-12-29 Thread Florent Guillaume
number of thread is usually small. If you see many RDB connections, then it's a RDB problem and not a ZODB problem. Something not releasing RDB connections quick enough, or leaking RDB connections. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71

Re: [ZODB-Dev] session problems

2005-12-26 Thread Florent Guillaume
s historical code, etc. I'll let specialistst of the multi-databases decide what to do :) Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more informatio

[ZODB-Dev] session problems

2005-12-23 Thread Florent Guillaume
akSet but still be in the DB's connection pool WeakSet. I guess here lies the problem. Also, I don't know why we don't observe this for FileStorage, maybe something has a hard reference on it somewhere? Florent -- Florent Guillaume, Nuxeo

[ZODB-Dev] Re: [Zope-dev] Re: sessions in the presence of conflicts

2005-12-16 Thread Florent Guillaume
y default) implementations that retrieve and update an instance's __dict__. BTrees.Length is a good example of a class that overrides these methods, using an integer as "the state". Plagiarism! ;) http://mail.zope.org/pipermail/zodb-dev/2005-December/009560.html Florent -- Floren

[ZODB-Dev] Re: sessions in the presence of conflicts

2005-12-15 Thread Florent Guillaume
s possible. I certainly makes sense from a high level description, but the devil is in the details. I'd be interested in looking at it if you code something. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PRO

[ZODB-Dev] Re: [Zodb-checkins] SVN: ZODB/trunk/src/persistent/interfaces.py Nail the type of oids, as agreed ; -) to in

2005-12-10 Thread Florent Guillaume
e value. Even cleaner IMHO would be to use new methods storage.loadRoot() and storage.storeRoot() here instead of doing storage.load(storage.ROOT_OID, ...) etc. (And let storeRoot choose the initial serial instead of None). Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&

[ZODB-Dev] Re: OID length

2005-12-10 Thread Florent Guillaume
ead _invalidated. # Normally, _invalidated is written by calling dict.update, which # will execute atomically by virtue of the GIL. But some storage # might generate oids where hash or compare invokes Python code. In # that case, the GIL can't save us. Florent -- Florent Guillaume, Nuxeo (

Re: [ZODB-Dev] OID length

2005-12-09 Thread Florent Guillaume
age (think SQL) has internally other kinds of identifiers, like autoincremented integer primary keys, and several tables depending on object kind, I want to reuse its concepts and pack them into an oid like 'footable_12345'. Anyway thanks for the answers, I know in what dir

[ZODB-Dev] OID length

2005-12-09 Thread Florent Guillaume
and would anyone be interested in seeing it removed. I'm asking because I'm planning a pretty complex storage layer, which would benefit from more complex OIDs (for instance bigger strings, or tuples of (str, int)). Thanks, Florent -- Florent Guillaume, Nuxeo (Paris, France)

[ZODB-Dev] Re: states in _p_resolveConflicts

2005-12-07 Thread Florent Guillaume
f the instance dictionary, as described above. The second element is a dictionary with items for each of the assigned slots. """ Other classes can specialise the methods, see for instance BTrees.Length. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of

[ZODB-Dev] Re: oids, numbers, hex and 8-byte strings

2005-11-02 Thread Florent Guillaume
t, it's been mentionned many times on his list, and any cursory search in the code reveals it. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more inform

[ZODB-Dev] Re: Weird errors with Zope 2.7.7

2005-10-25 Thread Florent Guillaume
nge, but the process of getting it into python seems a bit daunting from an outsiders perspective...) -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more informa

[ZODB-Dev] Re: afterCommitHook

2005-09-24 Thread Florent Guillaume
it afterwards. That would be a nice solution I think. What would happen though if the post-transaction user code decided to commit the transaction? Could that be made to work, for code that would like to change persistent objects? Florent -- Florent Guillaume, Nuxeo (

[ZODB-Dev] Re: afterCommitHook

2005-09-21 Thread Florent Guillaume
nt to be *in* the transaction. Email sending *definitely* wants to be transactional. The only use case I can see where a post-commit hook would be useful is the "audit logging" thing someone mentionned a few days ago. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Direct

[ZODB-Dev] Re: Ordering before commit hooks

2005-09-01 Thread Florent Guillaume
hook ordering, which should go in a new common subsystem just above ZODB. For all our cases, I think Zope will suffice. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED]

[ZODB-Dev] Re: Ordering before commit hooks

2005-08-31 Thread Florent Guillaume
of higher level API we provide at the Zope level. Would an integer order be ok there ? And where should the code go ? Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] _

[ZODB-Dev] Re: Setting _p_changed on a ghost

2005-08-29 Thread Florent Guillaume
re logical if doing obj._p_changed = True unghostified the object and marked it as changed. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more information a

[ZODB-Dev] Re: Ordering before commit hooks

2005-08-29 Thread Florent Guillaume
solved issues with the ordering of event subscribers, where the "order" argument would at least introduces some flexibility that we don't have today. I vote for keeping it in ZODB 3.5 Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 7

[ZODB-Dev] Re: SVN: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py Implement the sort and insert using bisect.insort()

2005-08-11 Thread Florent Guillaume
Tim Peters wrote: [Florent Guillaume] Frankly I don't see the point of using bisect if you do a linear pass on the list first. The original code was clearer and was faster. If you had a "natural" way of getting the index, then why not. But anyway this kind of hook list will

[ZODB-Dev] Re: ConflicErro on my ZODB

2005-08-10 Thread Florent Guillaume
iler to see where the CPU time is spent. For the ConflictErrors, you'll have to isolate what objects they apply to and understand who writes to them and causes conflict. I posted a patch on this list 1-2 months ago to get more information off ReadConflictErrors to identify objects. Floren

[ZODB-Dev] Re: SVN: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py Implement the sort and insert using bisect.insort()

2005-08-09 Thread Florent Guillaume
x27;t see the point of using bisect if you do a linear pass on the list first. The original code was clearer and was faster. If you had a "natural" way of getting the index, then why not. But anyway this kind of hook list will have only a few elements in it. Optimize later. Florent -- F

[ZODB-Dev] Re: SVN: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/ Implements the ordering of before commit subscribers :

2005-08-08 Thread Florent Guillaume
reserved by this method If that's a concern, maybe it can be called order__ or something ? What's the pythonic way to do this ? Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED]

[ZODB-Dev] Re: Setting the jar

2005-08-08 Thread Florent Guillaume
Tim Peters wrote: [Florent Guillaume] To be clear, I'm interested in how the _p_jar happens on a new object that's just been created. Basically if you do: # folder is a persistent object that has a _p_jar # folder.foo = Foo() # where Foo inherits from Persistent # here folder.foo do

Re: [ZODB-Dev] Setting the jar

2005-08-04 Thread Florent Guillaume
On 4 Aug 2005, at 22:11, Tim Peters wrote: [Florent Guillaume] What part of the transaction/persistence code sets the _p_jar of a persistent object to that of its parent when the object is assigned to a persistent parent and transaction.commit(1) is called ? I'm massively overl

[ZODB-Dev] Setting the jar

2005-08-04 Thread Florent Guillaume
Trying to understand some code... What part of the transaction/persistence code sets the _p_jar of a persistent object to that of its parent when the object is assigned to a persistent parent and transaction.commit(1) is called ? Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO

Re: [ZODB-Dev] transaction interfaces

2005-08-04 Thread Florent Guillaume
Florent Guillaume <[EMAIL PROTECTED]> wrote: > I think transaction/interfaces.py is wrong for IDataManager: commit() > and abort() take an object as first argument, as seen in the calls > from MultiObjectResourceAdapter. > > But maybe I'm confused by the di

[ZODB-Dev] transaction interfaces

2005-08-04 Thread Florent Guillaume
I think transaction/interfaces.py is wrong for IDataManager: commit() and abort() take an object as first argument, as seen in the calls from MultiObjectResourceAdapter. But maybe I'm confused by the different deprecated/current interfaces... Florent -- Florent Guillaume, Nuxeo (

[ZODB-Dev] Old persistence/transaction code

2005-08-04 Thread Florent Guillaume
://www.python.org/workshops/1996-11/ papers/Bobbase.html but I believe at least this part is obsolete. Thanks, Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For

Re: [ZODB-Dev] ZEO cache problems and a lost ZEO connection

2005-08-02 Thread Florent Guillaume
thing. Yes, DeadlockDebugger is the better too to use when you have "B and I but no A and E" :) It usually clears up what's happening very quickly. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTE

Re: [ZODB-Dev] catalog for standalone zodb

2005-06-06 Thread Florent Guillaume
good thing ;) Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev

[ZODB-Dev] Debugging ReadConflictErrors on ZODB 3.2 (Zope 2.7)

2005-06-03 Thread Florent Guillaume
effect giving you its path. There's a "print" that you can uncomment to see all objects loaded, for fun and maybe profit ;) Feedback welcome. Florent zodb-oid-debug.v2.patch Description: Binary data -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&

Re: [ZODB-Dev] Update from 3.2 to 3.3 or 3.4?

2005-05-25 Thread Florent Guillaume
s new features and probably some incompatibilities. The safe course is to use 3.2.x. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ For more information about Z

Re: [ZODB-Dev] ZEO error, fixed in later release?

2005-05-19 Thread Florent Guillaume
de shows that _cache.open() has not been called, so there is no _get method. But I didn't go further. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___

Re: [ZODB-Dev] ZODB.POSException.ReadConflictError

2005-05-03 Thread Florent Guillaume
ally happens when other pages are accessed (no > pattern). Alternatively, a blank page is returned. No messages appear > in the Zope or Plone error log. Seeing that the tracebacks involve CMFFormController, it may be that this product is abusing sessions and using them badly. Florent -- Fl

Re: [ZODB-Dev] ZODB.POSException.ReadConflictError

2005-05-03 Thread Florent Guillaume
<[EMAIL PROTECTED]> wrote: > I'm getting a ZODB.POSException.ReadConflictError on my Plone 2.0.5 > site (Zope 2.7.3, Python 2.3.4 on Mac OS X Server 10.3.9). Upgrade Zope. There are known session-related problems in old versions. Florent -- Florent Guillaume, Nuxeo (Par

[ZODB-Dev] Re: [Zodb-checkins] Changed the strategy for managing savepoints.

2005-04-27 Thread Florent Guillaume
ne: > +self._savepoints = {} > +self._savepoints[ref] = self._savepoint_index And also some dels. So I'd say you meant to have None for the class attribute initialization. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1

Re: [ZODB-Dev] before commit hook

2005-04-26 Thread Florent Guillaume
t? I'm not building 90% of my app logic on that, it's really just an optimization to delay some things until the end of the transaction. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] _

[ZODB-Dev] before commit hook

2005-04-25 Thread Florent Guillaume
uot; return [(hook, args, kws) for hook, args, kws in self._before_commit if isintance(hook, class_)] (Interfaces could probably be a better choice than classes.) Or is it overengineering ? Maybe just a getBeforeCommitHooks that returns self._before_commit ? Florent -- Florent Guill

[ZODB-Dev] Re: [Zodb-checkins] SVN: ZODB/branches/3.4/src/ Added savepoints!

2005-04-25 Thread Florent Guillaume
No no, I was just worried about the inconsistency between the signature, that has no 'subtransaction' arg, and the docstring that talks about one. Florent > This is a point that I didn't think of. However, I wonder if this > will be a problem. Many old data managers seem to accept

[ZODB-Dev] Re: [Zodb-checkins] SVN: ZODB/branches/3.4/src/ Added savepoints!

2005-04-25 Thread Florent Guillaume
g set to false. > + > + """ But there's not "subtransaction" flag for this method anymore. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] _

Re: [ZODB-Dev] ConflictErrors won't clear

2005-04-14 Thread Florent Guillaume
- http://www.simplistix.co.uk > ___ > For more information about ZODB, see the ZODB Wiki: > http://www.zope.org/Wikis/ZODB/ > > ZODB-Dev mailing list - ZODB-Dev@zope.org > http://mail.zope.org/mailman/listinfo/zodb-dev >

[ZODB-Dev] Re: [Zodb-checkins] SVN: ZODB/branches/3.4/

2005-04-14 Thread Florent Guillaume
C (rev > 29967) > @@ -1 +1 @@ > -2.4a2 > +2.4.0a3 I'm sure it's on purpose, but why isn't ZEO numbered the same way than the rest of the ZODB (3.4.0a3 now) ? Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40

Re: [ZODB-Dev] RFC: Pre-commit hooks

2005-04-06 Thread Florent Guillaume
s, but I don't think we need this.) > >This hook is very simple to use an implement and, I think, addresses >the requitement much more directly than implementing special data >managers. > > Thoughts? > > Anyone up for implementing this (with a doctest, o

Re: [ZODB-Dev] Running the test suite

2005-04-05 Thread Florent Guillaume
if you're using a checkout in the ZODB 3.2 line, but should work in the ZODB 3.3, 3.4, and trunk lines. Passing "-B" to test.py causes test.py to run "setup.py build_ext -i" first. Indeed. Thanks to you and Sidnei. Florent -- Florent G

[ZODB-Dev] Running the test suite

2005-04-05 Thread Florent Guillaume
hat I'd like to do is test the one in src/transaction/tests/test_transaction.py, that I'm in the process of modifying... As it is I do a setup.py build every time before I run the tests but I'd like to do everything in place. Florent -- Florent Guillaume, Nuxeo (Paris, France)

Re: [ZODB-Dev] Re: [Zope-dev] Re: post publishing hook

2005-04-04 Thread Florent Guillaume
On 4 Apr 2005, at 21:07, Tim Peters wrote: [Florent Guillaume] Actually it can check txn.status to decide. Are you sure? I don't see it. .status isn't changed until after beforeCompletion() is called: You're right, my mistake, sorry. Florent -- Florent Guillaume, Nuxeo (Paris

Re: [ZODB-Dev] Re: [Zope-dev] Re: post publishing hook

2005-04-04 Thread Florent Guillaume
er arranges to hold a strong reference to a OneShot instance until the current transaction ends, then that part isn't an issue. Why the weak refs? What does it help doing in the ZODB case? Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http:/

Re: [ZODB-Dev] RFC: Pre-commit hooks

2005-04-04 Thread Florent Guillaume
g special data >managers. > > Thoughts? > > Anyone up for implementing this (with a doctest, of course)? Yes I'll look at it. Florent > I'd like to get this into ZODB 3.4. > > Jim -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of

Re: [ZODB-Dev] Re: [Zope-dev] Re: post publishing hook

2005-04-04 Thread Florent Guillaume
it is called (if the transaction is ACTIVE it's ok, otherwise it's been called by abort() -- the fact that abort() calls it should probably be documented). But as Julien said we'll have to find another way using ZODB 3.2... Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Direc