Re: [ZODB-Dev] zope.testing has to be installed separately

2012-02-28 Thread Thomas Lotze
Alexandre Garel wrote: Yes this is intended, the test requirements, are separated from package requirements, to avoid extra installs. See ZODB3 setup.py you'll see a test_require. In buildout you can use those requirements telling you need ZODB3 [test] I don't know if pip has some way of

Re: [ZODB-Dev] SpatialIndex

2010-06-28 Thread Thomas Lotze
Nitro wrote: packaging: I don't plan to create a package for this as I don't see much point in adding yet another package to the clutter of packages surrounding zodb. Just a quick remark: Without being available as a package, your code will be far less useful (if not outright useless) to a

Re: [ZODB-Dev] Spatial indices

2010-06-16 Thread Thomas Lotze
Nitro wrote: Is anybody else interested in having a zodb spatial index? FWIW: I am. -- Thomas ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org

[ZODB-Dev] __getitem__ missing from IBTrees?

2008-07-16 Thread Thomas Lotze
Hi, I just noticed that while BTrees do implement __getitem__, the method is missing from BTrees.Interfaces.IBTree. Is this intentional for some reason or did it just get lost in the hierarchy of interfaces defined in BTrees.Interfaces? -- Thomas

[ZODB-Dev] Overwriting existing files in rename_or_copy_blob

2008-04-30 Thread Thomas Lotze
ZODB.blob.rename_or_copy_blob may silently overwrite existing blob files since it uses os.rename without checking for the target file first. This may affect committed data although we remove write permissions after the commit. This seems questionable to us, so we wonder whether it is actually

[ZODB-Dev] Re: Re: IStorageIteration

2008-02-26 Thread Thomas Lotze
Dieter Maurer wrote: How often do you need it? It is worse the additional index? Especially in view that a storage may contain a very large number of transactions? We've done it differently now anyway, using real iterators which store their state on the server and get garbage-collected when

[ZODB-Dev] Re: PGStorage

2008-01-24 Thread Thomas Lotze
Jim Fulton wrote: IMO, something that packed incrementally, with disk being freed along the way, would be a big improvement. This isn't possible with FileStorage. Just an idea, without having followed FileStorage's history: Has spreading the file storage across multiple files been considered?

[ZODB-Dev] Re: Duplicate tests

2008-01-23 Thread Thomas Lotze
Jim Fulton wrote: Chris McDonough did the transaction split off. He's probably the best one to answer your other questions. I know, but then he's subscribed to this list afaik, so I'll just wait for him to respond. If the tests pass without it, then I think it is a safe bet that it can. :)

[ZODB-Dev] Duplicate tests

2008-01-22 Thread Thomas Lotze
I found that in the transaction and ZODB packages, some test files are duplicates of each other: - The transaction tests contain sampledm.py and test_SampleDataManager.py which are the same up to defining a test suite for setup.py test support. Is this intentional or some half-finished

[ZODB-Dev] Re: [ZEO] getExtensionMethods into IServeable?

2008-01-14 Thread Thomas Lotze
Jim Fulton wrote: I know. At the time I got the interfaces in shape, I was thinking of removing this feature. I didn't like it at all and am still a bit ambivalent about it. I decided to compromise and leave it in the implementation but out of the interfaces. Removing the feature altogether

[ZODB-Dev] ClientStorage.sync

2008-01-09 Thread Thomas Lotze
In the current ZODB, the ZEO ClientStorage has a method syn which is not described by any of the ZODB's interfaces. It does nothing, and other storages don't have that method at all. OTOH, the only place it is invoked seems to be in Connection code that is not specific to the ClientStorage and has

[ZODB-Dev] RE: RE: RE: PersistentMapping

2005-11-22 Thread Thomas Lotze
Tim Peters wrote: Looks it got lost in the branches. PersistentMapping.__iter__ was added in ZODB 3.4.2, just this August: http://mail.zope.org/pipermail/zodb-checkins/2005-August/010225.html Log message for revision 38076: Gave PersistentMapping an __iter__ method. Also

[ZODB-Dev] RE: RE: PersistentMapping

2005-11-20 Thread Thomas Lotze
Tim Peters wrote: ZODB/branches/3.5 My newly added tests for PersistentMapping break here; PersistentMapping seems to lack __iter__. (PersistentMapping hadn't been tested at all before.) The suite passes fine on the trunk and the 3.4 and 3.6 branches, but it fails on 3.5. Should __iter__

[ZODB-Dev] RE: RE: PersistentMapping

2005-11-18 Thread Thomas Lotze
Tim Peters wrote: I'm the closest thing to a ZODB maintainer there is, and I won't object ;-) Go for it! OK. Right now I have the problem of getting the tests to pass before I start changing things. Doing just as README.txt says (python2.4 setup.py build, then python2.4 test.py) earns me

[ZODB-Dev] RE: RE: RE: PersistentMapping

2005-11-18 Thread Thomas Lotze
Tim Peters wrote: Things I can't guess include which version of ZODB you're trying this with, and exactly what the errors were. Copy+paste generally works a lot better than English paraphrasing. Sorry. From the build/lib.foo part I guess you're running on Linux. Right. So I tried that