[PEAK] Subclassing private PEAK classes

Phillip J. Eby pje at telecommunity.com
Sat Apr 9 15:29:09 EDT 2005


At 04:55 PM 04/08/2005 -0400, Erik Rose wrote:
>Awhile back we spoke on IRC about my current project of making an MS 
>SQLServer DB connection class for PEAK (no, not my choice of DB's ;-)). 
>You said:
>
>>[17:05:52] <pje> If so, you should subclass ValueBasedTypeConn rather 
>>than SQLConnection.
>
>The tricky part about this is that ValueBasedTypeConn is hidden away in 
>peak.storage.SQL, which I cannot figure out how to import. Due to PEAK's 
>lazy importing, "import peak.storage.SQL" doesn't work, nor do variations 
>on this.

"from peak.storage.SQL import ValueBasedTypeConn" should work fine.  Does 
it not?




More information about the PEAK mailing list