[svn] / zc.buildout / trunk / src / zc / buildout / buildout.py Repository:
ViewVC logotype

Diff of /zc.buildout/trunk/src/zc/buildout/buildout.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 87277, Tue Jun 10 08:59:51 2008 UTC revision 87309, Wed Jun 11 04:51:09 2008 UTC
# Line 124  Line 124 
124          self._parts = []          self._parts = []
125          # provide some defaults before options are parsed          # provide some defaults before options are parsed
126          # because while parsing options those attributes might be          # because while parsing options those attributes might be
127          # used already (Gottfried Ganssauage)          # used already (Gottfried Ganssauge)
128          self._links = ()          buildout_section = data.get ('buildout')
129            links = buildout_section and buildout_section.get('find-links', '')
130            self._links = links and links.split() or ()
131    
132            allow_hosts = buildout_section and buildout_section.get(
133                 'allow-hosts', '*').split('\n')
134            self._allow_hosts = tuple([host.strip() for host in allow_hosts
135                                       if host.strip() != ''])
136    
137          self._buildout_dir = os.getcwd()          self._buildout_dir = os.getcwd()
138          self._logger = logging.getLogger('zc.buildout')          self._logger = logging.getLogger('zc.buildout')
139          self.offline = False          self.offline = False
140          self.newest = True          self.newest = True
141    
142            ##################################################################
143            ## WARNING!!!
144            ## ALL ATTRIBUTES MUST HAVE REASONABLE DEFAULTS AT THIS POINT
145            ## OTHERWISE ATTRIBUTEERRORS MIGHT HAPPEN ANY TIME
146            ##################################################################
147          # initialize some attrs and buildout directories.          # initialize some attrs and buildout directories.
148          options = self['buildout']          options = self['buildout']
149    
150            # now reinitialize
151          links = options.get('find-links', '')          links = options.get('find-links', '')
152          self._links = links and links.split() or ()          self._links = links and links.split() or ()
153    

Legend:
Removed from v.87277  
changed lines
  Added in v.87309

zope.org Infrastructure
ViewVC Help
Powered by ViewVC 1.0.3