Bartłomiej Górny
2006-01-02 21:00:08 UTC
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
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