On 05/09/13 05:32 -0700, igomes wrote:
> I have not explained well. I want to create a separate file to put all 
> choices of selection fields.
> Because, when you need to include a new choice in any of them will be 
> easier, because you will be centralized.
> And whenever I need to load some selection field with the same options I 
> would use the same list of the same file.
> 
> I used to program on Visual Basic that has a structure called Enum.
> 
> I don't know if I have this on Tryton or something like that.

Define a global python list in some module and import it in each place
you need the list.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpUFlRC82Bdk.pgp
Description: PGP signature

Reply via email to