Ignore:
Timestamp:
Jan 21, 2011 3:35:47 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:
c26a64b
Parents:
cacbd7d
Message:

working on loading multiple file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/data_loader/data_loader.py

    rf444b20 rdf7046f  
    66import sys 
    77import wx 
     8import logging 
    89 
    910from DataLoader.loader import Loader 
     
    192193        """ 
    193194        message = "" 
     195        log_msg = '' 
    194196        output = [] 
    195197        error_message = "" 
     
    199201            if flag: 
    200202                if extension.lower() in EXTENSIONS: 
    201                     error_message = "Cannot load: %s\n" % str(p_file) 
    202                     error_message += "Try File -> open ...." 
     203                    log_msg = "Data Loader cannot " 
     204                    log_msg += "load: %s\n" % str(p_file) 
     205                    log_msg += "Try File -> open ...." 
     206                    logging.info(log_msg) 
    203207                    continue 
    204208            else: 
    205209                if extension.lower() not in EXTENSIONS: 
    206                     error_message = "Cannot load: %s\n" % str(p_file) 
    207                     error_message += "Try Data -> Load ...." 
     210                    log_msg = "File Loader cannot" 
     211                    log_msg += " load: %s\n" % str(p_file) 
     212                    log_msg += "Try Data -> Load ...." 
     213                    logging.info(log_msg) 
    208214                    continue 
    209215            try: 
     
    223229                self.load_update(output=output, message=error_message) 
    224230                 
    225         message = "Loading Complete!" 
     231        message = "Loading Complete! " 
     232        message += log_msg 
    226233        self.load_complete(output=output, error_message=error_message, 
    227234                       message=message, path=path) 
Note: See TracChangeset for help on using the changeset viewer.