Commit b3bd62a7 authored by Andreas Jung's avatar Andreas Jung

providing useful default values in order to get around an

AttributeError:
Buildout instance has no attribute '_logger' 

parent 5871209a
......@@ -3,6 +3,12 @@ Status
Change History
**************
1.0.3 (2008-06-01)
==================
- fix for """AttributeError: Buildout instance has no attribute '_logger'"""
by providing reasonable defaults within the Buildout constructor.
(patch by Gottfried Ganssauge) (ajung)
1.0.2 (2008-05-13)
==================
......@@ -11,6 +17,7 @@ Change History
.exe files work with a Python executable in 'program files'.
- Added "-t <timeout_in_seconds>" option for specifying the socket timeout.
(ajung)
1.0.1 (2008-04-02)
==================
......
......@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
version = "1.0.3-dev"
version = "1.0.3"
import os
from setuptools import setup, find_packages
......
......@@ -122,6 +122,14 @@ class Buildout(UserDict.DictMixin):
self._raw = data
self._data = {}
self._parts = []
# provide some defaults before options are parsed
# because while parsing options those attributes might be
# used already (Gottfried Ganssauage)
self._links = ()
self._buildout_dir = os.getcwd()
self._logger = logging.getLogger('zc.buildout')
self.offline = False
self.newest = True
# initialize some attrs and buildout directories.
options = self['buildout']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment