8023: HTML view fails to load; replaced file with open
This commit is contained in:
parent
6bdc7fea05
commit
4d0508e6bf
@ -555,7 +555,7 @@ class HtmlView(NavigationView):
|
|||||||
# Now we have two views : Web and Geography, we need to create the
|
# Now we have two views : Web and Geography, we need to create the
|
||||||
# startpage only once.
|
# startpage only once.
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
ufd = file(filename, "w+")
|
ufd = open(filename, "w+")
|
||||||
ufd.write(data)
|
ufd.write(data)
|
||||||
ufd.close()
|
ufd.close()
|
||||||
return urlunsplit(('file', '',
|
return urlunsplit(('file', '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user