source: tmcsimulator/trunk/src/python/unifiedlogger/wing_project.wpr @ 479

Revision 479, 25.6 KB checked in by jdalbey, 7 years ago (diff)

Update actitivylog watcher to obtain path from separate entry in config file. Because in production, the path will be in a separate directory from other log files.

Line 
1#!wing
2#!version=7.0
3##################################################################
4# Wing project file                                              #
5##################################################################
6[project attributes]
7debug.launch-configs = (2,
8                        {'launch-79fWcT8eQm1A3xyz': ({},
9        {'buildcmd': ('project',
10                      None),
11         'env': ('project',
12                 [u'']),
13         'name': 'unit test',
14         'pyexec': ('custom',
15                    u'/usr/bin/pytest'),
16         'pypath': ('project',
17                    []),
18         'pyrunargs': ('project',
19                       '-u'),
20         'runargs': u'',
21         'rundir': ('custom',
22                    u'/home/jdalbey/Dropbox/TMCrepo/trunk/src/python/unifiedlogger')}),
23                         'launch-Dap54cn2qAN7AXZm': ({},
24        {'buildcmd': ('project',
25                      None),
26         'env': ('project',
27                 [u'']),
28         'name': 'launchme',
29         'pyexec': ('project',
30                    u''),
31         'pypath': ('project',
32                    []),
33         'pyrunargs': ('project',
34                       '-u'),
35         'runargs': u'',
36         'rundir': ('custom',
37                    u'/home/jdalbey/Dropbox/TMCrepo/trunk')})})
38proj.directory-list = [{'dirloc': loc('.'),
39                        'excludes': (),
40                        'filter': u'*',
41                        'include_hidden': False,
42                        'recursive': True,
43                        'watch_for_changes': True}]
44proj.file-type = 'normal'
45proj.home-dir = loc('../..')
46proj.launch-config = {loc('__main__.py'): ('custom',
47        (u'',
48         'launch-Dap54cn2qAN7AXZm'))}
49[user attributes]
50debug.show-args-dialog = {loc('__main__.py'): False}
51edit.file-encoding = {loc('get_revision'): 'UTF-8',
52                      loc('test_logging_service.py'): 'UTF-8'}
53guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
54                            'windows': [{'name': '0BtsNVOAornvyNAPNOxHAmuDFR'\
55        'v7Dw8l',
56        'size-state': 'maximized',
57        'type': 'dock',
58        'view': {'area': 'tall',
59                 'constraint': None,
60                 'current_pages': [4],
61                 'full-screen': False,
62                 'notebook_display': 'normal',
63                 'notebook_percent': 0.2564559216384684,
64                 'override_title': None,
65                 'pagelist': [('source-assistant',
66                               'tall',
67                               2,
68                               {}),
69                              ('debug-stack',
70                               'tall',
71                               1,
72                               {}),
73                              ('browser',
74                               'tall',
75                               0,
76                               {}),
77                              ('indent',
78                               'tall',
79                               2,
80                               {}),
81                              ('debug-io',
82                               'tall',
83                               0,
84                               {}),
85                              ('project',
86                               'tall',
87                               0,
88                               {'tree-state': {'file-sort-method': 'by name',
89        'list-files-first': False,
90        'tree-states': {'deep': {'expanded-nodes': [(0,),
91        (0,
92         0)],
93                                 'selected-nodes': [(0,
94        0,
95        0)],
96                                 'top-node': (0,)}},
97        'tree-style': 'deep'}})],
98                 'primary_view_state': {'area': 'wide',
99        'constraint': None,
100        'current_pages': [3,
101                          1],
102        'notebook_display': 'normal',
103        'notebook_percent': 0.30000000000000004,
104        'override_title': None,
105        'pagelist': [('batch-search',
106                      'wide',
107                      0,
108                      {'fScope': {'fFileSetName': 'All Source Files',
109                                  'fLocation': None,
110                                  'fRecursive': True,
111                                  'fType': 'documentation'},
112                       'fSearchSpec': {'fEndPos': None,
113                                       'fIncludeLinenos': True,
114                                       'fInterpretBackslashes': False,
115                                       'fMatchCase': False,
116                                       'fOmitBinary': True,
117                                       'fRegexFlags': 42,
118                                       'fReplaceText': '',
119                                       'fReverse': False,
120                                       'fSearchText': u'default directory policy',
121                                       'fStartPos': 0,
122                                       'fStyle': 'text',
123                                       'fWholeWords': False,
124                                       'fWrap': True},
125                       'fUIOptions': {'fAutoBackground': True,
126                                      'fFilePrefix': 'short-file',
127                                      'fFindAfterReplace': True,
128                                      'fInSelection': False,
129                                      'fIncremental': True,
130                                      'fReplaceOnDisk': False,
131                                      'fShowFirstMatch': False,
132                                      'fShowLineno': True,
133                                      'fShowReplaceWidgets': False},
134                       'replace-entry-expanded': False,
135                       'search-entry-expanded': False}),
136                     ('interactive-search',
137                      'wide',
138                      0,
139                      {'fScope': {'fFileSetName': 'All Source Files',
140                                  'fLocation': None,
141                                  'fRecursive': True,
142                                  'fType': 'project-files'},
143                       'fSearchSpec': {'fEndPos': None,
144                                       'fIncludeLinenos': True,
145                                       'fInterpretBackslashes': False,
146                                       'fMatchCase': False,
147                                       'fOmitBinary': True,
148                                       'fRegexFlags': 42,
149                                       'fReplaceText': u'lastLineNum',
150                                       'fReverse': False,
151                                       'fSearchText': u'fileLength',
152                                       'fStartPos': 0,
153                                       'fStyle': 'text',
154                                       'fWholeWords': False,
155                                       'fWrap': True},
156                       'fUIOptions': {'fAutoBackground': True,
157                                      'fFilePrefix': 'short-file',
158                                      'fFindAfterReplace': True,
159                                      'fInSelection': False,
160                                      'fIncremental': True,
161                                      'fReplaceOnDisk': False,
162                                      'fShowFirstMatch': False,
163                                      'fShowLineno': True,
164                                      'fShowReplaceWidgets': True}}),
165                     ('debug-data',
166                      'wide',
167                      0,
168                      {}),
169                     ('debug-exceptions',
170                      'wide',
171                      0,
172                      {}),
173                     ('python-shell',
174                      'wide',
175                      2,
176                      {'active-range': (None,
177        -1,
178        -1),
179                       'attrib-starts': [],
180                       'code-line': '',
181                       'first-line': 0L,
182                       'folded-linenos': [],
183                       'history': {},
184                       'launch-id': None,
185                       'sel-line': 3L,
186                       'sel-line-start': 132L,
187                       'selection_end': 132L,
188                       'selection_start': 132L,
189                       'zoom': 0L}),
190                     ('messages',
191                      'wide',
192                      2,
193                      {'current-domain': 0}),
194                     ('os-command',
195                      'wide',
196                      1,
197                      {'last-percent': 0.8,
198                       'toolbox-percent': 1.0,
199                       'toolbox-tree-sel': ''})],
200        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('../../../config/logging_service.cfg'),
201        {'attrib-starts': [],
202         'code-line': 'ActivityLogPath = webapps/dynamicdata/\n',
203         'first-line': 0L,
204         'folded-linenos': [],
205         'sel-line': 2L,
206         'sel-line-start': 46L,
207         'selection_end': 84L,
208         'selection_start': 84L,
209         'zoom': 0L},
210        1566600666.088779],
211        [loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'),
212         {'attrib-starts': [('ConfigParser|0|',
213                             85),
214                            ('ConfigParser|0|.get|0|',
215                             589)],
216          'code-line': '                raise NoSectionError(section)\n',
217          'first-line': 589L,
218          'folded-linenos': [],
219          'sel-line': 606L,
220          'sel-line-start': 22028L,
221          'selection_end': 22028L,
222          'selection_start': 22028L,
223          'zoom': 0L},
224         1566600669.118991],
225        [loc('../../../config/logging_service.cfg'),
226         {'attrib-starts': [],
227          'code-line': 'ActivityLogPath = webapps/dynamicdata/\n',
228          'first-line': 0L,
229          'folded-linenos': [],
230          'sel-line': 2L,
231          'sel-line-start': 46L,
232          'selection_end': 84L,
233          'selection_start': 84L,
234          'zoom': 0L},
235         1566600690.155041],
236        [loc('activitylog_watcher.py'),
237         {'attrib-starts': [],
238          'code-line': '#from copy import deepcopy\n',
239          'first-line': 15L,
240          'folded-linenos': [],
241          'sel-line': 1L,
242          'sel-line-start': 32L,
243          'selection_end': 33L,
244          'selection_start': 33L,
245          'zoom': 0L},
246         1566600696.93349],
247        [loc('logging_service.py'),
248         {'attrib-starts': [('getSimTime|0|',
249                             13)],
250          'code-line': '       print "Proceeding with previous time: ", toHM'\
251                       'S(seconds)\n',
252          'first-line': 3L,
253          'folded-linenos': [],
254          'sel-line': 21L,
255          'sel-line-start': 649L,
256          'selection_end': 649L,
257          'selection_start': 649L,
258          'zoom': 0L},
259         1566600699.578844],
260        [loc('../../../config/logging_service.cfg'),
261         {'attrib-starts': [],
262          'code-line': 'ActivityLogPath = webapps/dynamicdata/\n',
263          'first-line': 0L,
264          'folded-linenos': [],
265          'sel-line': 2L,
266          'sel-line-start': 46L,
267          'selection_end': 84L,
268          'selection_start': 84L,
269          'zoom': 0L},
270         1566600715.315246],
271        [loc('activitylog_watcher.py'),
272         {'attrib-starts': [('readFile|0|',
273                             21)],
274          'code-line': "    logfilepath = config.get('Paths', 'ActivityLogPa"\
275                       "th')\n",
276          'first-line': 15L,
277          'folded-linenos': [],
278          'sel-line': 25L,
279          'sel-line-start': 767L,
280          'selection_end': 767L,
281          'selection_start': 767L,
282          'zoom': 0L},
283         1566600747.038673],
284        [loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'),
285         {'attrib-starts': [('ConfigParser|0|',
286                             85),
287                            ('ConfigParser|0|.get|0|',
288                             589)],
289          'code-line': '                raise NoSectionError(section)\n',
290          'first-line': 589L,
291          'folded-linenos': [],
292          'sel-line': 606L,
293          'sel-line-start': 22028L,
294          'selection_end': 22028L,
295          'selection_start': 22028L,
296          'zoom': 0L},
297         1566600751.835139],
298        [loc('activitylog_watcher.py'),
299         {'attrib-starts': [('readFile|0|',
300                             21)],
301          'code-line': "    logfilepath = config.get('Paths', 'ActivityLogPa"\
302                       "th')\n",
303          'first-line': 15L,
304          'folded-linenos': [],
305          'sel-line': 25L,
306          'sel-line-start': 767L,
307          'selection_end': 767L,
308          'selection_start': 767L,
309          'zoom': 0L},
310         1566600765.566783],
311        [loc('../../../config/logging_service.cfg'),
312         {'attrib-starts': [],
313          'code-line': 'UnifiedLogPath = webapps/dynamicdata/\n',
314          'first-line': 0L,
315          'folded-linenos': [],
316          'sel-line': 1L,
317          'sel-line-start': 8L,
318          'selection_end': 22L,
319          'selection_start': 8L,
320          'zoom': 0L},
321         1566600771.661802],
322        [loc('activitylog_watcher.py'),
323         {'attrib-starts': [('readFile|0|',
324                             21)],
325          'code-line': "    logfilepath = config.get('Paths', 'UnifiedLogPat"\
326                       "h')\n",
327          'first-line': 15L,
328          'folded-linenos': [],
329          'sel-line': 25L,
330          'sel-line-start': 767L,
331          'selection_end': 767L,
332          'selection_start': 767L,
333          'zoom': 0L},
334         1566600786.484821],
335        [loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'),
336         {'attrib-starts': [('ConfigParser|0|',
337                             85),
338                            ('ConfigParser|0|.get|0|',
339                             589)],
340          'code-line': '                raise NoSectionError(section)\n',
341          'first-line': 596L,
342          'folded-linenos': [],
343          'sel-line': 606L,
344          'sel-line-start': 22028L,
345          'selection_end': 22028L,
346          'selection_start': 22028L,
347          'zoom': 0L},
348         1566600797.469543],
349        [loc('activitylog_watcher.py'),
350         {'attrib-starts': [('readFile|0|',
351                             21)],
352          'code-line': "    logfilepath = config.get('Paths', 'UnifiedLogPat"\
353                       "h')\n",
354          'first-line': 15L,
355          'folded-linenos': [],
356          'sel-line': 25L,
357          'sel-line-start': 767L,
358          'selection_end': 767L,
359          'selection_start': 767L,
360          'zoom': 0L},
361         1566600824.872938],
362        [loc('__main__.py'),
363         {'attrib-starts': [],
364          'code-line': 'import logging_service, os, ConfigParser\n',
365          'first-line': 0L,
366          'folded-linenos': [],
367          'sel-line': 0L,
368          'sel-line-start': 0L,
369          'selection_end': 40L,
370          'selection_start': 28L,
371          'zoom': 0L},
372         1566600828.88837],
373        [loc('activitylog_watcher.py'),
374         {'attrib-starts': [('readFile|0|',
375                             21)],
376          'code-line': "    logfilepath = config.get('Paths', 'ActivityLogPa"\
377                       "th')\n",
378          'first-line': 15L,
379          'folded-linenos': [],
380          'sel-line': 25L,
381          'sel-line-start': 767L,
382          'selection_end': 814L,
383          'selection_start': 814L,
384          'zoom': 0L},
385         1566600871.549505],
386        [loc('__main__.py'),
387         {'attrib-starts': [],
388          'code-line': 'import logging_service, os, ConfigParser\n',
389          'first-line': 0L,
390          'folded-linenos': [],
391          'sel-line': 0L,
392          'sel-line-start': 0L,
393          'selection_end': 40L,
394          'selection_start': 28L,
395          'zoom': 0L},
396         1566600879.173012],
397        [loc('activitylog_watcher.py'),
398         {'attrib-starts': [('readFile|0|',
399                             21)],
400          'code-line': '    logfilename = "data.json"   #"IncidentActivity.l'\
401                       'og"\n',
402          'first-line': 18L,
403          'folded-linenos': [],
404          'sel-line': 26L,
405          'sel-line-start': 824L,
406          'selection_end': 857L,
407          'selection_start': 857L,
408          'zoom': 0L},
409         1566600913.173925],
410        [loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'),
411         {'attrib-starts': [('ConfigParser|0|',
412                             85),
413                            ('ConfigParser|0|.get|0|',
414                             589)],
415          'code-line': '                raise NoSectionError(section)\n',
416          'first-line': 596L,
417          'folded-linenos': [],
418          'sel-line': 606L,
419          'sel-line-start': 22028L,
420          'selection_end': 22028L,
421          'selection_start': 22028L,
422          'zoom': 0L},
423         1566600921.8293],
424        [loc('activitylog_watcher.py'),
425         {'attrib-starts': [('readFile|0|',
426                             21)],
427          'code-line': '    logfilename = "data.json"   #"IncidentActivity.l'\
428                       'og"\n',
429          'first-line': 18L,
430          'folded-linenos': [],
431          'sel-line': 26L,
432          'sel-line-start': 824L,
433          'selection_end': 857L,
434          'selection_start': 857L,
435          'zoom': 0L},
436         1566600922.721255],
437        [loc('__main__.py'),
438         {'attrib-starts': [],
439          'code-line': 'import logging_service, os, ConfigParser\n',
440          'first-line': 0L,
441          'folded-linenos': [],
442          'sel-line': 0L,
443          'sel-line-start': 0L,
444          'selection_end': 40L,
445          'selection_start': 28L,
446          'zoom': 0L},
447         1566600934.334362]],
448        20),
449        'current-loc': loc('activitylog_watcher.py'),
450        'editor-state-list': [(loc('activitylog_watcher.py'),
451                               {'attrib-starts': [('readFile|0|',
452        21)],
453                                'code-line': '    logfilename = "data.json" '\
454        '  #"IncidentActivity.log"\n',
455                                'first-line': 18L,
456                                'folded-linenos': [],
457                                'sel-line': 26L,
458                                'sel-line-start': 824L,
459                                'selection_end': 857L,
460                                'selection_start': 857L,
461                                'zoom': 0L}),
462                              (loc('cad_watcher.py'),
463                               {'attrib-starts': [('getLogEntries|0|',
464        24)],
465                                'code-line': '            print pathToLog + '\
466        '" missing: assuming reset."\n',
467                                'first-line': 45L,
468                                'folded-linenos': [],
469                                'sel-line': 37L,
470                                'sel-line-start': 1087L,
471                                'selection_end': 1143L,
472                                'selection_start': 1143L,
473                                'zoom': 0L}),
474                              (loc('cms_watcher.py'),
475                               {'attrib-starts': [('readFile|0|',
476        18)],
477                                'code-line': ' \n',
478                                'first-line': 6L,
479                                'folded-linenos': [],
480                                'sel-line': 21L,
481                                'sel-line-start': 564L,
482                                'selection_end': 565L,
483                                'selection_start': 565L,
484                                'zoom': 0L}),
485                              (loc('../../../config/logging_service.cfg'),
486                               {'attrib-starts': [],
487                                'code-line': 'UnifiedLogPath = webapps/dynam'\
488        'icdata/\n',
489                                'first-line': 0L,
490                                'folded-linenos': [],
491                                'sel-line': 1L,
492                                'sel-line-start': 8L,
493                                'selection_end': 22L,
494                                'selection_start': 8L,
495                                'zoom': 0L}),
496                              (loc('logging_service.py'),
497                               {'attrib-starts': [('getSimTime|0|',
498        13)],
499                                'code-line': '       print "Proceeding with '\
500        'previous time: ", toHMS(seconds)\n',
501                                'first-line': 3L,
502                                'folded-linenos': [],
503                                'sel-line': 21L,
504                                'sel-line-start': 649L,
505                                'selection_end': 649L,
506                                'selection_start': 649L,
507                                'zoom': 0L}),
508                              (loc('__main__.py'),
509                               {'attrib-starts': [],
510                                'code-line': 'import logging_service, os, Co'\
511        'nfigParser\n',
512                                'first-line': 0L,
513                                'folded-linenos': [],
514                                'sel-line': 0L,
515                                'sel-line-start': 0L,
516                                'selection_end': 40L,
517                                'selection_start': 28L,
518                                'zoom': 0L})],
519        'has-focus': True,
520        'locked': False},
521        [loc('activitylog_watcher.py'),
522         loc('cad_watcher.py'),
523         loc('cms_watcher.py'),
524         loc('../../../config/logging_service.cfg'),
525         loc('logging_service.py'),
526         loc('__main__.py')]),
527                               'open_files': [u'cms_watcher.py',
528        u'cad_watcher.py',
529        u'logging_service.py',
530        u'../../../config/logging_service.cfg',
531        u'__main__.py',
532        u'activitylog_watcher.py']},
533        'saved_notebook_display': None,
534        'split_percents': {0: 0.5},
535        'splits': 2,
536        'tab_location': 'top',
537        'traversal_pos': ((0,
538                           3),
539                          1566600913.140074),
540        'user_data': {}},
541                 'saved_notebook_display': None,
542                 'split_percents': {},
543                 'splits': 1,
544                 'tab_location': 'left',
545                 'traversal_pos': ((0,
546                                    4),
547                                   1566600923.964362),
548                 'user_data': {}},
549        'window-alloc': (29,
550                         0,
551                         1197,
552                         722)}]}
553guimgr.recent-documents = [loc('activitylog_watcher.py'),
554                           loc('__main__.py'),
555                           loc('../../../config/logging_service.cfg'),
556                           loc('logging_service.py'),
557                           loc('cad_watcher.py'),
558                           loc('cms_watcher.py')]
559guimgr.visual-state = {loc('get_app_properties.py'): {'attrib-starts': [],
560        'code-line': '',
561        'first-line': 0L,
562        'folded-linenos': [],
563        'sel-line': 0L,
564        'sel-line-start': 0L,
565        'selection_end': 0L,
566        'selection_start': 0L,
567        'zoom': 0L},
568                       loc('get_revision'): {'attrib-starts': [],
569        'code-line': '',
570        'first-line': 0L,
571        'folded-linenos': [],
572        'sel-line': 18L,
573        'sel-line-start': 455L,
574        'selection_end': 455L,
575        'selection_start': 455L,
576        'zoom': 0L},
577                       loc('test_logging_service.py'): {'attrib-starts': [('t'\
578        'est_toHMS|0|',
579        2)],
580        'code-line': '    assert toHMS(3601) == "1:00:01"\n',
581        'first-line': 0L,
582        'folded-linenos': [],
583        'sel-line': 6L,
584        'sel-line-start': 158L,
585        'selection_end': 192L,
586        'selection_start': 192L,
587        'zoom': 0L},
588                       loc('../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\
589        'ttrib-starts': [('ConfigParser|0|',
590                          85),
591                         ('ConfigParser|0|.get|0|',
592                          589)],
593        'code-line': '                raise NoSectionError(section)\n',
594        'first-line': 597L,
595        'folded-linenos': [],
596        'sel-line': 606L,
597        'sel-line-start': 22028L,
598        'selection_end': 22028L,
599        'selection_start': 22028L,
600        'zoom': 0L},
601                       loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\
602        'ttrib-starts': [('ConfigParser|0|',
603                          85),
604                         ('ConfigParser|0|.get|0|',
605                          589)],
606        'code-line': '                raise NoSectionError(section)\n',
607        'first-line': 596L,
608        'folded-linenos': [],
609        'sel-line': 606L,
610        'sel-line-start': 22028L,
611        'selection_end': 22028L,
612        'selection_start': 22028L,
613        'zoom': 0L},
614                       loc('../../../../../../../../usr/lib/python2.7/genericpath.py'): {'a'\
615        'ttrib-starts': [('getsize|0|',
616                          54)],
617        'code-line': '    return os.stat(filename).st_size\n',
618        'first-line': 39L,
619        'folded-linenos': [],
620        'sel-line': 56L,
621        'sel-line-start': 1506L,
622        'selection_end': 1506L,
623        'selection_start': 1506L,
624        'zoom': 0L},
625                       loc('../../../../../../../../usr/lib/python2.7/json/decoder.py'): {'a'\
626        'ttrib-starts': [('JSONDecoder|0|',
627                          271),
628                         ('JSONDecoder|0|.raw_decode|0|',
629                          369)],
630        'code-line': '            obj, end = self.scan_once(s, idx)\n',
631        'first-line': 370L,
632        'folded-linenos': [],
633        'sel-line': 379L,
634        'sel-line-start': 13534L,
635        'selection_end': 13534L,
636        'selection_start': 13534L,
637        'zoom': 0L}}
638proj.build-cmd = {None: ('default',
639                         None)}
640proj.env-vars = {None: ('default',
641                        [u''])}
642search.search-history = [u'default directory policy']
Note: See TracBrowser for help on using the repository browser.