On Monday 24 December 2007 10:26 am, Ed Leafe wrote:
> On Dec 24, 2007, at 1:04 PM, Adrian Klaver wrote:
> > The difference is the use of __storm_table__ to indicate the
> > underlying table
> > in Storm versus self.DataSource in Dabo. In only becomes an issue
> > when you
> > are parsing the api docs and trying to figure out what source
> > refers to. In
> > the case of save() or requery() it is the underlying table, in the
> > case of
> > update() it is the bizobj.
>
>       No, that is simply wrong. You are mixing the UI DataSource with the
> bizobj DataSource. Bizobjs do not have update(); that is for data-
> bound UI controls. Likewise, UI controls don't have save() or requery().

I beg to differ. 

>From the api doc for dForm

save(self, dataSource=None)

Ask the bizobj to commit its changes to the backend.


(inherited from BaseForm)

requery(self, dataSource=None)

Ask the bizobj to requery.


(inherited from BaseForm)

I will concede on update()

You are making my point about confusion over the name DataSource. It refers to 
different things in different contexts. I am just trying to figure out when 
that context changes.

>
>       UI elements that deal with data are bound to the bizobj. The bizobj
> is bound (via its cursors) to the database table. What you've been
> suggesting sounds like a 2-tier approach: binding the UI directly to
> the database, so that calling update() on the UI control fetches data
> from the backend.
>
>       I get the feeling that you're trying to compress everything into a
> single tier. While that certainly would make for a simple system, it
> would also make for an inflexible system. The 3-tier design strictly
> separates UI from the data, unlike other designs such as MVC. The UI
> doesn't ever "know" where the data it is displaying comes from; all
> it knows is that update() fetches the data and flush() sends it back.
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com

No, I am clear now on the difference. I am just trying to make it clearer for 
the next person.
-- 
Adrian Klaver
[EMAIL PROTECTED]


_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to