[Erp5-dev] own getTitle
Tomasz Brzezina
tomasz at brzezina.pl
Fri Mar 28 14:22:08 CET 2008
Jérome Perrin pisze:
> Use a property sheet like this one:
>
> class FunkyTitle:
>
> _properties = (
> { 'id' : 'title',
> 'type' : 'string',
> 'default' : '',
> 'acquisition_base_category' : (),
> 'acquisition_portal_type' : (),
> 'acquisition_copy_value' : 0,
> 'acquisition_mask_value' : 1,
> 'acquisition_depends' : None,
> 'acquisition_accessor_id' : 'getTitle',
> 'acquisition_depends' : None,
> 'alt_accessor_id' : ('Base_getFunkyTitle', ),
> 'override' : 1,
> 'mode' : 'w' },
> )
>
> What's important is the "override : 1", this will override the default
> getTitle accessor.
It not works.... Maybe there should be ?
'acquisition_base_category' : ('object',),
'acquisition_portal_type' : Expression('python: []'),
--
Tomasz Brzezina
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3327 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080328/f3469b81/attachment.bin>
More information about the Erp5-dev
mailing list