gnc_commodity_get_namespace

John Ralls jralls at ceridwen.us
Wed Nov 3 23:10:44 EDT 2010


On Nov 3, 2010, at 4:42 PM, Mike Alexander wrote:

> --On November 2, 2010 10:35:40 PM +0100 Christian Stimming <stimming at tuhh.de> wrote:
> 
>> Am Dienstag, 2. November 2010 schrieb John Ralls:
>>> Why, for currency commodities, does gnc_commodity_get_namespace()
>>> return "CURRENCY" and gnc_commodity_get_namespace_compat() return
>>> "ISO4217", but newly created databases store "ISO4217" in the
>>> cmdty:space element? ISTM the "get" functions have it backwards.
>> 
>> Yes. You can go ahead and fix it. Thanks!
> 
> I think that's going to change the UI in various places (the price editor, for example).  Are people in general going to know that ISO4217 means CURRENCY?

No, this is the internal data model, not UI. The data model is in fact using ISO4217, so the change is only to reflect accurately what is the current usage.  Trust me to flip all calls to each function as well as the functions themselves. 

Regards,
John Ralls




More information about the gnucash-devel mailing list