App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Functions | Variables
google.appengine._internal.django.utils.checksums Namespace Reference

Functions

def luhn
 

Variables

list __all__ = ['luhn',]
 
tuple LUHN_ODD_LOOKUP = (0, 2, 4, 6, 8, 1, 3, 5, 7, 9)
 

Detailed Description

Common checksum routines (used in multiple localflavor/ cases, for example).

Function Documentation

def google.appengine._internal.django.utils.checksums.luhn (   candidate)
Checks a candidate number for validity according to the Luhn
algorithm (used in validation of, for example, credit cards).
Both numeric and string candidates are accepted.