Hi,

I have a small suggestion for a change to the datanav bizobj:

The datanav bizobj intercepts calls to addField in order to set
BackendTableFields property.

But it currently does not work if you use explicit naming schemes (for
Postgres, databases for MySQL).

This is, however, very easy to remedy, just use rsplit instead of
regular split in line 26 in lib.datanav.Bizobj.py:

        table, field = cursorInfo.rsplit(".", 1)

Now, if you have a qualified field name like "scheme.table.field",
then "scheme.table" is set as table in BackendTableFields -- and that
should work fine.
If you just use "table.field" (which was the only thing that worked
before), nothing is changed.

I do not think this is a very big change, but it really helps when you
have joined tables in a datanav form.

(I can send a diff if you require, but since this is such a 4
character modification to a single line, it is hardly worth the
trouble...)



Best regards,

Rasmus.

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to