[Erp5-dev] own getter

Tomasz Brzezina tomasz at brzezina.pl
Sat Mar 8 11:58:26 CET 2008


bartek pisze:
> Fish:
> 
> from Products.CMFCore.Expression import Expression
> 
> Fishing rod:
> 
> cd Products/ERP5/PropertySheet
> grep Expression *
Oh yeah! This is what I love - Fishing rod and fish. Now everything is 
clean and bright.

>> Now the script is very stupid:
>> ------------8<-----------8<------------8<----------
>> return "000134"
>> ------------8<-----------8<------------8<----------
>> but I wonder how to access getFamilyNumber and getPersonInFamilyNumber
>>
>> like this?
>> ------------8<-----------8<------------8<----------
>> return context.getFamilyNumber+context.getPersonInFamilyNumber
>> ------------8<-----------8<------------8<----------
> Yes (did you try?).
YES YES YES!!!
(with small correction i forgot () after methods

BUT IT WORKS!

-- 
T.
-------------- 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/20080308/f5c79c12/attachment.bin>


More information about the Erp5-dev mailing list