def _get_recipe_ids(module_ident, cursor):
cursor.execute("""<STR_LIT>""", (module_ident,))<EOL>return cursor.fetchone()<EOL>
Returns a tuple of length 2 of primary and fallback recipe ids.

    The primary will be based on the print_style of the book. It is the first
    of:
        1. default recipe currently associated with the print_style of the book
           being baked (defined by module_ident)
        2. A CSS file associated with this book that is named the same as the
           print_style
        3. A CSS file associated with this book that is named 'ruleset.css'

        The fallback is the recipe used for last successful bake of this book,
        if different than the primary. Either value or both values may be
        None