Changeset 99f9ecf in sasview for guiframe


Ignore:
Timestamp:
May 11, 2011 1:40:50 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
8cb8c89
Parents:
87f4dcc
Message:

make sure load data files view only datafile extensions in the open dialog

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_panel.py

    r0c26793 r99f9ecf  
    4343    extension_list.append(config.APPLICATION_STATE_EXTENSION) 
    4444EXTENSIONS = config.PLUGIN_STATE_EXTENSIONS + extension_list    
     45PLUGINS_WLIST = config.PLUGINS_WLIST 
     46APPLICATION_WLIST = config.APPLICATION_WLIST 
    4547 
    4648PANEL_WIDTH = 235 
     
    588590         
    589591        cards = self.loader.get_wildcards() 
     592        temp = [APPLICATION_WLIST] + PLUGINS_WLIST 
     593        for item in temp: 
     594            if item in cards: 
     595                cards.remove(item) 
    590596        wlist =  '|'.join(cards) 
    591597        style = wx.OPEN|wx.FD_MULTIPLE 
     
    619625                log_msg = "Data Loader cannot " 
    620626                log_msg += "load: %s\n" % str(p_file) 
    621                 log_msg += "Try File opening ...." 
     627                log_msg += """Please try to open that file from "open project" """ 
     628                log_msg += """or "open analysis" menu\n""" 
     629                error_message = log_msg + "\n" 
    622630                logging.info(log_msg) 
    623631                continue 
  • guiframe/local_perspectives/data_loader/data_loader.py

    r87f4dcc r99f9ecf  
    190190                log_msg = "Data Loader cannot " 
    191191                log_msg += "load: %s\n" % str(p_file) 
    192                 log_msg += "Try File opening ...." 
     192                log_msg += """Please try to open that file from "open project" """ 
     193                log_msg += """or "open analysis" menu\n""" 
     194                error_message = log_msg + "\n" 
    193195                logging.info(log_msg) 
    194196                continue 
Note: See TracChangeset for help on using the changeset viewer.