Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos.buildout
Commits
164c65f0
Commit
164c65f0
authored
Oct 31, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! In __buildout_signature__, fix missing parts that are pulled by recipes' __init__
parent
a853099d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
20 deletions
+24
-20
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+20
-19
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+4
-1
No files found.
src/zc/buildout/buildout.py
View file @
164c65f0
...
@@ -1282,15 +1282,9 @@ class Buildout(DictMixin):
...
@@ -1282,15 +1282,9 @@ class Buildout(DictMixin):
def
__getitem__
(
self
,
section
):
def
__getitem__
(
self
,
section
):
__doing__
=
'Getting section %s.'
,
section
__doing__
=
'Getting section %s.'
,
section
if
self
.
_initializing
:
caller
=
self
.
_initializing
[
-
1
]
if
'buildout'
!=
section
!=
caller
.
name
:
caller
.
depends
.
add
(
section
)
try
:
try
:
return
self
.
_data
[
section
]
options
=
self
.
_data
[
section
]
except
KeyError
:
except
KeyError
:
pass
try
:
try
:
data
=
self
.
_raw
[
section
]
data
=
self
.
_raw
[
section
]
except
KeyError
:
except
KeyError
:
...
@@ -1299,6 +1293,11 @@ class Buildout(DictMixin):
...
@@ -1299,6 +1293,11 @@ class Buildout(DictMixin):
options
=
self
.
Options
(
self
,
section
,
data
)
options
=
self
.
Options
(
self
,
section
,
data
)
self
.
_data
[
section
]
=
options
self
.
_data
[
section
]
=
options
options
.
_initialize
()
options
.
_initialize
()
if
self
.
_initializing
:
caller
=
self
.
_initializing
[
-
1
]
if
'buildout'
!=
section
!=
caller
.
name
:
caller
.
depends
.
add
(
section
)
return
options
return
options
def
__setitem__
(
self
,
name
,
data
):
def
__setitem__
(
self
,
name
,
data
):
...
@@ -1508,12 +1507,14 @@ class Options(DictMixin):
...
@@ -1508,12 +1507,14 @@ class Options(DictMixin):
section
,
option
=
s
section
,
option
=
s
if
not
section
:
if
not
section
:
section
=
self
.
name
section
=
self
.
name
elif
section
!=
'buildout'
:
options
=
self
assert
not
self
.
buildout
.
_initializing
,
(
self
.
name
,
else
:
self
.
buildout
.
_initializing
[
-
1
],
self
.
buildout
.
_initializing
.
append
(
self
)
len
(
self
.
buildout
.
_initializing
))
try
:
self
.
depends
.
add
(
section
)
options
=
self
.
buildout
[
section
]
v
=
self
.
buildout
[
section
].
get
(
option
,
None
,
seen
,
last
=
last
)
finally
:
del
self
.
buildout
.
_initializing
[
-
1
]
v
=
options
.
get
(
option
,
None
,
seen
,
last
=
last
)
if
v
is
None
:
if
v
is
None
:
if
option
==
'_buildout_section_name_'
:
if
option
==
'_buildout_section_name_'
:
v
=
self
.
name
v
=
self
.
name
...
...
src/zc/buildout/tests.py
View file @
164c65f0
...
@@ -2118,6 +2118,9 @@ def test_part_pulled_by_recipe():
...
@@ -2118,6 +2118,9 @@ def test_part_pulled_by_recipe():
... <= a
... <= a
... a = A
... a = A
... b = B
... b = B
... c = ${c:x}
... [c]
... x = c
... ''')
... ''')
>>> os.chdir(sample_buildout)
>>> os.chdir(sample_buildout)
...
@@ -2142,7 +2145,7 @@ def test_part_pulled_by_recipe():
...
@@ -2142,7 +2145,7 @@ def test_part_pulled_by_recipe():
...
...
[b]
[b]
__buildout_installed__ =
__buildout_installed__ =
__buildout_signature__ = recipes-c79aac86a90182467ce2fdae8b56eb1c
__buildout_signature__ = recipes-c79aac86a90182467ce2fdae8b56eb1c
c:...
...
...
[a]
[a]
__buildout_installed__ =
__buildout_installed__ =
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment