PEATDB/Ekin/Utils.py
def leadingZeros(value, desired_digits):
    """
    Given an integer, returns a string representation, padded with [desired_digits] zeros.
    http://www.djangosnippets.org/snippets/543/
    """
    num_zeros = int(desired_digits) - len(str(value))
    padded_value = []
    while num_zeros >= 1:
        padded_value.append("0")
        num_zeros = num_zeros - 1
    padded_value.append(str(value))
    return "".join(padded_value)

    Given an integer, returns a string representation, padded with [desired_digits] zeros.
    http://www.djangosnippets.org/snippets/543/
    
Given an integer, returns a string representation, padded with [desired_digits] zeros.
Given an integer returns a string representation padded with [ desired_digits ] zeros .
def leadingZeros(value, desired_digits):
    num_zeros = int(desired_digits) - len(str(value))
    padded_value = []
    while num_zeros >= 1:
        padded_value.append("0")
        num_zeros = num_zeros - 1
    padded_value.append(str(value))
    return "".join(padded_value)
def leadingZeros ( value , desired_digits ) : num_zeros = int ( desired_digits ) - len ( str ( value ) ) padded_value = [ ] while num_zeros >= 1 : padded_value . append ( "0" ) num_zeros = num_zeros - 1 padded_value . append ( str ( value ) ) return "" . join ( padded_value )
Given an integer, returns a string representation, padded with [desired_digits] zeros.
Given an integer returns a string representation padded with [ desired_digits ] zeros .
"""
    Given an integer, returns a string representation, padded with [desired_digits] zeros.
    http://www.djangosnippets.org/snippets/543/
    """
value
desired_digits