Workaround for the fact that urllib2 doesn't default to "file:" urls.

This commit is contained in:
Jack Jansen 2005-01-07 12:50:12 +00:00
parent c110f8665f
commit 30620ac641
1 changed files with 2 additions and 0 deletions

View File

@ -181,6 +181,8 @@ class PackageManagerMain(Wapplication.Application):
filename = EasyDialogs.AskFileForOpen(typeList=("TEXT",))
if filename:
filename = urllib.pathname2url(filename)
if filename[:5] != 'file:':
filename = 'file:' + filename
self.opendoc(filename)
def domenu_openURL(self, *args):