[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] @with_settings usage
From: |
Jeff Forcier |
Subject: |
Re: [Fab-user] @with_settings usage |
Date: |
Mon, 24 Oct 2011 13:33:40 -0700 |
On Sat, Oct 22, 2011 at 9:29 AM, Coopérative Quinode <address@hidden> wrote:
> For the decorator @with_settings, the docs only mentions the warn_only=True
> example
> And when I try one of these lines [it doesn't work]
>
> What would be the correct syntax, if this is possible ?
Currently, @with_settings only affects environment variables and is
not an exact copy of the settings() context manager. So it doesn't
take hide/show/other contextmanagers as arguments, in the way that
settings() does.
I believe this should be considered a bug, unless the @with_settings
implementation somehow prevents us from honoring those sorts of
positional arguments, which is doubtful.
Thought there was an issue for this, but not seeing one, so I just made this:
https://github.com/fabric/fabric/issues/458
Thanks,
Jeff
--
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org