Better handling of bad path names for read open
svn: r572
This commit is contained in:
parent
e030fa8253
commit
a3dbabf0ac
@ -482,15 +482,17 @@ def on_reports_clicked(obj):
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
def on_ok_button1_clicked(obj):
|
||||
new_database_response(0)
|
||||
dbname = obj.get_data("dbname")
|
||||
getoldrev = obj.get_data("getoldrev")
|
||||
filename = dbname.get_full_path(1)
|
||||
filename = dbname.get_full_path(0)
|
||||
utils.destroy_passed_object(obj)
|
||||
|
||||
if filename == "" or filename == None:
|
||||
return
|
||||
|
||||
if os.path.isdir(filename):
|
||||
new_database_response(0)
|
||||
|
||||
if getoldrev.get_active():
|
||||
vc = VersionControl.RcsVersionControl(filename)
|
||||
VersionControl.RevisionSelect(database,filename,vc,load_revision)
|
||||
|
Loading…
Reference in New Issue
Block a user