Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow new values in settings context manager. #252

Closed
bitprophet opened this issue Aug 19, 2011 · 2 comments
Closed

Allow new values in settings context manager. #252

bitprophet opened this issue Aug 19, 2011 · 2 comments
Labels
Milestone

Comments

@bitprophet
Copy link
Member

Description

Hi all-

Currently, settings() can only override values already set in env. This seems to be an arbitrary limitation, so the


Originally submitted by Will Maier (wcmaier) on 2010-11-11 at 02:47pm EST

Attachments

@ghost ghost assigned bitprophet Aug 19, 2011
@bitprophet
Copy link
Member Author

Jeff Forcier (bitprophet) posted:


Good catch -- that limitation is definitely not on purpose.


on 2010-11-11 at 02:49pm EST

@bitprophet
Copy link
Member Author

Will Maier (wcmaier) posted:


(Sigh; hit Enter when I shouldn't have.)

...This seems to be an arbitrary limitation, so the attached patches remove it. settings-0.patch adds a basic test of settings() functionality; settings-1.patch allows new values to be set. Both changes are included in my github fork.

Thanks!


on 2010-11-11 at 02:50pm EST

ramonvanalteren added a commit to ramonvanalteren/fabric that referenced this issue Sep 2, 2011
* master: (94 commits)
  Cut 1.2.2
  Cut 1.1.4
  Cut 1.0.4
  Allow the settings contextmanager to set new env keys. Fixes fabric#252
  Fix import typo in task usage docs. Fixes fabric#393
  Flip "listing commands" flag in main.py if `--shortlist` is given.
  Update changelog re fabric#373. Fixes fabric#373.
  Docs and tests re fabric#373
  Reference exclude_hosts kwarg when merging decorator-driven host lists
  Actually, don't look for excude_hosts kwarg when determining how to merge host lists -- doesn't make much sense.
  Add cli-kwarg test for host exclusion, re fabric#373
  There is no function-attr anywhere for exclude_hosts, so don't check for one.
  Merge hosts at CLI-kwarg level if exclude_hosts kwarg is present.
  Actually exclude hosts when merging host lists.
  Formatting
  Check stdout instead of stdin for tty-ness when sizing up local terminal.
  Formatting
  Dev version
  Dev version
  Dev version
  ...

Conflicts:
	fabric/decorators.py
	fabric/tasks.py
	tests/test_decorators.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant