p3 fixes in applications

This commit is contained in:
ilvalle
2016-06-28 19:58:20 +02:00
parent 5f80300c5d
commit ea337e07d0
6 changed files with 12 additions and 19 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import gluon.template
from gluon.fileutils import open_file
markmin_dict = dict(
code_python=lambda code: str(CODE(code)),
@@ -24,7 +25,7 @@ def get_content(b=None,
import os
path = os.path.join(
request.folder, 'private', 'content', l, c, f, b + '.' + format)
return open(path)
return open_file(path, mode='r')
try:
openedfile = openfile()