Ticket #42 (defect)
Opened 7 years ago
Last modified 6 years ago
Shelve issues and some community improvements
Status: closed (fixed)
|Reported by:||Lethalman||Assigned to:||fumanchu|
|Cc:||Estimate (total hours):||1|
Hello, first of all very nice project, i'm going to left sqlalchemy for one of my projects to use Dejavu.
I've this simple config:
[Shelve] Class: dejavu.storage.storeshelve.StorageManagerShelve Path: dejavudb
And this code:
from dejavu import * class Test(Unit): Field = UnitProperty(unicode) arena = Arena() arena.load('dejavu.conf') arena.register_all(globals()) box1, box2 = arena.new_sandbox(), arena.new_sandbox() print box1.recall(Test) p1, p2 = Test(Field='Box1'), Test(Field='Box2') box1.memorize(p1) box2.memorize(p2) box1.flush_all() box2.flush_all()
I debbugged a bit and everything seems to work, but maybe the problem is saving the shelf. This is my first code using Dejavu, maybe (i'll hope for sure) i'm wrong.
Here is a typo in the shelve storage... use flag 'c' instead of 'w' when opening the file.
02/21/06 00:05:55: Modified by fumanchu
- status changed from new to assigned.
- estimate set to 1.
- component changed from Storage to Docs.
02/21/06 15:20:28: Modified by Lethalman
02/22/06 08:07:04: Modified by fumanchu
02/22/06 14:46:36: Modified by Lethalman
03/03/06 07:37:25: Modified by fumanchu
- status changed from assigned to closed.
- resolution set to fixed.
12/17/06 03:20:35: Modified by fumanchu
- description changed.