test_result: Display durations as timedelta
This makes it easier to understand the duration in minutes and hours
<?xml version="1.0"?> | |||
<ZopeData> | |||
<record id="1" aka="AAAAAAAAAAE="> | |||
<pickle> | |||
<global name="StringField" module="Products.Formulator.StandardFields"/> | |||
</pickle> | |||
<pickle> | |||
<dictionary> | |||
<item> | |||
<key> <string>id</string> </key> | |||
<value> <string>listbox_duration</string> </value> | |||
</item> | |||
<item> | |||
<key> <string>message_values</string> </key> | |||
<value> | |||
<dictionary> | |||
<item> | |||
<key> <string>external_validator_failed</string> </key> | |||
<value> <string>The input failed the external validator.</string> </value> | |||
</item> | |||
<item> | |||
<key> <string>required_not_found</string> </key> | |||
<value> <string>Input is required but no input given.</string> </value> | |||
</item> | |||
<item> | |||
<key> <string>too_long</string> </key> | |||
<value> <string>Too much input was given.</string> </value> | |||
</item> | |||
</dictionary> | |||
</value> | |||
</item> | |||
<item> | |||
<key> <string>overrides</string> </key> | |||
<value> | |||
<dictionary> | |||
<item> | |||
<key> <string>alternate_name</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>css_class</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>default</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>description</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>display_maxwidth</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>display_width</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>editable</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>enabled</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>external_validator</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>extra</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>hidden</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>input_type</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>max_length</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>required</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>title</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>truncate</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>unicode</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>whitespace_preserve</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
</dictionary> | |||
</value> | |||
</item> | |||
<item> | |||
<key> <string>tales</string> </key> | |||
<value> | |||
<dictionary> | |||
<item> | |||
<key> <string>alternate_name</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>css_class</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>default</string> </key> | |||
<value> | |||
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> | |||
</value> | |||
</item> | |||
<item> | |||
<key> <string>description</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>display_maxwidth</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>display_width</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>editable</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>enabled</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>external_validator</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>extra</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>hidden</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>input_type</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>max_length</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>required</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>title</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>truncate</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>unicode</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>whitespace_preserve</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
</dictionary> | |||
</value> | |||
</item> | |||
<item> | |||
<key> <string>values</string> </key> | |||
<value> | |||
<dictionary> | |||
<item> | |||
<key> <string>alternate_name</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>css_class</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>default</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>description</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>display_maxwidth</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>display_width</string> </key> | |||
<value> <int>20</int> </value> | |||
</item> | |||
<item> | |||
<key> <string>editable</string> </key> | |||
<value> <int>1</int> </value> | |||
</item> | |||
<item> | |||
<key> <string>enabled</string> </key> | |||
<value> <int>1</int> </value> | |||
</item> | |||
<item> | |||
<key> <string>external_validator</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>extra</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>hidden</string> </key> | |||
<value> <int>0</int> </value> | |||
</item> | |||
<item> | |||
<key> <string>input_type</string> </key> | |||
<value> <string>text</string> </value> | |||
</item> | |||
<item> | |||
<key> <string>max_length</string> </key> | |||
<value> <string></string> </value> | |||
</item> | |||
<item> | |||
<key> <string>required</string> </key> | |||
<value> <int>0</int> </value> | |||
</item> | |||
<item> | |||
<key> <string>title</string> </key> | |||
<value> <string>Duration</string> </value> | |||
</item> | |||
<item> | |||
<key> <string>truncate</string> </key> | |||
<value> <int>0</int> </value> | |||
</item> | |||
<item> | |||
<key> <string>unicode</string> </key> | |||
<value> <int>0</int> </value> | |||
</item> | |||
<item> | |||
<key> <string>whitespace_preserve</string> </key> | |||
<value> <int>0</int> </value> | |||
</item> | |||
</dictionary> | |||
</value> | |||
</item> | |||
</dictionary> | |||
</pickle> | |||
</record> | |||
<record id="2" aka="AAAAAAAAAAI="> | |||
<pickle> | |||
<global name="TALESMethod" module="Products.Formulator.TALESField"/> | |||
</pickle> | |||
<pickle> | |||
<dictionary> | |||
<item> | |||
<key> <string>_text</string> </key> | |||
<value> <string>python: modules[\'datetime\'].timedelta(seconds=cell.getProperty(\'duration\'))</string> </value> | |||
|
|||
</item> | |||
</dictionary> | |||
</pickle> | |||
</record> | |||
</ZopeData> |