Contact: fumanchu@aminus.org

Log in as guest/dejavu to create tickets

I think I've seen this ORM somewhere before...

Changeset 264

Show
Ignore:
Timestamp:
08/02/06 20:48:34
Author:
dowski
Message:

Updated test_storesqlite.py to make another grueling pass through the zoo fixture using TypeAdapterSQLiteTypeless.

Fixed bug in storage/db.py that raised an exception on loading custom Type Adapters from a full.dotted.path.to.class

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/storage/db.py

    r263 r264  
    118118        adapter = get_option('Type Adapter') 
    119119        if adapter: 
    120             self.db.typeadapter = adapter 
     120            self.db.typeadapter = adapter() 
    121121     
    122122    def version(self): 
  • trunk/test/test_storesqlite.py

    r263 r264  
    1818        zoo_fixture.run(SM_class, opts) 
    1919 
     20        print "Testing SQLite 'typeless'..." 
     21        opts['Type Adapter'] = "dejavu.storage.storesqlite.TypeAdapterSQLiteTypeless" 
     22        reload(zoo_fixture) 
     23        zoo_fixture.init() 
     24        zoo_fixture.run(SM_class, opts) 
     25 
    2026if __name__ == "__main__": 
    2127    run()