main logo
Subject: Re: [dabo-dev] what is the point of _getCursorClass()
Author: Ed Leafe
Posted: 2007/04/30 17:39:56
 
View Entire Thread
New Search


On Apr 30, 2007, at 6:12 PM, Carl Karsten wrote:

>>> Why is it needed when you can just specify the 2 classes in a class
>>> definition?
>>
>> Which two classes would those be?
>
> The ones passed to the function.

There is more going on than just:

class cursorMix(main, secondary): pass

I see 3 places where this is needed in dBizobj. So I have a choice
to triplicate the code in those places, or I could write it once in a
function and call that function from three different places.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com





 
©2007 Ed Leafe
<-- Prior Message New Search Next Message -->