[Erp5-dev] getter for acquired property

Bartłomiej Górny bartek at gorny.najlepsze.pl
Mon Jan 2 22:00:08 CET 2006


Hi

Another question - best described in an example:

In the "Organisation" module there is an Organisation class which has 
and Organisation property sheet, which says:

{'id' : 'social_capital_currency_id',
'type' : 'string',
'portal_type' : 'Currency',
'acquisition_base_category' : ('price_currency'),
'acquisition_portal_type' : ('Currency'),
'acquisition_copy_value' : 0,
'acquisition_mask_value' : 1,
'acquisition_sync_value' :0,
'acquisition_accessor_id' : 'getId',
'mode' : 'w' }

(and the same for _title).

After editing the object (with the stock form), Base_viewDict shows that
social_capital_currency='currency_module/PLN'

The question is, how to get it by an appropriate getter? 
getSocialCapitalCurrencyId and getSocialCapitalCurrencyTitle exist but 
return nothing, getSocialCapitalCurrency does not exist, so what is the 
right function?

Bartek



More information about the Erp5-dev mailing list