Changeset 444 in tmcsimulator
- Timestamp:
- 07/14/2019 10:38:30 AM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 1 added
- 3 edited
-
python/unifiedlogger/__main__.py (modified) (1 diff)
-
python/unifiedlogger/get_app_properties.py (added)
-
python/unifiedlogger/wing_project.wpr (modified) (9 diffs)
-
tmcsim/application.properties (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python/unifiedlogger/__main__.py
r439 r444 1 import logging_service, os 1 import logging_service, os, get_app_properties 2 2 # This main module is provided so the application can be conveniently bundled for deployment 3 3 def main(): 4 print "Unified Logging Service starting from ",os.getcwd() 4 revNum = get_app_properties.getRevision() 5 print "Unified Logging Service v"+revNum,"starting from ",os.getcwd() 5 6 logging_service.startup() 6 7 -
trunk/src/python/unifiedlogger/wing_project.wpr
r443 r444 35 35 [user attributes] 36 36 debug.show-args-dialog = {loc('__main__.py'): False} 37 edit.file-encoding = {loc('get_revision'): 'UTF-8'} 37 38 guimgr.overall-gui-state = {'windowing-policy': 'combined-window', 38 39 'windows': [{'name': '0BtsNVOAornvyNAPNOxHAmuDFR'\ … … 84 85 'current_pages': [3, 85 86 1], 86 'notebook_display': ' hidden',87 'notebook_percent': 0. 0,87 'notebook_display': 'normal', 88 'notebook_percent': 0.30000000000000004, 88 89 'override_title': None, 89 90 'pagelist': [('batch-search', … … 182 183 'toolbox-percent': 1.0, 183 184 'toolbox-tree-sel': ''})], 184 'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('../../../../../../../usr/lib/wing-personal7/doc/TOC'), 185 {'displayed-index': 102, 186 'viewer-state': {'history': [-1, 187 60, 188 -1, 189 6, 190 1, 191 -1, 192 102, 193 234], 194 'history-pos': 6, 195 'index': 102, 196 'top': 0, 197 'top-left-pos': 5971}}, 198 1562879090.358421], 199 [loc('../../../../../../../usr/lib/wing-personal7/doc/TOC'), 200 {'displayed-index': 234, 201 'viewer-state': {'history': [-1, 202 60, 203 -1, 204 6, 205 1, 206 -1, 207 102, 208 234], 209 'history-pos': 7, 210 'index': 234, 211 'top': 0, 212 'top-left-pos': 20113}}, 213 1562879176.767588], 214 [loc('../../../../../../../usr/lib/python2.7/ConfigParser.py'), 215 {'attrib-starts': [('ConfigParser|0|', 216 85), 217 ('ConfigParser|0|.get|0|', 218 589)], 219 'code-line': ' raise NoSectionError(section)\n', 220 'first-line': 597L, 221 'folded-linenos': [], 222 'sel-line': 606L, 223 'sel-line-start': 22028L, 224 'selection_end': 22028L, 225 'selection_start': 22028L, 226 'zoom': 0L}, 227 1562879399.049104], 228 [loc('../../../../../../../usr/lib/wing-personal7/doc/TOC'), 229 {'displayed-index': 234, 230 'viewer-state': {'history': [-1, 231 60, 232 -1, 233 6, 234 1, 235 -1, 236 102, 237 234], 238 'history-pos': 7, 239 'index': 234, 240 'top': 0, 241 'top-left-pos': 101}}, 242 1562879632.459482], 243 [loc('../../../../../../../usr/lib/python2.7/ConfigParser.py'), 244 {'attrib-starts': [('ConfigParser|0|', 245 85), 246 ('ConfigParser|0|.get|0|', 247 589)], 248 'code-line': ' raise NoSectionError(section)\n', 249 'first-line': 597L, 250 'folded-linenos': [], 251 'sel-line': 606L, 252 'sel-line-start': 22028L, 253 'selection_end': 22028L, 254 'selection_start': 22028L, 255 'zoom': 0L}, 256 1562879640.602333], 185 'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('cad_watcher.py'), 186 {'attrib-starts': [('setup|0|', 187 31)], 188 'code-line': ' return\n', 189 'first-line': 15L, 190 'folded-linenos': [], 191 'sel-line': 33L, 192 'sel-line-start': 888L, 193 'selection_end': 898L, 194 'selection_start': 898L, 195 'zoom': 0L}, 196 1562953860.143117], 257 197 [loc('logging_service.py'), 258 198 {'attrib-starts': [('startup|0|', 259 16)], 260 'code-line': ' timeStamp = getSimTime()\n', 261 'first-line': 18L, 262 'folded-linenos': [], 263 'sel-line': 41L, 264 'sel-line-start': 1347L, 265 'selection_end': 1378L, 266 'selection_start': 1378L, 267 'zoom': 0L}, 268 1562879647.165641], 199 17)], 200 'code-line': ' f = open(logfilepath + outputFilename, "'\ 201 'a")\n', 202 'first-line': 6L, 203 'folded-linenos': [], 204 'sel-line': 63L, 205 'sel-line-start': 2214L, 206 'selection_end': 2263L, 207 'selection_start': 2263L, 208 'zoom': 0L}, 209 1563130761.348523], 210 [loc('cad_watcher.py'), 211 {'attrib-starts': [], 212 'code-line': '# Read the cad comments log \n', 213 'first-line': 15L, 214 'folded-linenos': [], 215 'sel-line': 19L, 216 'sel-line-start': 546L, 217 'selection_end': 838L, 218 'selection_start': 546L, 219 'zoom': 0L}, 220 1563130779.821267], 221 [loc('unknown:untitled-1.py'), 222 {'attrib-starts': [('readFile|0|', 223 3)], 224 'code-line': '', 225 'first-line': 0L, 226 'folded-linenos': [], 227 'sel-line': 15L, 228 'sel-line-start': 412L, 229 'selection_end': 412L, 230 'selection_start': 412L, 231 'zoom': 0L}, 232 1563130943.219386], 269 233 [loc('__main__.py'), 270 234 {'attrib-starts': [('main|0|', … … 279 243 'selection_start': 183L, 280 244 'zoom': 0L}, 281 1562879668.696399], 245 1563130944.74234], 246 [loc('get_revision'), 247 {'attrib-starts': [], 248 'code-line': 'print readFile()', 249 'first-line': 0L, 250 'folded-linenos': [], 251 'sel-line': 15L, 252 'sel-line-start': 412L, 253 'selection_end': 418L, 254 'selection_start': 418L, 255 'zoom': 0L}, 256 1563130972.859102], 282 257 [loc('logging_service.py'), 283 {'attrib-starts': [('startup|0|', 284 16)], 285 'code-line': ' timeStamp = getSimTime()\n', 286 'first-line': 18L, 287 'folded-linenos': [], 288 'sel-line': 41L, 289 'sel-line-start': 1347L, 290 'selection_end': 1378L, 291 'selection_start': 1378L, 292 'zoom': 0L}, 293 1562880191.70851], 294 [loc('cms_watcher.py'), 295 {'attrib-starts': [('extractMessages|0|', 296 45)], 297 'code-line': '\n', 298 'first-line': 45L, 299 'folded-linenos': [], 300 'sel-line': 56L, 301 'sel-line-start': 1978L, 302 'selection_end': 1978L, 303 'selection_start': 1978L, 304 'zoom': 0L}, 305 1562880439.712792], 258 {'attrib-starts': [], 259 'code-line': 'import cms_watcher, cad_watcher, time, json, ConfigP'\ 260 'arser, get_revision\n', 261 'first-line': 0L, 262 'folded-linenos': [], 263 'sel-line': 0L, 264 'sel-line-start': 0L, 265 'selection_end': 71L, 266 'selection_start': 71L, 267 'zoom': 0L}, 268 1563131014.214975], 269 [loc('get_revision'), 270 {'attrib-starts': [], 271 'code-line': '', 272 'first-line': 0L, 273 'folded-linenos': [], 274 'sel-line': 15L, 275 'sel-line-start': 415L, 276 'selection_end': 415L, 277 'selection_start': 415L, 278 'zoom': 0L}, 279 1563131037.968315], 306 280 [loc('logging_service.py'), 307 {'attrib-starts': [('startup|0|', 308 16)], 309 'code-line': ' timeStamp = getSimTime()\n', 310 'first-line': 0L, 311 'folded-linenos': [], 312 'sel-line': 41L, 313 'sel-line-start': 1347L, 314 'selection_end': 1378L, 315 'selection_start': 1378L, 316 'zoom': 0L}, 317 1562880463.667528], 318 [loc('cms_watcher.py'), 319 {'attrib-starts': [('getLogEntries|0|', 320 61)], 321 'code-line': " results.append(\"CMS Updated., \" + l"\ 322 "ocationMap[idList[idx]] + \", '\" + currList[idx] +"\ 323 "\"'\")\n", 324 'first-line': 57L, 325 'folded-linenos': [], 326 'sel-line': 78L, 327 'sel-line-start': 2846L, 328 'selection_end': 2924L, 329 'selection_start': 2924L, 330 'zoom': 0L}, 331 1562880625.962149], 332 [loc('cad_watcher.py'), 333 {'attrib-starts': [('setup|0|', 334 31)], 335 'code-line': ' return\n', 336 'first-line': 24L, 337 'folded-linenos': [], 338 'sel-line': 33L, 339 'sel-line-start': 888L, 340 'selection_end': 898L, 341 'selection_start': 898L, 342 'zoom': 0L}, 343 1562882880.377423], 344 [loc('cms_watcher.py'), 345 {'attrib-starts': [('extractMessages|0|', 346 45)], 347 'code-line': " msgList[idx]['cms']['message']['"\ 348 "phase2']['Line2'] + ':' +\n", 349 'first-line': 39L, 350 'folded-linenos': [], 351 'sel-line': 54L, 352 'sel-line-start': 1829L, 353 'selection_end': 1903L, 354 'selection_start': 1903L, 355 'zoom': 0L}, 356 1562883842.916941], 281 {'attrib-starts': [], 282 'code-line': 'import cms_watcher, cad_watcher, time, json, ConfigP'\ 283 'arser, get_revision\n', 284 'first-line': 0L, 285 'folded-linenos': [], 286 'sel-line': 0L, 287 'sel-line-start': 0L, 288 'selection_end': 71L, 289 'selection_start': 71L, 290 'zoom': 0L}, 291 1563131045.946787], 292 [loc('get_revision'), 293 {'attrib-starts': [], 294 'code-line': '', 295 'first-line': 0L, 296 'folded-linenos': [], 297 'sel-line': 18L, 298 'sel-line-start': 455L, 299 'selection_end': 455L, 300 'selection_start': 455L, 301 'zoom': 0L}, 302 1563131163.18444], 303 [loc('logging_service.py'), 304 {'attrib-starts': [], 305 'code-line': 'import cms_watcher, cad_watcher, time, json, ConfigP'\ 306 'arser, get_revision\n', 307 'first-line': 0L, 308 'folded-linenos': [], 309 'sel-line': 0L, 310 'sel-line-start': 0L, 311 'selection_end': 71L, 312 'selection_start': 71L, 313 'zoom': 0L}, 314 1563131223.451037], 315 [loc('get_app_properties.py'), 316 {'attrib-starts': [('getRevision|0|', 317 14)], 318 'code-line': 'def getRevision(lines):\n', 319 'first-line': 0L, 320 'folded-linenos': [], 321 'sel-line': 14L, 322 'sel-line-start': 370L, 323 'selection_end': 385L, 324 'selection_start': 374L, 325 'zoom': 0L}, 326 1563131232.527418], 357 327 [loc('logging_service.py'), 358 328 {'attrib-starts': [('startup|0|', 359 329 17)], 360 'code-line': ' f = open(logfilepath + outputFilename, "'\ 361 'a")\n', 362 'first-line': 0L, 363 'folded-linenos': [], 364 'sel-line': 63L, 365 'sel-line-start': 2214L, 366 'selection_end': 2263L, 367 'selection_start': 2263L, 368 'zoom': 0L}, 369 1562887416.91585], 330 'code-line': 'def startup():\n', 331 'first-line': 7L, 332 'folded-linenos': [], 333 'sel-line': 17L, 334 'sel-line-start': 533L, 335 'selection_end': 547L, 336 'selection_start': 547L, 337 'zoom': 0L}, 338 1563131266.147045], 370 339 [loc('__main__.py'), 371 340 {'attrib-starts': [('main|0|', 372 341 2)], 373 'code-line': ' print "Unified Logging Service starting from ",o'\ 374 's.getcwd()\n', 375 'first-line': 0L, 376 'folded-linenos': [], 377 'sel-line': 3L, 378 'sel-line-start': 132L, 379 'selection_end': 183L, 380 'selection_start': 183L, 381 'zoom': 0L}, 382 1562892803.750792], 383 [loc('cms_watcher.py'), 384 {'attrib-starts': [('isEmpty|0|', 385 12)], 386 'code-line': ' return cmsitem == ":::::"\n', 387 'first-line': 0L, 388 'folded-linenos': [], 389 'sel-line': 13L, 390 'sel-line-start': 324L, 391 'selection_end': 353L, 392 'selection_start': 353L, 393 'zoom': 0L}, 394 1562893146.713132], 342 'code-line': ' print "revision ",get_app_properties.getRevision'\ 343 '()\n', 344 'first-line': 0L, 345 'folded-linenos': [], 346 'sel-line': 4L, 347 'sel-line-start': 215L, 348 'selection_end': 269L, 349 'selection_start': 269L, 350 'zoom': 0L}, 351 1563131297.40217], 352 [loc('logging_service.py'), 353 {'attrib-starts': [], 354 'code-line': 'import cms_watcher, cad_watcher, time, json, ConfigP'\ 355 'arser\n', 356 'first-line': 0L, 357 'folded-linenos': [], 358 'sel-line': 0L, 359 'sel-line-start': 0L, 360 'selection_end': 57L, 361 'selection_start': 57L, 362 'zoom': 0L}, 363 1563131307.615114], 364 [loc('get_app_properties.py'), 365 {'attrib-starts': [('getRevision|0|', 366 14)], 367 'code-line': 'def getRevision(lines):\n', 368 'first-line': 0L, 369 'folded-linenos': [], 370 'sel-line': 14L, 371 'sel-line-start': 382L, 372 'selection_end': 382L, 373 'selection_start': 382L, 374 'zoom': 0L}, 375 1563131330.855952], 395 376 [loc('__main__.py'), 396 377 {'attrib-starts': [('main|0|', 397 378 2)], 398 'code-line': ' print "Unified Logging Service starting from ",o'\ 399 's.getcwd()\n', 400 'first-line': 0L, 401 'folded-linenos': [], 402 'sel-line': 3L, 403 'sel-line-start': 132L, 404 'selection_end': 183L, 405 'selection_start': 183L, 406 'zoom': 0L}, 407 1562953832.001241], 408 [loc('logging_service.py'), 409 {'attrib-starts': [('startup|0|', 410 17)], 411 'code-line': ' f = open(logfilepath + outputFilename, "'\ 412 'a")\n', 413 'first-line': 33L, 414 'folded-linenos': [], 415 'sel-line': 63L, 416 'sel-line-start': 2214L, 417 'selection_end': 2263L, 418 'selection_start': 2263L, 419 'zoom': 0L}, 420 1562953847.965491], 421 [loc('cms_watcher.py'), 422 {'attrib-starts': [('isEmpty|0|', 423 12)], 424 'code-line': ' return cmsitem == ":::::"\n', 425 'first-line': 0L, 426 'folded-linenos': [], 427 'sel-line': 13L, 428 'sel-line-start': 324L, 429 'selection_end': 353L, 430 'selection_start': 353L, 431 'zoom': 0L}, 432 1562953854.594261], 433 [loc('cad_watcher.py'), 434 {'attrib-starts': [('setup|0|', 435 31)], 436 'code-line': ' return\n', 437 'first-line': 15L, 438 'folded-linenos': [], 439 'sel-line': 33L, 440 'sel-line-start': 888L, 441 'selection_end': 898L, 442 'selection_start': 898L, 443 'zoom': 0L}, 444 1562953860.143117]], 379 'code-line': ' print "revision ",get_app_properties.getRevision'\ 380 '()\n', 381 'first-line': 0L, 382 'folded-linenos': [], 383 'sel-line': 4L, 384 'sel-line-start': 215L, 385 'selection_end': 215L, 386 'selection_start': 215L, 387 'zoom': 0L}, 388 1563131341.340806], 389 [loc('get_app_properties.py'), 390 {'attrib-starts': [('getRevision|0|', 391 14)], 392 'code-line': ' lines = getProperties()\n', 393 'first-line': 0L, 394 'folded-linenos': [], 395 'sel-line': 15L, 396 'sel-line-start': 401L, 397 'selection_end': 413L, 398 'selection_start': 413L, 399 'zoom': 0L}, 400 1563131376.535666], 401 [loc('__main__.py'), 402 {'attrib-starts': [('main|0|', 403 2)], 404 'code-line': ' print "Unified Logging Service v"+revNum,"starti'\ 405 'ng from ",os.getcwd()\n', 406 'first-line': 0L, 407 'folded-linenos': [], 408 'sel-line': 4L, 409 'sel-line-start': 198L, 410 'selection_end': 244L, 411 'selection_start': 244L, 412 'zoom': 0L}, 413 1563131462.025839], 414 [loc('get_app_properties.py'), 415 {'attrib-starts': [], 416 'code-line': '\n', 417 'first-line': 0L, 418 'folded-linenos': [], 419 'sel-line': 0L, 420 'sel-line-start': 0L, 421 'selection_end': 0L, 422 'selection_start': 0L, 423 'zoom': 0L}, 424 1563131503.437265]], 445 425 20), 446 'current-loc': loc(' logging_service.py'),426 'current-loc': loc('__main__.py'), 447 427 'editor-state-list': [(loc('cad_watcher.py'), 448 {'attrib-starts': [('setup|0|', 449 31)], 450 'code-line': ' return\n', 428 {'attrib-starts': [], 429 'code-line': '# Read the cad comments log \n', 451 430 'first-line': 15L, 452 431 'folded-linenos': [], 453 'sel-line': 33L,454 'sel-line-start': 888L,455 'selection_end': 8 98L,456 'selection_start': 898L,432 'sel-line': 19L, 433 'sel-line-start': 546L, 434 'selection_end': 838L, 435 'selection_start': 546L, 457 436 'zoom': 0L}), 458 437 (loc('cms_watcher.py'), … … 468 447 'selection_start': 353L, 469 448 'zoom': 0L}), 449 (loc('get_app_properties.py'), 450 {'attrib-starts': [], 451 'code-line': '\n', 452 'first-line': 0L, 453 'folded-linenos': [], 454 'sel-line': 0L, 455 'sel-line-start': 0L, 456 'selection_end': 0L, 457 'selection_start': 0L, 458 'zoom': 0L}), 470 459 (loc('logging_service.py'), 471 {'attrib-starts': [('startup|0|', 472 17)], 473 'code-line': ' f = open(logfilepa'\ 474 'th + outputFilename, "a")\n', 475 'first-line': 48L, 460 {'attrib-starts': [], 461 'code-line': 'import cms_watcher, cad_watche'\ 462 'r, time, json, ConfigParser\n', 463 'first-line': 0L, 476 464 'folded-linenos': [], 477 'sel-line': 63L,478 'sel-line-start': 2214L,479 'selection_end': 2263L,480 'selection_start': 2263L,465 'sel-line': 0L, 466 'sel-line-start': 0L, 467 'selection_end': 57L, 468 'selection_start': 57L, 481 469 'zoom': 0L}), 482 470 (loc('__main__.py'), … … 484 472 2)], 485 473 'code-line': ' print "Unified Logging Ser'\ 486 'vice starting from ",os.getcwd()\n',474 'vice v"+revNum,"starting from ",os.getcwd()\n', 487 475 'first-line': 0L, 488 476 'folded-linenos': [], 489 'sel-line': 3L,490 'sel-line-start': 1 32L,491 'selection_end': 183L,492 'selection_start': 183L,477 'sel-line': 4L, 478 'sel-line-start': 198L, 479 'selection_end': 244L, 480 'selection_start': 244L, 493 481 'zoom': 0L})], 494 'has-focus': False,482 'has-focus': True, 495 483 'locked': False}, 496 484 [loc('cad_watcher.py'), 497 485 loc('cms_watcher.py'), 486 loc('get_app_properties.py'), 498 487 loc('logging_service.py'), 499 488 loc('__main__.py')]), 500 'open_files': [u' __main__.py',489 'open_files': [u'cms_watcher.py', 501 490 u'cad_watcher.py', 502 u'cms_watcher.py', 503 u'logging_service.py']}, 491 u'logging_service.py', 492 u'get_app_properties.py', 493 u'__main__.py']}, 504 494 'saved_notebook_display': None, 505 495 'split_percents': {0: 0.5}, … … 508 498 'traversal_pos': ((0, 509 499 3), 510 156 2879301.119771),500 1563131330.846264), 511 501 'user_data': {}}, 512 502 'saved_notebook_display': None, … … 516 506 'traversal_pos': ((0, 517 507 4), 518 156 2892833.554952),508 1563131442.756592), 519 509 'user_data': {}}, 520 510 'window-alloc': (29, … … 522 512 1197, 523 513 722)}]} 524 guimgr.recent-documents = [loc('logging_service.py'), 514 guimgr.recent-documents = [loc('__main__.py'), 515 loc('get_app_properties.py'), 516 loc('logging_service.py'), 525 517 loc('cad_watcher.py'), 526 loc('cms_watcher.py'), 527 loc('__main__.py')] 528 guimgr.visual-state = {loc('../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\ 518 loc('cms_watcher.py')] 519 guimgr.visual-state = {loc('get_revision'): {'attrib-starts': [], 520 'code-line': '', 521 'first-line': 0L, 522 'folded-linenos': [], 523 'sel-line': 18L, 524 'sel-line-start': 455L, 525 'selection_end': 455L, 526 'selection_start': 455L, 527 'zoom': 0L}, 528 loc('../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\ 529 529 'ttrib-starts': [('ConfigParser|0|', 530 530 85), -
trunk/src/tmcsim/application.properties
r443 r444 1 #Sun, 14 Jul 2019 1 1:42:04-07001 #Sun, 14 Jul 2019 12:12:07 -0700 2 2 3 Application.revision=44 23 Application.revision=443 4 4 5 Application.buildnumber=15 15 Application.buildnumber=152
Note: See TracChangeset
for help on using the changeset viewer.
