#NEWLINE# def __init__( self , record , use_keys = False , date_format = '%m/%d/%Y' , id_format = None ) : #NEWLINE# #INDENT# 'Create a ``ModelTags`` object.\n\n        ``record`` is the database record to lookup values in.  It may be\n        any object with attributes or keys, including a SQLAlchemy mapped\n        instance.  It may also be ``None`` or ``""`` to indicate that a new\n        record is being created.  (The class attribute ``undefined_values``\n        tells which values indicate a new record.)\n\n        If ``use_keys`` is true, values will be looked up by key.  If false\n        (default), values will be looked up by attribute.\n\n        ``date_format`` is a strftime-compatible string used by the ``.date``\n        method.  The default is American format (MM/DD/YYYY), which is\n        most often seen in text fields paired with popup calendars.\n        European format (DD/MM/YYYY) is "%d/%m/%Y".  ISO format (YYYY-MM-DD)\n        is "%Y-%m-%d".\n\n        ``id_format`` is a formatting-operator format for the HTML \'id\'\n        attribute.  It should contain one "{}" where the tag\'s name will be\n        embedded. For backward compatibility with WebHelpers, "%s" is\n        automatically converted to "{}".\n        ' #NEWLINE# self . record = record #NEWLINE# self . use_keys = self #NEWLINE# self . date_format = date_format #NEWLINE# if id_format : #NEWLINE# #INDENT# id_format = id_format . replace ( '%s' , '{0}' ) #NEWLINE# #UNINDENT# self . id_format = id_format