Zope Subversion Repository

  Zope

Zope: zc.buildout/trunk/src/zc/buildout/buildout.py

Diff for /zc.buildout/trunk/src/zc/buildout/buildout.py between version 87277 and 87309

version 87277, Tue Jun 10 08:59:51 2008 UTC version 87309, Wed Jun 11 04:51:09 2008 UTC
Line 124 
Line 124 
         self._parts = []          self._parts = []
         # provide some defaults before options are parsed          # provide some defaults before options are parsed
         # because while parsing options those attributes might be          # because while parsing options those attributes might be
         # used already (Gottfried Ganssauage)          # used already (Gottfried Ganssauge)
         self._links = ()          buildout_section = data.get ('buildout')
           links = buildout_section and buildout_section.get('find-links', '')
           self._links = links and links.split() or ()
   
           allow_hosts = buildout_section and buildout_section.get(
                'allow-hosts', '*').split('\n')
           self._allow_hosts = tuple([host.strip() for host in allow_hosts
                                      if host.strip() != ''])
   
         self._buildout_dir = os.getcwd()          self._buildout_dir = os.getcwd()
         self._logger = logging.getLogger('zc.buildout')          self._logger = logging.getLogger('zc.buildout')
         self.offline = False          self.offline = False
         self.newest = True          self.newest = True
   
           ##################################################################
           ## WARNING!!!
           ## ALL ATTRIBUTES MUST HAVE REASONABLE DEFAULTS AT THIS POINT
           ## OTHERWISE ATTRIBUTEERRORS MIGHT HAPPEN ANY TIME
           ##################################################################
         # initialize some attrs and buildout directories.          # initialize some attrs and buildout directories.
         options = self['buildout']          options = self['buildout']
   
           # now reinitialize
         links = options.get('find-links', '')          links = options.get('find-links', '')
         self._links = links and links.split() or ()          self._links = links and links.split() or ()
   


Generate output suitable for use with a patch program
Legend:
Removed from v.87277  
changed lines
  Added in v.87309

webmaster@zope.org

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help