# "logo": "asta-logo.tex", # optional: replaces the general template to include at the top of protocol.tex set by LATEX_LOGO_TEMPLATE
# "geometry": "bottom=1.6cm,top=1.6cm,inner=2.5cm,outer=1.0cm,footskip=1.0cm,headsep=0.6cm", # optional: replaces the general protocol page geometry set by LATEX_GEOMETRY
# "pagestyle": "fancy", # optional: replaces the general protocol pagestyle set by LATEX_PAGESTYLE
# "additionalpackages": ["[absolute]{textpos}", "{fancyheadings}"], # optional: replaces the general latex packages set by LATEX_ADDITIONAL_PACKAGES
# "additional_packages": ["[absolute]{textpos}", "{fancyheadings}"], # optional: replaces the general latex packages set by LATEX_ADDITIONAL_PACKAGES
# "headerfooter": True # optional: replaces the general LATEX_HEADER_FOOTER option
error=protocol.create_error("Parsing","Date not matching",
"This protocol's date should be {}, but the protocol source says {}.".format(date_filter(exc.original_date)ifexc.original_dateisnotNoneelse"not present",date_filter(exc.protocol_date)ifexc.protocol_dateisnotNoneelse"not present"))
db.session.add(error)
db.session.commit()
return
return_make_error(
protocol,"Parsing","Date not matching",
"This protocol's date should be {}, but the protocol source "
error=protocol.create_error("Printing","No printer configured.","You don't have any printer configured for the protocoltype {}. Please do so before printing a protocol.".format(protocol.protocoltype.name))
db.session.add(error)
db.session.commit()
return_make_error(
protocol,"Printing","No printer configured.",
"You don't have any printer configured for the "
"protocoltype {}. "
"Please do so before printing a protocol.".format(