VirtualBox

Ignore:
Timestamp:
Jan 9, 2017 3:32:42 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
112717
Message:

systemchangelog.py: pylint fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/systemchangelog.py

    r65040 r65211  
    7070    ## @}
    7171
    72     ## The table key is the effective timestamp.
    73     ksClue_TimestampId = 'TimestampId';
    74 
    7572    ## Mapping a changelog entry kind to a table, key and clue.
    76     kdWhatToTable = {
     73    kdWhatToTable = dict({
    7774        ksWhat_TestBox:          ( 'TestBoxes',          'idTestBox',           None, ),
    7875        ksWhat_TestCase:         ( 'TestCasees',         'idTestCase',          None, ),
     
    8784        ksWhat_User:             ( 'Users',              'idUser',              None, ),
    8885        ksWhat_TestResult:       ( 'TestResults',        'idTestResult',        None, ),
    89     };
    90     for sEvent in SystemLogData.kasEvents:
    91         kdWhatToTable[sEvent] =  ( 'SystemLog',          'tsCreated',           ksClue_TimestampId, );
     86    }, **{sEvent: ( 'SystemLog',  'tsCreated',  'TimestampId', ) for sEvent in SystemLogData.kasEvents});
     87
     88    ## The table key is the effective timestamp. (Can't be used above for some weird scoping reason.)
     89    ksClue_TimestampId = 'TimestampId';
    9290
    9391    ## @todo move to config.py?
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette