Ignore:
Timestamp:
06/12/13 12:00:14 (11 years ago)
Author:
jripsl
Message:

Fix bug (incorrect simulation_id was used in message table).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Monitoring/Watch/watch

    r876 r877  
    5757        @classmethod 
    5858        def store_msg(cls,message): 
    59                 repo_io.create_message(message) 
     59 
     60                # the simu exists when we are here (see TAG0001 tag) 
     61                s=repo_io.retrieve_simulation(message.simuid) 
     62 
     63                repo_io.create_message(message,s) 
    6064 
    6165        @classmethod 
     
    127131 
    128132        # debug 
    129         mapping = { "0000":["log", "store_msg", "print_stdout", "crea_sim"], 
     133        # 
     134        # TAG0001: note that crea_sim must be BEFORE store_msg in the list (because when we insert the msg, we need the simu_id) 
     135        # 
     136        mapping = { "0000":["crea_sim", "log", "store_msg", "print_stdout"], 
    130137                                "0100":["log", "store_msg", "print_stdout", "set_sim_status_to_complete"], 
    131138                                "1000":["log", "store_msg", "print_stdout"], 
     
    138145 
    139146        # prod 
     147        # 
     148        # TAG0001: note that crea_sim must be BEFORE store_msg in the list (because when we insert the msg, we need the simu_id) 
     149        # 
    140150        """ 
    141         mapping = { "0000":["log", "store_msg", "crea_sim"], 
     151        mapping = { "0000":["crea_sim", "log", "store_msg"], 
    142152                                "0100":["log", "store_msg", "set_sim_status_to_complete"], 
    143153                                "1000":["log", "store_msg"], 
Note: See TracChangeset for help on using the changeset viewer.