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
Nicolas Wavrant
slapos.buildout
Commits
d9303c7e
Commit
d9303c7e
authored
Oct 01, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'serialisation'
Conflicts: CHANGES.SlapOS.txt setup.py
parents
c039107f
dc35342a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
CHANGES.SlapOS.txt
CHANGES.SlapOS.txt
+7
-0
setup.py
setup.py
+1
-1
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+5
-0
No files found.
CHANGES.SlapOS.txt
View file @
d9303c7e
1.6.0-dev-SlapOS-008
--------------------
- Fix assigning non-string values to section keys:
Make Options.copy return de-serialised values.
Make _save_option accept non-string values.
1.6.0-dev-SlapOS-007
1.6.0-dev-SlapOS-007
--------------------
--------------------
...
...
setup.py
View file @
d9303c7e
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#
#
##############################################################################
##############################################################################
name
=
"zc.buildout"
name
=
"zc.buildout"
version
=
"1.6.0-dev-SlapOS-00
7
"
version
=
"1.6.0-dev-SlapOS-00
8
"
import
os
import
os
from
setuptools
import
setup
from
setuptools
import
setup
...
...
src/zc/buildout/buildout.py
View file @
d9303c7e
...
@@ -1547,6 +1547,9 @@ class Options(UserDict.DictMixin):
...
@@ -1547,6 +1547,9 @@ class Options(UserDict.DictMixin):
result
=
self
.
_raw
.
copy
()
result
=
self
.
_raw
.
copy
()
result
.
update
(
self
.
_cooked
)
result
.
update
(
self
.
_cooked
)
result
.
update
(
self
.
_data
)
result
.
update
(
self
.
_data
)
for
key
,
value
in
result
.
iteritems
():
if
value
.
startswith
(
SERIALISED_VALUE_MAGIC
):
result
[
key
]
=
loads
(
value
)
return
result
return
result
def
_call
(
self
,
f
):
def
_call
(
self
,
f
):
...
@@ -1634,6 +1637,8 @@ def _quote_spacey_nl(match):
...
@@ -1634,6 +1637,8 @@ def _quote_spacey_nl(match):
return
result
return
result
def
_save_option
(
option
,
value
,
f
):
def
_save_option
(
option
,
value
,
f
):
if
not
isinstance
(
value
,
str
):
value
=
dumps
(
value
)
value
=
_spacey_nl
.
sub
(
_quote_spacey_nl
,
value
)
value
=
_spacey_nl
.
sub
(
_quote_spacey_nl
,
value
)
if
value
.
startswith
(
'
\
n
\
t
'
):
if
value
.
startswith
(
'
\
n
\
t
'
):
value
=
'%(__buildout_space_n__)s'
+
value
[
2
:]
value
=
'%(__buildout_space_n__)s'
+
value
[
2
:]
...
...
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