Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
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
Guillaume Hervier
slapos-caddy
Commits
0fa2752c
Commit
0fa2752c
authored
Apr 14, 2014
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recipe.generic_zope_zeo_client: Simplify dict handling code.
Also, do not look unused options up.
parent
4f4354c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
slapos/recipe/generic_zope_zeo_client/__init__.py
slapos/recipe/generic_zope_zeo_client/__init__.py
+10
-15
No files found.
slapos/recipe/generic_zope_zeo_client/__init__.py
View file @
0fa2752c
...
@@ -102,26 +102,21 @@ class Recipe(GenericBaseRecipe):
...
@@ -102,26 +102,21 @@ class Recipe(GenericBaseRecipe):
# Always provide a URL-Type
# Always provide a URL-Type
append
(
"file://"
+
link
)
append
(
"file://"
+
link
)
zope_environment
=
dict
(
zope_environment
=
{
TMP
=
self
.
options
[
'tmp-path'
],
'TMP'
:
self
.
options
[
'tmp-path'
],
TMPDIR
=
self
.
options
[
'tmp-path'
],
'TMPDIR'
:
self
.
options
[
'tmp-path'
],
HOME
=
self
.
options
[
'tmp-path'
],
'HOME'
:
self
.
options
[
'tmp-path'
],
PATH
=
self
.
options
[
'bin-path'
],
'PATH'
:
self
.
options
[
'bin-path'
],
TZ
=
self
.
options
[
'timezone'
],
'TZ'
:
self
.
options
[
'timezone'
],
)
}
# longrequestlogger product which requires environment settings
# longrequestlogger product which requires environment settings
longrequest_logger_file
=
self
.
options
.
get
(
'longrequest-logger-file'
,
None
)
longrequest_logger_file
=
self
.
options
.
get
(
'longrequest-logger-file'
,
None
)
longrequest_logger_timeout
=
\
self
.
options
.
get
(
'longrequest-logger-timeout'
,
None
)
longrequest_logger_interval
=
\
self
.
options
.
get
(
'longrequest-logger-interval'
,
None
)
if
longrequest_logger_file
:
if
longrequest_logger_file
:
# add needed zope configuration
# add needed zope configuration
zope_environment
.
update
(
zope_environment
[
'longrequestlogger_file'
]
=
longrequest_logger_file
**
dict
(
longrequestlogger_file
=
longrequest_logger_file
,
zope_environment
[
'longrequestlogger_timeout'
]
=
self
.
options
.
get
(
'longrequest-logger-timeout'
,
None
)
longrequestlogger_timeout
=
longrequest_logger_timeout
,
zope_environment
[
'longrequestlogger_interval'
]
=
self
.
options
.
get
(
'longrequest-logger-interval'
,
None
)
longrequestlogger_interval
=
longrequest_logger_interval
))
# configure default Zope2 zcml
# configure default Zope2 zcml
open
(
self
.
options
[
'site-zcml'
],
'w'
).
write
(
open
(
self
.
getTemplateFilename
(
open
(
self
.
options
[
'site-zcml'
],
'w'
).
write
(
open
(
self
.
getTemplateFilename
(
...
...
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