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

Revision 522, 25.6 KB checked in by jdalbey, 6 years ago (diff)

Unified logger - cad_watcher.py set lastLineNum to zero when fileSize == 0.

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('../../../../../../../../usr/lib/python2.7/ConfigParser.py'),
201        {'attrib-starts': [('ConfigParser|0|',
202                            85),
203                           ('ConfigParser|0|.get|0|',
204                            589)],
205         'code-line': '                raise NoSectionError(section)\n',
206         'first-line': 589L,
207         'folded-linenos': [],
208         'sel-line': 606L,
209         'sel-line-start': 22028L,
210         'selection_end': 22028L,
211         'selection_start': 22028L,
212         'zoom': 0L},
213        1566600751.835139],
214        [loc('activitylog_watcher.py'),
215         {'attrib-starts': [('readFile|0|',
216                             21)],
217          'code-line': "    logfilepath = config.get('Paths', 'ActivityLogPa"\
218                       "th')\n",
219          'first-line': 15L,
220          'folded-linenos': [],
221          'sel-line': 25L,
222          'sel-line-start': 767L,
223          'selection_end': 767L,
224          'selection_start': 767L,
225          'zoom': 0L},
226         1566600765.566783],
227        [loc('../../../config/logging_service.cfg'),
228         {'attrib-starts': [],
229          'code-line': 'UnifiedLogPath = webapps/dynamicdata/\n',
230          'first-line': 0L,
231          'folded-linenos': [],
232          'sel-line': 1L,
233          'sel-line-start': 8L,
234          'selection_end': 22L,
235          'selection_start': 8L,
236          'zoom': 0L},
237         1566600771.661802],
238        [loc('activitylog_watcher.py'),
239         {'attrib-starts': [('readFile|0|',
240                             21)],
241          'code-line': "    logfilepath = config.get('Paths', 'UnifiedLogPat"\
242                       "h')\n",
243          'first-line': 15L,
244          'folded-linenos': [],
245          'sel-line': 25L,
246          'sel-line-start': 767L,
247          'selection_end': 767L,
248          'selection_start': 767L,
249          'zoom': 0L},
250         1566600786.484821],
251        [loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'),
252         {'attrib-starts': [('ConfigParser|0|',
253                             85),
254                            ('ConfigParser|0|.get|0|',
255                             589)],
256          'code-line': '                raise NoSectionError(section)\n',
257          'first-line': 596L,
258          'folded-linenos': [],
259          'sel-line': 606L,
260          'sel-line-start': 22028L,
261          'selection_end': 22028L,
262          'selection_start': 22028L,
263          'zoom': 0L},
264         1566600797.469543],
265        [loc('activitylog_watcher.py'),
266         {'attrib-starts': [('readFile|0|',
267                             21)],
268          'code-line': "    logfilepath = config.get('Paths', 'UnifiedLogPat"\
269                       "h')\n",
270          'first-line': 15L,
271          'folded-linenos': [],
272          'sel-line': 25L,
273          'sel-line-start': 767L,
274          'selection_end': 767L,
275          'selection_start': 767L,
276          'zoom': 0L},
277         1566600824.872938],
278        [loc('__main__.py'),
279         {'attrib-starts': [],
280          'code-line': 'import logging_service, os, ConfigParser\n',
281          'first-line': 0L,
282          'folded-linenos': [],
283          'sel-line': 0L,
284          'sel-line-start': 0L,
285          'selection_end': 40L,
286          'selection_start': 28L,
287          'zoom': 0L},
288         1566600828.88837],
289        [loc('activitylog_watcher.py'),
290         {'attrib-starts': [('readFile|0|',
291                             21)],
292          'code-line': "    logfilepath = config.get('Paths', 'ActivityLogPa"\
293                       "th')\n",
294          'first-line': 15L,
295          'folded-linenos': [],
296          'sel-line': 25L,
297          'sel-line-start': 767L,
298          'selection_end': 814L,
299          'selection_start': 814L,
300          'zoom': 0L},
301         1566600871.549505],
302        [loc('__main__.py'),
303         {'attrib-starts': [],
304          'code-line': 'import logging_service, os, ConfigParser\n',
305          'first-line': 0L,
306          'folded-linenos': [],
307          'sel-line': 0L,
308          'sel-line-start': 0L,
309          'selection_end': 40L,
310          'selection_start': 28L,
311          'zoom': 0L},
312         1566600879.173012],
313        [loc('activitylog_watcher.py'),
314         {'attrib-starts': [('readFile|0|',
315                             21)],
316          'code-line': '    logfilename = "data.json"   #"IncidentActivity.l'\
317                       'og"\n',
318          'first-line': 18L,
319          'folded-linenos': [],
320          'sel-line': 26L,
321          'sel-line-start': 824L,
322          'selection_end': 857L,
323          'selection_start': 857L,
324          'zoom': 0L},
325         1566600913.173925],
326        [loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'),
327         {'attrib-starts': [('ConfigParser|0|',
328                             85),
329                            ('ConfigParser|0|.get|0|',
330                             589)],
331          'code-line': '                raise NoSectionError(section)\n',
332          'first-line': 596L,
333          'folded-linenos': [],
334          'sel-line': 606L,
335          'sel-line-start': 22028L,
336          'selection_end': 22028L,
337          'selection_start': 22028L,
338          'zoom': 0L},
339         1566600921.8293],
340        [loc('activitylog_watcher.py'),
341         {'attrib-starts': [('readFile|0|',
342                             21)],
343          'code-line': '    logfilename = "data.json"   #"IncidentActivity.l'\
344                       'og"\n',
345          'first-line': 18L,
346          'folded-linenos': [],
347          'sel-line': 26L,
348          'sel-line-start': 824L,
349          'selection_end': 857L,
350          'selection_start': 857L,
351          'zoom': 0L},
352         1566600922.721255],
353        [loc('__main__.py'),
354         {'attrib-starts': [],
355          'code-line': 'import logging_service, os, ConfigParser\n',
356          'first-line': 0L,
357          'folded-linenos': [],
358          'sel-line': 0L,
359          'sel-line-start': 0L,
360          'selection_end': 40L,
361          'selection_start': 28L,
362          'zoom': 0L},
363         1566600934.334362],
364        [loc('activitylog_watcher.py'),
365         {'attrib-starts': [('readFile|0|',
366                             21)],
367          'code-line': '    logfilename = "data.json"   #"IncidentActivity.l'\
368                       'og"\n',
369          'first-line': 57L,
370          'folded-linenos': [],
371          'sel-line': 26L,
372          'sel-line-start': 824L,
373          'selection_end': 857L,
374          'selection_start': 857L,
375          'zoom': 0L},
376         1569956230.004631],
377        [loc('logging_service.py'),
378         {'attrib-starts': [('getSimTime|0|',
379                             13)],
380          'code-line': '       print "Proceeding with previous time: ", toHM'\
381                       'S(seconds)\n',
382          'first-line': 27L,
383          'folded-linenos': [],
384          'sel-line': 21L,
385          'sel-line-start': 649L,
386          'selection_end': 649L,
387          'selection_start': 649L,
388          'zoom': 0L},
389         1569956272.961653],
390        [loc('activitylog_watcher.py'),
391         {'attrib-starts': [('readFile|0|',
392                             21)],
393          'code-line': '    logfilename = "data.json"   #"IncidentActivity.l'\
394                       'og"\n',
395          'first-line': 39L,
396          'folded-linenos': [],
397          'sel-line': 26L,
398          'sel-line-start': 824L,
399          'selection_end': 857L,
400          'selection_start': 857L,
401          'zoom': 0L},
402         1569956463.251688],
403        [loc('logging_service.py'),
404         {'attrib-starts': [('getSimTime|0|',
405                             13)],
406          'code-line': '       print "Proceeding with previous time: ", toHM'\
407                       'S(seconds)\n',
408          'first-line': 0L,
409          'folded-linenos': [],
410          'sel-line': 21L,
411          'sel-line-start': 649L,
412          'selection_end': 649L,
413          'selection_start': 649L,
414          'zoom': 0L},
415         1569957016.54503],
416        [loc('__main__.py'),
417         {'attrib-starts': [],
418          'code-line': 'import logging_service, os, ConfigParser\n',
419          'first-line': 0L,
420          'folded-linenos': [],
421          'sel-line': 0L,
422          'sel-line-start': 0L,
423          'selection_end': 40L,
424          'selection_start': 28L,
425          'zoom': 0L},
426         1573490786.397811],
427        [loc('cad_watcher.py'),
428         {'attrib-starts': [('getLogEntries|0|',
429                             24)],
430          'code-line': '        fileSize = os.path.getsize(pathToLog)\n',
431          'first-line': 18L,
432          'folded-linenos': [],
433          'sel-line': 46L,
434          'sel-line-start': 1365L,
435          'selection_end': 1410L,
436          'selection_start': 1410L,
437          'zoom': 0L},
438         1573492071.42135],
439        [loc('cms_watcher.py'),
440         {'attrib-starts': [('readFile|0|',
441                             18)],
442          'code-line': ' \n',
443          'first-line': 6L,
444          'folded-linenos': [],
445          'sel-line': 21L,
446          'sel-line-start': 564L,
447          'selection_end': 565L,
448          'selection_start': 565L,
449          'zoom': 0L},
450         1573492072.884505]],
451        20),
452        'current-loc': loc('cad_watcher.py'),
453        'editor-state-list': [(loc('activitylog_watcher.py'),
454                               {'attrib-starts': [('readFile|0|',
455        21)],
456                                'code-line': '    logfilename = "data.json" '\
457        '  #"IncidentActivity.log"\n',
458                                'first-line': 39L,
459                                'folded-linenos': [],
460                                'sel-line': 26L,
461                                'sel-line-start': 824L,
462                                'selection_end': 857L,
463                                'selection_start': 857L,
464                                'zoom': 0L}),
465                              (loc('cad_watcher.py'),
466                               {'attrib-starts': [('getLogEntries|0|',
467        18)],
468                                'code-line': '            return []\n',
469                                'first-line': 33L,
470                                'folded-linenos': [],
471                                'sel-line': 45L,
472                                'sel-line-start': 1479L,
473                                'selection_end': 1479L,
474                                'selection_start': 1479L,
475                                'zoom': 0L}),
476                              (loc('cms_watcher.py'),
477                               {'attrib-starts': [('readFile|0|',
478        18)],
479                                'code-line': ' \n',
480                                'first-line': 6L,
481                                'folded-linenos': [],
482                                'sel-line': 21L,
483                                'sel-line-start': 564L,
484                                'selection_end': 565L,
485                                'selection_start': 565L,
486                                'zoom': 0L}),
487                              (loc('../../../config/logging_service.cfg'),
488                               {'attrib-starts': [],
489                                'code-line': 'UnifiedLogPath = webapps/dynam'\
490        'icdata/\n',
491                                'first-line': 0L,
492                                'folded-linenos': [],
493                                'sel-line': 1L,
494                                'sel-line-start': 8L,
495                                'selection_end': 22L,
496                                'selection_start': 8L,
497                                'zoom': 0L}),
498                              (loc('logging_service.py'),
499                               {'attrib-starts': [('getSimTime|0|',
500        13)],
501                                'code-line': '       print "Proceeding with '\
502        'previous time: ", toHMS(seconds)\n',
503                                'first-line': 0L,
504                                'folded-linenos': [],
505                                'sel-line': 21L,
506                                'sel-line-start': 649L,
507                                'selection_end': 649L,
508                                'selection_start': 649L,
509                                'zoom': 0L}),
510                              (loc('__main__.py'),
511                               {'attrib-starts': [],
512                                'code-line': 'import logging_service, os, Co'\
513        'nfigParser\n',
514                                'first-line': 0L,
515                                'folded-linenos': [],
516                                'sel-line': 0L,
517                                'sel-line-start': 0L,
518                                'selection_end': 40L,
519                                'selection_start': 28L,
520                                'zoom': 0L})],
521        'has-focus': True,
522        'locked': False},
523        [loc('activitylog_watcher.py'),
524         loc('cad_watcher.py'),
525         loc('cms_watcher.py'),
526         loc('../../../config/logging_service.cfg'),
527         loc('logging_service.py'),
528         loc('__main__.py')]),
529                               'open_files': [u'../../../config/logging_service.cfg',
530        u'activitylog_watcher.py',
531        u'logging_service.py',
532        u'__main__.py',
533        u'cms_watcher.py',
534        u'cad_watcher.py']},
535        'saved_notebook_display': None,
536        'split_percents': {0: 0.5},
537        'splits': 2,
538        'tab_location': 'top',
539        'traversal_pos': ((0,
540                           3),
541                          1566600913.140074),
542        'user_data': {}},
543                 'saved_notebook_display': None,
544                 'split_percents': {},
545                 'splits': 1,
546                 'tab_location': 'left',
547                 'traversal_pos': ((0,
548                                    4),
549                                   1566600923.964362),
550                 'user_data': {}},
551        'window-alloc': (29,
552                         0,
553                         1197,
554                         722)}]}
555guimgr.recent-documents = [loc('cad_watcher.py'),
556                           loc('cms_watcher.py'),
557                           loc('__main__.py'),
558                           loc('logging_service.py'),
559                           loc('activitylog_watcher.py'),
560                           loc('../../../config/logging_service.cfg')]
561guimgr.visual-state = {loc('get_app_properties.py'): {'attrib-starts': [],
562        'code-line': '',
563        'first-line': 0L,
564        'folded-linenos': [],
565        'sel-line': 0L,
566        'sel-line-start': 0L,
567        'selection_end': 0L,
568        'selection_start': 0L,
569        'zoom': 0L},
570                       loc('get_revision'): {'attrib-starts': [],
571        'code-line': '',
572        'first-line': 0L,
573        'folded-linenos': [],
574        'sel-line': 18L,
575        'sel-line-start': 455L,
576        'selection_end': 455L,
577        'selection_start': 455L,
578        'zoom': 0L},
579                       loc('test_logging_service.py'): {'attrib-starts': [('t'\
580        'est_toHMS|0|',
581        2)],
582        'code-line': '    assert toHMS(3601) == "1:00:01"\n',
583        'first-line': 0L,
584        'folded-linenos': [],
585        'sel-line': 6L,
586        'sel-line-start': 158L,
587        'selection_end': 192L,
588        'selection_start': 192L,
589        'zoom': 0L},
590                       loc('../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\
591        'ttrib-starts': [('ConfigParser|0|',
592                          85),
593                         ('ConfigParser|0|.get|0|',
594                          589)],
595        'code-line': '                raise NoSectionError(section)\n',
596        'first-line': 597L,
597        'folded-linenos': [],
598        'sel-line': 606L,
599        'sel-line-start': 22028L,
600        'selection_end': 22028L,
601        'selection_start': 22028L,
602        'zoom': 0L},
603                       loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\
604        'ttrib-starts': [('ConfigParser|0|',
605                          85),
606                         ('ConfigParser|0|.get|0|',
607                          589)],
608        'code-line': '                raise NoSectionError(section)\n',
609        'first-line': 596L,
610        'folded-linenos': [],
611        'sel-line': 606L,
612        'sel-line-start': 22028L,
613        'selection_end': 22028L,
614        'selection_start': 22028L,
615        'zoom': 0L},
616                       loc('../../../../../../../../usr/lib/python2.7/genericpath.py'): {'a'\
617        'ttrib-starts': [('getsize|0|',
618                          54)],
619        'code-line': '    return os.stat(filename).st_size\n',
620        'first-line': 39L,
621        'folded-linenos': [],
622        'sel-line': 56L,
623        'sel-line-start': 1506L,
624        'selection_end': 1506L,
625        'selection_start': 1506L,
626        'zoom': 0L},
627                       loc('../../../../../../../../usr/lib/python2.7/json/decoder.py'): {'a'\
628        'ttrib-starts': [('JSONDecoder|0|',
629                          271),
630                         ('JSONDecoder|0|.raw_decode|0|',
631                          369)],
632        'code-line': '            obj, end = self.scan_once(s, idx)\n',
633        'first-line': 370L,
634        'folded-linenos': [],
635        'sel-line': 379L,
636        'sel-line-start': 13534L,
637        'selection_end': 13534L,
638        'selection_start': 13534L,
639        'zoom': 0L}}
640proj.build-cmd = {None: ('default',
641                         None)}
642proj.env-vars = {None: ('default',
643                        [u''])}
644search.search-history = [u'default directory policy']
Note: See TracBrowser for help on using the repository browser.