Nate Lowrie wrote:
> On Thu, Aug 7, 2008 at 6:33 PM, johnf <[EMAIL PROTECTED]> wrote:
>> On Thursday 07 August 2008 05:24:09 pm Paul McNett wrote:
>>> I'm glad you got it working. But why did everyone think I was
>>> recommending not doing addField() I'll never understand. Here's the
>>> subthread that started that
>>
>> I never thought you were making a recommendation I just didn't know Dabo was
>> able to just create a "select * from datasource"  when it didn't have the
>> addField()'s filled in.  I think that fact might come in handy one day.
> 
> Same.  I just have one question though.  If you don't add a field can
> you still pull any field that's in the table?  Also, does this
> behavior hold true if you define a virtual field?

To be perfectly honest, I have no idea how or if this even still works. 
Why do you think it would be useful?

Why not try it out and see how it works?

But original behavior was that if you had a bizobj like the following 
defined:

{{{
class MyBiz(dabo.biz.dBizobj):
   def initProperties(self):
     self.DataSource = "customers"
}}}

And instantiated it, and requeried it, the sql executed would be "select 
* from customers". So yes, all fields and all records.

Now, if what you think is useful is getting all fields without 
explicitly setting them, you can still do that by e.g. setting UserSQL 
directly.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/%(messageid)s

Reply via email to