Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
3dfdbf2a
Commit
3dfdbf2a
authored
Mar 04, 2012
by
Nicolas Dandrimont
🤔
Browse files
Fix the QA plugin data encoding (get UTF-8 in, return unicode)
parent
2f5b12b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/model/package_info.py
View file @
3dfdbf2a
...
...
@@ -90,7 +90,11 @@ class PackageInfo(OrmObject):
"default/text.mako"
,
]
lookup
=
TemplateLookup
(
directories
=
PLUGINS_TEMPLATE_DIRS
)
lookup
=
TemplateLookup
(
directories
=
PLUGINS_TEMPLATE_DIRS
,
input_encoding
=
'utf-8'
,
output_encoding
=
'utf-8'
,
)
for
basefile
in
try_files
:
try
:
...
...
@@ -103,9 +107,7 @@ class PackageInfo(OrmObject):
# No template file found, something weird happened
return
"%s (!! no template found)"
%
self
.
data
rendered_data
=
template
.
render
(
o
=
self
,
h
=
debexpo
.
lib
.
helpers
)
return
rendered_data
return
template
.
render_unicode
(
o
=
self
,
h
=
debexpo
.
lib
.
helpers
)
orm
.
mapper
(
PackageInfo
,
t_package_info
,
properties
=
{
'package_version'
:
orm
.
relation
(
PackageVersion
,
backref
=
'package_info'
),
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment