On 06/02/11 19:08 -0800, Kurt Miebach wrote:
> On Jan 28, 11:05 am, Cédric Krier <[email protected]> wrote:
> > New modules have now scenario for testing like account_stock_continental:
> > http://www.google.com/url?sa=D&q=http://hg.tryton.org/modules/account_stock_continental/file/ee7d044915af/tests/scenario_account_stock_continental.rst
> 
> Thank you.
> 
> I am using this to write some tests for my import scripts now.
> 
> In the file scenario_account_stock_continental.rst lines 23-29 modules
> are installed.
> I would like to do this in version 1.8, is it possible? How do I have
> to change the code?
> 
> This is an error message that I get when I use the code from your
> link:
> 
> Module.button_install([x.id for x in modules], config.context)
> AttributeError: 'module' object has no attribute 'context'

It should work the same way.
Are you sure you don't override the config variable of the line 19?

-- 
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: pgp3xKyf4IZfE.pgp
Description: PGP signature

Reply via email to