dbapi currently depends on being subclassed and having the subclasses impelement...
authorAlec Warner <antarus@gentoo.org>
Fri, 7 Sep 2007 10:14:12 +0000 (10:14 -0000)
committerAlec Warner <antarus@gentoo.org>
Fri, 7 Sep 2007 10:14:12 +0000 (10:14 -0000)
commitf77868a5f27b87d053e000667992ecb4cb78d335
tree6856d4ffbb6cc157378f302ba13cf16a9ea312cc
parenta4acda03bac43cc972dfaf9fda4d5210860d3d93
dbapi currently depends on being subclassed and having the subclasses impelement certain functions (that aren't even implemented IN dbapi, so a particular child has no idea what functions are actually required).  Try to make this cleared by adding stubs in dbapi.  There should be no behavior change here because these cases would be Attribute errors in the current scheme.  Also add a horribly bad testdbapi with stub funcs to use in testing code.  Remove regexes with possibly faster string comparisons.

svn path=/main/trunk/; revision=7752
pym/portage/dbapi/__init__.py
pym/portage/dbapi/virtual.py