Buildout -- Software for automating application assembly

release 1.0.5 breakage: AttributeErroro _allow_hosts

Reported by Stefan Eletzhofer on 2008-06-11
2
Affects Status Importance Assigned to Milestone
Buildout
Undecided
Unassigned

Bug Description

The 1.0.5 release of zc.buildout breaks if using:

--------------------------------------
[buildout]
parts=
    python

foo = ${python:interpreter}

[python]
recipe=zc.recipe.egg
interpreter=python
-------------------------------------

The following fixes the issue for me, but I dont know if this
is a valid fix (patched file is zc/buildout/buildout.py):

840a841,844
> allow_hosts = buildout_options.get('allow-hosts', '*').split('\n')
> allow_hosts = tuple([host.strip() for host in allow_hosts
> if host.strip() != ''])
>
848c852
< allow_hosts=buildout._allow_hosts
---
> allow_hosts=allow_hosts

The actual error message was missing:
--------------------------8<-----------------------------------
While:
  Initializing.
  Getting section buildout.
  Initializing section buildout.
  Getting option buildout:foo.
  Getting section python.
  Initializing section python.
  Installing recipe zc.recipe.egg.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:

AttributeError:
Buildout instance has no attribute '_allow_hosts'
--------------------------8<-----------------------------------

Tarek Ziadé (tziade) wrote :

Working on it

Tarek Ziadé (tziade) wrote :

Fixed by Andreas in revision 87309

Changed in zc.buildout:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers