Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.template
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.recipe.template
Commits
f9db590e
Commit
f9db590e
authored
Jun 25, 2015
by
Julien Muchembled
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jinja2: new assert function
parent
964d0f7c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
CHANGES.txt
CHANGES.txt
+5
-0
setup.py
setup.py
+1
-1
slapos/recipe/template/jinja2_template.py
slapos/recipe/template/jinja2_template.py
+6
-0
No files found.
CHANGES.txt
View file @
f9db590e
2.8 (2015-06-25)
================
* jinja2: new assert function.
2.7 (2015-05-18)
================
...
...
setup.py
View file @
f9db590e
from
setuptools
import
setup
,
find_packages
import
os
version
=
'2.
7
'
version
=
'2.
8
'
name
=
'slapos.recipe.template'
long_description
=
open
(
"README.txt"
).
read
()
+
"
\
n
"
+
\
open
(
os
.
path
.
join
(
'slapos'
,
'recipe'
,
...
...
slapos/recipe/template/jinja2_template.py
View file @
f9db590e
...
...
@@ -38,6 +38,12 @@ DEFAULT_CONTEXT = {x.__name__: x for x in (
isinstance
,
iter
,
len
,
list
,
map
,
max
,
min
,
next
,
oct
,
ord
,
pow
,
repr
,
reversed
,
round
,
set
,
sorted
,
str
,
sum
,
tuple
,
zip
)}
def
_assert
(
x
,
*
args
):
if
x
:
return
""
raise
AssertionError
(
*
args
)
DEFAULT_CONTEXT
[
'assert'
]
=
_assert
_buildout_safe_dumps
=
getattr
(
zc
.
buildout
.
buildout
,
'dumps'
,
None
)
DUMPS_KEY
=
'dumps'
DEFAULT_IMPORT_DELIMITER
=
'/'
...
...
Kirill Smelkov
@kirr
mentioned in merge request
!1 (merged)
·
Nov 18, 2015
mentioned in merge request
!1 (merged)
mentioned in merge request !1
Toggle commit list
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