[Checkins] SVN: zc.buildout/trunk/ providing useful default values
in order to get around an
Andreas Jung
andreas at andreas-jung.com
Sun Jun 1 04:01:37 EDT 2008
Log message for revision 87085:
providing useful default values in order to get around an
AttributeError:
Buildout instance has no attribute '_logger'
Changed:
U zc.buildout/trunk/CHANGES.txt
U zc.buildout/trunk/setup.py
U zc.buildout/trunk/src/zc/buildout/buildout.py
-=-
Modified: zc.buildout/trunk/CHANGES.txt
===================================================================
--- zc.buildout/trunk/CHANGES.txt 2008-05-31 19:08:17 UTC (rev 87084)
+++ zc.buildout/trunk/CHANGES.txt 2008-06-01 08:01:35 UTC (rev 87085)
@@ -3,7 +3,13 @@
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 @@
.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)
==================
Modified: zc.buildout/trunk/setup.py
===================================================================
--- zc.buildout/trunk/setup.py 2008-05-31 19:08:17 UTC (rev 87084)
+++ zc.buildout/trunk/setup.py 2008-06-01 08:01:35 UTC (rev 87085)
@@ -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
Modified: zc.buildout/trunk/src/zc/buildout/buildout.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/buildout.py 2008-05-31 19:08:17 UTC (rev 87084)
+++ zc.buildout/trunk/src/zc/buildout/buildout.py 2008-06-01 08:01:35 UTC (rev 87085)
@@ -122,6 +122,14 @@
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']
More information about the Checkins
mailing list