Skip to content

Add new formats  #3

@GoogleCodeExporter

Description

@GoogleCodeExporter
Please add the following format functions to podunk/widget/formats.py:

def format_report_date_isoformat(value):
    """
    Returns the date and time in the ISO format.
    """
    if value == None:
        retval = ''
    else:
        retval = value.isoformat()
    return retval

def format_hex(value):
    """
    Returns value as hexadecimal string. 
    """
    if value == None:
        retval = ''
    else:
        retval = "%X"%value
    return retval

Original issue reported on code.google.com by torsten...@gmail.com on 22 Aug 2013 at 2:51

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions