Changeset 440 in tmcsimulator for trunk/src


Ignore:
Timestamp:
07/11/2019 04:29:12 PM (7 years ago)
Author:
jdalbey
Message:

Move unified logger to python folder under src. Create a separate web app to display the log file in a formatted html page. Fix sanitize defect in cms and har layers.

Location:
trunk/src
Files:
5 added
4 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/python/unifiedlogger/cms_watcher.py

    r439 r440  
    1212# Utility functions 
    1313def isEmpty(cmsitem): 
    14      return cmsitem == ",,,,," 
     14     return cmsitem == ":::::" 
    1515def isFull(cmsitem): 
    1616     return not isEmpty(cmsitem) 
  • trunk/src/python/unifiedlogger/wing_project.wpr

    r439 r440  
    8585                          1], 
    8686        'notebook_display': 'hidden', 
    87         'notebook_percent': 0.30000000000000004, 
     87        'notebook_percent': 0.0, 
    8888        'override_title': None, 
    8989        'pagelist': [('batch-search', 
     
    183183                       'toolbox-tree-sel': ''})], 
    184184        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('cms_watcher.py'), 
    185         {'attrib-starts': [('readFile|0|', 
    186                             18)], 
    187          'code-line': "     with open (\"webapps/dynamicdata/cms_messages.js"\ 
    188                       "on\",'r') as myfile:\n", 
    189          'first-line': 12L, 
     185        {'attrib-starts': [('main|0|', 
     186                            85)], 
     187         'code-line': 'def main():\n', 
     188         'first-line': 60L, 
    190189         'folded-linenos': [], 
    191          'sel-line': 19L, 
    192          'sel-line-start': 428L, 
    193          'selection_end': 465L, 
    194          'selection_start': 445L, 
     190         'sel-line': 85L, 
     191         'sel-line-start': 3074L, 
     192         'selection_end': 3085L, 
     193         'selection_start': 3085L, 
    195194         'zoom': 0L}, 
    196         1562878134.304885], 
    197         [loc('logging_service.py'), 
    198          {'attrib-starts': [('startup|0|', 
    199                              16)], 
    200           'code-line': '        timeStamp = getSimTime()\n', 
    201           'first-line': 18L, 
    202           'folded-linenos': [], 
    203           'sel-line': 41L, 
    204           'sel-line-start': 1347L, 
    205           'selection_end': 1378L, 
    206           'selection_start': 1378L, 
    207           'zoom': 0L}, 
    208          1562878168.115609], 
    209         [loc('__main__.py'), 
    210          {'attrib-starts': [('main|0|', 
    211                              2)], 
    212           'code-line': '    print "Unified Logging Service starting from ",o'\ 
    213                        's.getcwd()\n', 
    214           'first-line': 0L, 
    215           'folded-linenos': [], 
    216           'sel-line': 3L, 
    217           'sel-line-start': 132L, 
    218           'selection_end': 183L, 
    219           'selection_start': 183L, 
    220           'zoom': 0L}, 
    221          1562878178.825696], 
    222         [loc('cms_watcher.py'), 
    223          {'attrib-starts': [('main|0|', 
    224                              85)], 
    225           'code-line': 'def main():\n', 
    226           'first-line': 60L, 
    227           'folded-linenos': [], 
    228           'sel-line': 85L, 
    229           'sel-line-start': 3074L, 
    230           'selection_end': 3085L, 
    231           'selection_start': 3085L, 
    232           'zoom': 0L}, 
    233          1562878428.05693], 
     195        1562878428.05693], 
    234196        [loc('cad_watcher.py'), 
    235197         {'attrib-starts': [], 
     
    442404          'selection_start': 1903L, 
    443405          'zoom': 0L}, 
    444          1562883842.916941]], 
     406         1562883842.916941], 
     407        [loc('logging_service.py'), 
     408         {'attrib-starts': [('startup|0|', 
     409                             17)], 
     410          'code-line': '            f = open(logfilepath + outputFilename, "'\ 
     411                       'a")\n', 
     412          'first-line': 0L, 
     413          'folded-linenos': [], 
     414          'sel-line': 63L, 
     415          'sel-line-start': 2214L, 
     416          'selection_end': 2263L, 
     417          'selection_start': 2263L, 
     418          'zoom': 0L}, 
     419         1562887416.91585], 
     420        [loc('__main__.py'), 
     421         {'attrib-starts': [('main|0|', 
     422                             2)], 
     423          'code-line': '    print "Unified Logging Service starting from ",o'\ 
     424                       's.getcwd()\n', 
     425          'first-line': 0L, 
     426          'folded-linenos': [], 
     427          'sel-line': 3L, 
     428          'sel-line-start': 132L, 
     429          'selection_end': 183L, 
     430          'selection_start': 183L, 
     431          'zoom': 0L}, 
     432         1562892803.750792], 
     433        [loc('cms_watcher.py'), 
     434         {'attrib-starts': [('isEmpty|0|', 
     435                             12)], 
     436          'code-line': '     return cmsitem == ":::::"\n', 
     437          'first-line': 0L, 
     438          'folded-linenos': [], 
     439          'sel-line': 13L, 
     440          'sel-line-start': 324L, 
     441          'selection_end': 353L, 
     442          'selection_start': 353L, 
     443          'zoom': 0L}, 
     444         1562893146.713132]], 
    445445        20), 
    446         'current-loc': loc('logging_service.py'), 
     446        'current-loc': loc('__main__.py'), 
    447447        'editor-state-list': [(loc('cad_watcher.py'), 
    448448                               {'attrib-starts': [('setup|0|', 
     
    457457                                'zoom': 0L}), 
    458458                              (loc('cms_watcher.py'), 
    459                                {'attrib-starts': [('extractMessages|0|', 
    460         45)], 
    461                                 'code-line': "                    msgList[id"\ 
    462         "x]['cms']['message']['phase2']['Line2'] + ':' +\n", 
    463                                 'first-line': 39L, 
     459                               {'attrib-starts': [('isEmpty|0|', 
     460        12)], 
     461                                'code-line': '     return cmsitem == ":::::"'\ 
     462        '\n', 
     463                                'first-line': 0L, 
    464464                                'folded-linenos': [], 
    465                                 'sel-line': 54L, 
    466                                 'sel-line-start': 1829L, 
    467                                 'selection_end': 1903L, 
    468                                 'selection_start': 1903L, 
     465                                'sel-line': 13L, 
     466                                'sel-line-start': 324L, 
     467                                'selection_end': 353L, 
     468                                'selection_start': 353L, 
    469469                                'zoom': 0L}), 
    470470                              (loc('logging_service.py'), 
     
    492492                                'selection_start': 183L, 
    493493                                'zoom': 0L})], 
    494         'has-focus': False, 
     494        'has-focus': True, 
    495495        'locked': False}, 
    496496        [loc('cad_watcher.py'), 
     
    498498         loc('logging_service.py'), 
    499499         loc('__main__.py')]), 
    500                                'open_files': [u'__main__.py', 
    501         u'cad_watcher.py', 
     500                               'open_files': [u'cad_watcher.py', 
     501        u'logging_service.py', 
    502502        u'cms_watcher.py', 
    503         u'logging_service.py']}, 
     503        u'__main__.py']}, 
    504504        'saved_notebook_display': None, 
    505505        'split_percents': {0: 0.5}, 
     
    516516                 'traversal_pos': ((0, 
    517517                                    4), 
    518                                    1562884289.035461), 
     518                                   1562892833.554952), 
    519519                 'user_data': {}}, 
    520520        'window-alloc': (29, 
     
    522522                         1197, 
    523523                         722)}]} 
    524 guimgr.recent-documents = [loc('logging_service.py'), 
     524guimgr.recent-documents = [loc('__main__.py'), 
    525525                           loc('cms_watcher.py'), 
    526                            loc('cad_watcher.py'), 
    527                            loc('__main__.py')] 
     526                           loc('logging_service.py'), 
     527                           loc('cad_watcher.py')] 
    528528guimgr.visual-state = {loc('../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\ 
    529529        'ttrib-starts': [('ConfigParser|0|', 
  • trunk/src/tmcsim/application.properties

    r435 r440  
    1 #Wed, 10 Jul 2019 15:20:20 -0700 
     1#Thu, 11 Jul 2019 17:51:05 -0700 
    22 
    3 Application.revision=434 
     3Application.revision=439 
    44 
    55Application.buildnumber=146 
  • trunk/src/tmcsim/cadsimulator/Coordinator.java

    r435 r440  
    758758                if (initials.length() > 0) 
    759759                {//CAD Log Entry, Incident #187, Sharon: REQUEST EXTRA ANCHOVIES 
    760                     output.append("CAD log entry, "); 
     760                    output.append("CAD log, "); 
    761761                    output.append("Incident #" + incident.logNum + ", "); 
    762762                    output.append(initials + ": "); 
Note: See TracChangeset for help on using the changeset viewer.