GEPS008: Create new module for file utilities

svn: r19906
This commit is contained in:
Nick Hall
2012-06-23 22:13:23 +00:00
parent 3ec4c0f80c
commit 2a0b009bdf
51 changed files with 424 additions and 360 deletions

View File

@@ -59,7 +59,7 @@ import gtk
#-------------------------------------------------------------------------
from gui.views.navigationview import NavigationView
from gui.views.bookmarks import PersonBookmarks
import Utils
from gen.utils.file import get_empty_tempdir
from gen.constfunc import lin, mac, win
from gen.config import config
from const import TEMP_DIR
@@ -92,8 +92,8 @@ def get_identity():
# I think we should set the two following variable in const.py
# They are used only with gtkmozembed.
MOZEMBED_PATH = TEMP_DIR
MOZEMBED_SUBPATH = Utils.get_empty_tempdir('mozembed_gramps')
GEOVIEW_SUBPATH = Utils.get_empty_tempdir('geoview')
MOZEMBED_SUBPATH = get_empty_tempdir('mozembed_gramps')
GEOVIEW_SUBPATH = get_empty_tempdir('geoview')
NOWEB = 0
WEBKIT = 1
MOZILLA = 2