fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] @with_settings usage


From: Coopérative Quinode
Subject: [Fab-user] @with_settings usage
Date: Sat, 22 Oct 2011 18:29:36 +0200

Hi

I wanted to get rid of repetitive lines in my fabfile saying

    with settings(show('user'),hide('warnings', 'running', 'stdout', 'stderr'))

For the decorator @with_settings, the docs only mentions the warn_only=True 
example
And when I try one of these lines :

    @with_settings(show('user'))
    @with_settings(hide('warnings', 'running', 'stdout', 'stderr'))

I always get :

    TypeError: with_settings() takes exactly 0 arguments (1 given)

What would be the correct syntax, if this is possible ?


thank you
--
Dominique Guardiola, QUINODE
• http://www.quinode.fr/
• Tel : 04.27.86.84.37
• Mob : 06.15.13.22.27








reply via email to

[Prev in Thread] Current Thread [Next in Thread]