Commit e5ce9d6f authored by andreasjung's avatar andreasjung

providing useful default values in order to get around an

AttributeError:
Buildout instance has no attribute '_logger' 




git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@87085 62d5b8a3-27da-0310-9561-8e5933582275
parent d1cbc8b3
......@@ -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