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

Revision 452, 21.8 KB checked in by jdalbey, 7 years ago (diff)

Enhance unified logger to use a placeholder for revision number if config file not found.

Line 
1#!wing
2#!version=7.0
3##################################################################
4# Wing project file                                              #
5##################################################################
6[project attributes]
7debug.launch-configs = (2,
8                        {'launch-Dap54cn2qAN7AXZm': ({},
9        {'buildcmd': ('project',
10                      None),
11         'env': ('project',
12                 [u'']),
13         'name': 'launchme',
14         'pyexec': ('project',
15                    u''),
16         'pypath': ('project',
17                    []),
18         'pyrunargs': ('project',
19                       '-u'),
20         'runargs': u'',
21         'rundir': ('custom',
22                    u'/home/jdalbey/Dropbox/TMCrepo/trunk')})})
23proj.directory-list = [{'dirloc': loc('.'),
24                        'excludes': (),
25                        'filter': u'*',
26                        'include_hidden': False,
27                        'recursive': True,
28                        'watch_for_changes': True}]
29proj.file-type = 'normal'
30proj.home-dir = loc('../..')
31proj.launch-config = {loc('__main__.py'): ('custom',
32        (u'',
33         'launch-Dap54cn2qAN7AXZm'))}
34proj.main-file = loc('__main__.py')
35[user attributes]
36debug.show-args-dialog = {loc('__main__.py'): False}
37edit.file-encoding = {loc('get_revision'): 'UTF-8'}
38guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
39                            'windows': [{'name': '0BtsNVOAornvyNAPNOxHAmuDFR'\
40        'v7Dw8l',
41        'size-state': 'maximized',
42        'type': 'dock',
43        'view': {'area': 'tall',
44                 'constraint': None,
45                 'current_pages': [4],
46                 'full-screen': False,
47                 'notebook_display': 'normal',
48                 'notebook_percent': 0.3850187265917603,
49                 'override_title': None,
50                 'pagelist': [('source-assistant',
51                               'tall',
52                               2,
53                               {}),
54                              ('debug-stack',
55                               'tall',
56                               1,
57                               {}),
58                              ('browser',
59                               'tall',
60                               0,
61                               {}),
62                              ('indent',
63                               'tall',
64                               2,
65                               {}),
66                              ('debug-io',
67                               'tall',
68                               0,
69                               {}),
70                              ('project',
71                               'tall',
72                               0,
73                               {'tree-state': {'file-sort-method': 'by name',
74        'list-files-first': False,
75        'tree-states': {'deep': {'expanded-nodes': [(0,),
76        (0,
77         0)],
78                                 'selected-nodes': [(0,
79        0,
80        0)],
81                                 'top-node': (0,)}},
82        'tree-style': 'deep'}})],
83                 'primary_view_state': {'area': 'wide',
84        'constraint': None,
85        'current_pages': [3,
86                          1],
87        'notebook_display': 'normal',
88        'notebook_percent': 0.30000000000000004,
89        'override_title': None,
90        'pagelist': [('batch-search',
91                      'wide',
92                      0,
93                      {'fScope': {'fFileSetName': 'All Source Files',
94                                  'fLocation': None,
95                                  'fRecursive': True,
96                                  'fType': 'documentation'},
97                       'fSearchSpec': {'fEndPos': None,
98                                       'fIncludeLinenos': True,
99                                       'fInterpretBackslashes': False,
100                                       'fMatchCase': False,
101                                       'fOmitBinary': True,
102                                       'fRegexFlags': 42,
103                                       'fReplaceText': '',
104                                       'fReverse': False,
105                                       'fSearchText': u'default directory policy',
106                                       'fStartPos': 0,
107                                       'fStyle': 'text',
108                                       'fWholeWords': False,
109                                       'fWrap': True},
110                       'fUIOptions': {'fAutoBackground': True,
111                                      'fFilePrefix': 'short-file',
112                                      'fFindAfterReplace': True,
113                                      'fInSelection': False,
114                                      'fIncremental': True,
115                                      'fReplaceOnDisk': False,
116                                      'fShowFirstMatch': False,
117                                      'fShowLineno': True,
118                                      'fShowReplaceWidgets': False},
119                       'replace-entry-expanded': False,
120                       'search-entry-expanded': False}),
121                     ('interactive-search',
122                      'wide',
123                      0,
124                      {'fScope': {'fFileSetName': 'All Source Files',
125                                  'fLocation': None,
126                                  'fRecursive': True,
127                                  'fType': 'project-files'},
128                       'fSearchSpec': {'fEndPos': None,
129                                       'fIncludeLinenos': True,
130                                       'fInterpretBackslashes': False,
131                                       'fMatchCase': False,
132                                       'fOmitBinary': True,
133                                       'fRegexFlags': 42,
134                                       'fReplaceText': u'lastLineNum',
135                                       'fReverse': False,
136                                       'fSearchText': u'fileLength',
137                                       'fStartPos': 0,
138                                       'fStyle': 'text',
139                                       'fWholeWords': False,
140                                       'fWrap': True},
141                       'fUIOptions': {'fAutoBackground': True,
142                                      'fFilePrefix': 'short-file',
143                                      'fFindAfterReplace': True,
144                                      'fInSelection': False,
145                                      'fIncremental': True,
146                                      'fReplaceOnDisk': False,
147                                      'fShowFirstMatch': False,
148                                      'fShowLineno': True,
149                                      'fShowReplaceWidgets': True}}),
150                     ('debug-data',
151                      'wide',
152                      0,
153                      {}),
154                     ('debug-exceptions',
155                      'wide',
156                      0,
157                      {}),
158                     ('python-shell',
159                      'wide',
160                      2,
161                      {'active-range': (None,
162        -1,
163        -1),
164                       'attrib-starts': [],
165                       'code-line': '',
166                       'first-line': 0L,
167                       'folded-linenos': [],
168                       'history': {},
169                       'launch-id': None,
170                       'sel-line': 3L,
171                       'sel-line-start': 132L,
172                       'selection_end': 132L,
173                       'selection_start': 132L,
174                       'zoom': 0L}),
175                     ('messages',
176                      'wide',
177                      2,
178                      {'current-domain': 0}),
179                     ('os-command',
180                      'wide',
181                      1,
182                      {'last-percent': 0.8,
183                       'toolbox-percent': 1.0,
184                       'toolbox-tree-sel': ''})],
185        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('__main__.py'),
186        {'attrib-starts': [('main|0|',
187                            2)],
188         'code-line': '    print "revision ",get_app_properties.getRevision('\
189                      ')\n',
190         'first-line': 0L,
191         'folded-linenos': [],
192         'sel-line': 4L,
193         'sel-line-start': 215L,
194         'selection_end': 269L,
195         'selection_start': 269L,
196         'zoom': 0L},
197        1563131297.40217],
198        [loc('logging_service.py'),
199         {'attrib-starts': [],
200          'code-line': 'import cms_watcher, cad_watcher, time, json, ConfigP'\
201                       'arser\n',
202          'first-line': 0L,
203          'folded-linenos': [],
204          'sel-line': 0L,
205          'sel-line-start': 0L,
206          'selection_end': 57L,
207          'selection_start': 57L,
208          'zoom': 0L},
209         1563131307.615114],
210        [loc('get_app_properties.py'),
211         {'attrib-starts': [('getRevision|0|',
212                             14)],
213          'code-line': 'def getRevision(lines):\n',
214          'first-line': 0L,
215          'folded-linenos': [],
216          'sel-line': 14L,
217          'sel-line-start': 382L,
218          'selection_end': 382L,
219          'selection_start': 382L,
220          'zoom': 0L},
221         1563131330.855952],
222        [loc('__main__.py'),
223         {'attrib-starts': [('main|0|',
224                             2)],
225          'code-line': '    print "revision ",get_app_properties.getRevision'\
226                       '()\n',
227          'first-line': 0L,
228          'folded-linenos': [],
229          'sel-line': 4L,
230          'sel-line-start': 215L,
231          'selection_end': 215L,
232          'selection_start': 215L,
233          'zoom': 0L},
234         1563131341.340806],
235        [loc('get_app_properties.py'),
236         {'attrib-starts': [('getRevision|0|',
237                             14)],
238          'code-line': '    lines = getProperties()\n',
239          'first-line': 0L,
240          'folded-linenos': [],
241          'sel-line': 15L,
242          'sel-line-start': 401L,
243          'selection_end': 413L,
244          'selection_start': 413L,
245          'zoom': 0L},
246         1563131376.535666],
247        [loc('__main__.py'),
248         {'attrib-starts': [('main|0|',
249                             2)],
250          'code-line': '    print "Unified Logging Service v"+revNum,"starti'\
251                       'ng from ",os.getcwd()\n',
252          'first-line': 0L,
253          'folded-linenos': [],
254          'sel-line': 4L,
255          'sel-line-start': 198L,
256          'selection_end': 244L,
257          'selection_start': 244L,
258          'zoom': 0L},
259         1563131462.025839],
260        [loc('get_app_properties.py'),
261         {'attrib-starts': [],
262          'code-line': '\n',
263          'first-line': 0L,
264          'folded-linenos': [],
265          'sel-line': 0L,
266          'sel-line-start': 0L,
267          'selection_end': 0L,
268          'selection_start': 0L,
269          'zoom': 0L},
270         1563131503.437265],
271        [loc('__main__.py'),
272         {'attrib-starts': [('main|0|',
273                             2)],
274          'code-line': '    print "Unified Logging Service v"+revNum,"starti'\
275                       'ng from ",os.getcwd()\n',
276          'first-line': 0L,
277          'folded-linenos': [],
278          'sel-line': 4L,
279          'sel-line-start': 198L,
280          'selection_end': 244L,
281          'selection_start': 244L,
282          'zoom': 0L},
283         1563231920.207662],
284        [loc('get_app_properties.py'),
285         {'attrib-starts': [('getProperties|0|',
286                             3)],
287          'code-line': '        print "Error: missing src/tmcsim/application'\
288                       '.properties file."\n',
289          'first-line': 0L,
290          'folded-linenos': [],
291          'sel-line': 8L,
292          'sel-line-start': 173L,
293          'selection_end': 213L,
294          'selection_start': 213L,
295          'zoom': 0L},
296         1563232029.32642],
297        [loc('logging_service.py'),
298         {'attrib-starts': [('startup|0|',
299                             17)],
300          'code-line': '    # get path to output file from configuration\n',
301          'first-line': 9L,
302          'folded-linenos': [],
303          'sel-line': 18L,
304          'sel-line-start': 528L,
305          'selection_end': 721L,
306          'selection_start': 528L,
307          'zoom': 0L},
308         1563232797.935308],
309        [loc('__main__.py'),
310         {'attrib-starts': [('main|0|',
311                             2)],
312          'code-line': '    \n',
313          'first-line': 0L,
314          'folded-linenos': [],
315          'sel-line': 7L,
316          'sel-line-start': 340L,
317          'selection_end': 344L,
318          'selection_start': 344L,
319          'zoom': 0L},
320         1563232895.220896],
321        [loc('get_app_properties.py'),
322         {'attrib-starts': [],
323          'code-line': '# Obsolete - moved to config file instead.\n',
324          'first-line': 0L,
325          'folded-linenos': [],
326          'sel-line': 0L,
327          'sel-line-start': 0L,
328          'selection_end': 42L,
329          'selection_start': 42L,
330          'zoom': 0L},
331         1563232919.766056],
332        [loc('__main__.py'),
333         {'attrib-starts': [('main|0|',
334                             2)],
335          'code-line': "    config.read('config/application_properties.cf')"\
336                       "\n",
337          'first-line': 0L,
338          'folded-linenos': [],
339          'sel-line': 5L,
340          'sel-line-start': 232L,
341          'selection_end': 281L,
342          'selection_start': 281L,
343          'zoom': 0L},
344         1563294795.82432],
345        [loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'),
346         {'attrib-starts': [('ConfigParser|0|',
347                             85),
348                            ('ConfigParser|0|.get|0|',
349                             589)],
350          'code-line': '                raise NoSectionError(section)\n',
351          'first-line': 601L,
352          'folded-linenos': [],
353          'sel-line': 606L,
354          'sel-line-start': 22028L,
355          'selection_end': 22028L,
356          'selection_start': 22028L,
357          'zoom': 0L},
358         1563294818.055248],
359        [loc('__main__.py'),
360         {'attrib-starts': [('main|0|',
361                             2)],
362          'code-line': '    except:  # If config file not found, use a quest'\
363                       'ion mark placeholder \n',
364          'first-line': 0L,
365          'folded-linenos': [],
366          'sel-line': 8L,
367          'sel-line-start': 356L,
368          'selection_end': 417L,
369          'selection_start': 417L,
370          'zoom': 0L},
371         1563294949.099012],
372        [loc('logging_service.py'),
373         {'attrib-starts': [('startup|0|',
374                             17)],
375          'code-line': 'def startup():\n',
376          'first-line': 12L,
377          'folded-linenos': [],
378          'sel-line': 17L,
379          'sel-line-start': 513L,
380          'selection_end': 527L,
381          'selection_start': 527L,
382          'zoom': 0L},
383         1563295110.747974],
384        [loc('get_app_properties.py'),
385         {'attrib-starts': [],
386          'code-line': '',
387          'first-line': 0L,
388          'folded-linenos': [],
389          'sel-line': 0L,
390          'sel-line-start': 0L,
391          'selection_end': 0L,
392          'selection_start': 0L,
393          'zoom': 0L},
394         1563295114.739899],
395        [loc('logging_service.py'),
396         {'attrib-starts': [('startup|0|',
397                             17)],
398          'code-line': 'def startup():\n',
399          'first-line': 12L,
400          'folded-linenos': [],
401          'sel-line': 17L,
402          'sel-line-start': 513L,
403          'selection_end': 527L,
404          'selection_start': 527L,
405          'zoom': 0L},
406         1563295120.252652],
407        [loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'),
408         {'attrib-starts': [('ConfigParser|0|',
409                             85),
410                            ('ConfigParser|0|.get|0|',
411                             589)],
412          'code-line': '                raise NoSectionError(section)\n',
413          'first-line': 601L,
414          'folded-linenos': [],
415          'sel-line': 606L,
416          'sel-line-start': 22028L,
417          'selection_end': 22028L,
418          'selection_start': 22028L,
419          'zoom': 0L},
420         1563295122.349933],
421        [loc('logging_service.py'),
422         {'attrib-starts': [('startup|0|',
423                             17)],
424          'code-line': 'def startup():\n',
425          'first-line': 12L,
426          'folded-linenos': [],
427          'sel-line': 17L,
428          'sel-line-start': 513L,
429          'selection_end': 527L,
430          'selection_start': 527L,
431          'zoom': 0L},
432         1563295126.806403]],
433        20),
434        'current-loc': loc('__main__.py'),
435        'editor-state-list': [(loc('cad_watcher.py'),
436                               {'attrib-starts': [],
437                                'code-line': '# Read the cad comments log \n',
438                                'first-line': 15L,
439                                'folded-linenos': [],
440                                'sel-line': 19L,
441                                'sel-line-start': 546L,
442                                'selection_end': 838L,
443                                'selection_start': 546L,
444                                'zoom': 0L}),
445                              (loc('cms_watcher.py'),
446                               {'attrib-starts': [('isEmpty|0|',
447        12)],
448                                'code-line': '     return cmsitem == ":::::"'\
449        '\n',
450                                'first-line': 0L,
451                                'folded-linenos': [],
452                                'sel-line': 13L,
453                                'sel-line-start': 324L,
454                                'selection_end': 353L,
455                                'selection_start': 353L,
456                                'zoom': 0L}),
457                              (loc('logging_service.py'),
458                               {'attrib-starts': [('startup|0|',
459        17)],
460                                'code-line': 'def startup():\n',
461                                'first-line': 12L,
462                                'folded-linenos': [],
463                                'sel-line': 17L,
464                                'sel-line-start': 513L,
465                                'selection_end': 527L,
466                                'selection_start': 527L,
467                                'zoom': 0L}),
468                              (loc('__main__.py'),
469                               {'attrib-starts': [('main|0|',
470        2)],
471                                'code-line': '    except:  # If config file '\
472        'not found, use a question mark placeholder \n',
473                                'first-line': 0L,
474                                'folded-linenos': [],
475                                'sel-line': 8L,
476                                'sel-line-start': 356L,
477                                'selection_end': 417L,
478                                'selection_start': 417L,
479                                'zoom': 0L})],
480        'has-focus': True,
481        'locked': False},
482        [loc('cad_watcher.py'),
483         loc('cms_watcher.py'),
484         loc('logging_service.py'),
485         loc('__main__.py')]),
486                               'open_files': [u'cad_watcher.py',
487        u'cms_watcher.py',
488        u'logging_service.py',
489        u'__main__.py']},
490        'saved_notebook_display': None,
491        'split_percents': {0: 0.5},
492        'splits': 2,
493        'tab_location': 'top',
494        'traversal_pos': ((0,
495                           3),
496                          1563294795.772892),
497        'user_data': {}},
498                 'saved_notebook_display': None,
499                 'split_percents': {},
500                 'splits': 1,
501                 'tab_location': 'left',
502                 'traversal_pos': ((0,
503                                    4),
504                                   1563295152.502479),
505                 'user_data': {}},
506        'window-alloc': (29,
507                         0,
508                         1197,
509                         722)}]}
510guimgr.recent-documents = [loc('__main__.py'),
511                           loc('logging_service.py'),
512                           loc('cad_watcher.py'),
513                           loc('cms_watcher.py')]
514guimgr.visual-state = {loc('get_app_properties.py'): {'attrib-starts': [],
515        'code-line': '',
516        'first-line': 0L,
517        'folded-linenos': [],
518        'sel-line': 0L,
519        'sel-line-start': 0L,
520        'selection_end': 0L,
521        'selection_start': 0L,
522        'zoom': 0L},
523                       loc('get_revision'): {'attrib-starts': [],
524        'code-line': '',
525        'first-line': 0L,
526        'folded-linenos': [],
527        'sel-line': 18L,
528        'sel-line-start': 455L,
529        'selection_end': 455L,
530        'selection_start': 455L,
531        'zoom': 0L},
532                       loc('../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\
533        'ttrib-starts': [('ConfigParser|0|',
534                          85),
535                         ('ConfigParser|0|.get|0|',
536                          589)],
537        'code-line': '                raise NoSectionError(section)\n',
538        'first-line': 597L,
539        'folded-linenos': [],
540        'sel-line': 606L,
541        'sel-line-start': 22028L,
542        'selection_end': 22028L,
543        'selection_start': 22028L,
544        'zoom': 0L},
545                       loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\
546        'ttrib-starts': [('ConfigParser|0|',
547                          85),
548                         ('ConfigParser|0|.get|0|',
549                          589)],
550        'code-line': '                raise NoSectionError(section)\n',
551        'first-line': 601L,
552        'folded-linenos': [],
553        'sel-line': 606L,
554        'sel-line-start': 22028L,
555        'selection_end': 22028L,
556        'selection_start': 22028L,
557        'zoom': 0L}}
558proj.build-cmd = {None: ('default',
559                         None)}
560proj.env-vars = {None: ('default',
561                        [u''])}
562search.search-history = [u'default directory policy']
Note: See TracBrowser for help on using the repository browser.