[Erp5-dev] Relation String Field - using something other than title
Jérome Perrin
jerome at nexedi.com
Thu Aug 9 10:50:46 CEST 2007
Łukasz Nowak a écrit :
>> ( you can add a condition to handle the case where
>> context.getCategoryValue() is None )
>
> You mean:
>
> python: context.getCategoryValue() is not None and \
> context.getCategoryValue().getShuProp() or ''
> ?
Yes, but you better use this syntax, in case getShuProp() evaluates
false (eg. 0):
python: test(context.getCategory(),
context.getCategoryValue().getShuProp(), '')
> Is it enough "stable" to put this use case of RLS on wiki[1]?
Yes
Jérome
More information about the Erp5-dev
mailing list