filename clean up

svn: r1408
This commit is contained in:
Don Allingham 2003-03-28 02:28:04 +00:00
parent 0ce2942e6c
commit 27d3985fb9
4 changed files with 7 additions and 5 deletions

View File

@ -126,7 +126,7 @@ class DbPrompter:
self.show()
def ok_button_clicked(self,obj):
filename = self.dbname.get_full_path(0).encode('iso8859-1')
filename = self.dbname.get_full_path(0)
if not filename:
return

View File

@ -56,7 +56,7 @@ except:
#-------------------------------------------------------------------------
def importData(database, filename, callback):
filename = os.path.normpath(filename).encode('iso8859-1')
filename = os.path.normpath(filename)
basefile = os.path.dirname(filename)
database.smap = {}
database.pmap = {}

View File

@ -701,6 +701,8 @@ class Gramps:
dbname = obj.get_data("dbname")
getoldrev = obj.get_data("getoldrev")
filename = dbname.get_full_path(0)
print filename
Utils.destroy_passed_object(obj)
if filename == "" or filename == None:

View File

@ -261,7 +261,7 @@ msgstr "(en|tot|-)"
#: Date.py:228 Date.py:241
msgid "from %(start_date)s to %(stop_date)s"
msgstr "van %(begin_datum)s tot %(eind_datum)s"
msgstr "van %(start_date)s tot %(stop_date)s"
#: DbPrompter.py:65 DbPrompter.py:117 gramps_main.py:987 revision.glade:131
msgid "Open a database"
@ -349,7 +349,7 @@ msgstr "Geen"
#: EditPerson.py:413 EditSource.py:141
msgid "%(father)s and %(mother)s"
msgstr "%(vader)s en %(moeder)s"
msgstr "%(father)s en %(mother)s"
#: EditPerson.py:421 const.py:144 plugins/FamilyGroup.py:385
#: plugins/IndivComplete.py:259 plugins/IndivSummary.py:155
@ -4344,7 +4344,7 @@ msgstr "Genereert relatiegrafieken, momenteel alleen in GraphViz-formaat. GraphV
#: plugins/IndivComplete.py:117
msgid "%(date)s in %(place)s."
msgstr "%(datum)s in %(plaats)en"
msgstr "%(date)s in %(place)en"
#: plugins/IndivComplete.py:149 plugins/WebPage.py:463
msgid "Notes"