utils.py
changeset 73 5a7188bf2894
parent 72 5ade0288f2ec
child 89 2dc6de43f317
equal deleted inserted replaced
72:5ade0288f2ec 73:5a7188bf2894
    35 class URLDateType (URLType) :
    35 class URLDateType (URLType) :
    36     """
    36     """
    37         Handle dates in URLs as naive datetime objects (with indeterminate time info)
    37         Handle dates in URLs as naive datetime objects (with indeterminate time info)
    38     """
    38     """
    39 
    39 
    40     def __init__ (self, date_fmt="%Y-%m-%d") :
    40     def __init__ (self, date_fmt) :
    41         """
    41         """
    42             Format/parse dates using the given format
    42             Format/parse dates using the given format
    43         """
    43         """
    44 
    44 
    45         self.date_fmt = date_fmt
    45         self.date_fmt = date_fmt