p3 fixes in applications
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user