Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fuchsia.googlesource.com-third_party-mako
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
fuchsia.googlesource.com-third_party-mako
Commits
31888375
Commit
31888375
authored
11 years ago
by
Mike Bayer
Browse files
Options
Downloads
Patches
Plain Diff
- changelog
- fix test to work under py3.2
parent
99d3272b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES
+3
-0
3 additions, 0 deletions
CHANGES
mako/ext/turbogears.py
+1
-1
1 addition, 1 deletion
mako/ext/turbogears.py
test/test_tgplugin.py
+3
-4
3 additions, 4 deletions
test/test_tgplugin.py
with
7 additions
and
5 deletions
CHANGES
+
3
−
0
View file @
31888375
0.9.1
- [bug] Fixed TGPlugin.render method to support unicode template
names in Py2K - courtesy Vladimir Magamedov.
- [bug] Fixed an AST issue that was preventing correct operation
under alpha versions of Python 3.4. Pullreq courtesy Zer0-.
...
...
This diff is collapsed.
Click to expand it.
mako/ext/turbogears.py
+
1
−
1
View file @
31888375
...
...
@@ -26,7 +26,7 @@ class TGPlugin(object):
elif
k
in
[
'
directories
'
,
'
filesystem_checks
'
,
'
module_directory
'
]:
lookup_options
[
k
]
=
v
self
.
lookup
=
TemplateLookup
(
**
lookup_options
)
self
.
tmpl_options
=
{}
# transfer lookup args to template args, based on those available
# in getargspec
...
...
This diff is collapsed.
Click to expand it.
test/test_tgplugin.py
+
3
−
4
View file @
31888375
import
unittest
from
mako.ext.turbogears
import
TGPlugin
from
test.util
import
flatten_result
,
result_lines
from
test.util
import
result_lines
from
test
import
TemplateTest
,
template_base
from
mako
import
compat
tl
=
TGPlugin
(
options
=
dict
(
directories
=
[
template_base
]),
extension
=
'
html
'
)
...
...
@@ -45,6 +44,6 @@ class TestTGPlugin(TemplateTest):
assert
result_lines
(
tl
.
render
({},
template
=
'
/index.html
'
))
==
[
"
this is index
"
]
assert
result_lines
(
tl
.
render
({},
template
=
u
'
/index.html
'
))
==
[
assert
result_lines
(
tl
.
render
({},
template
=
compat
.
u
(
'
/index.html
'
))
)
==
[
"
this is index
"
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment