All "%a_*" scripts in the mod directory start with the following code:
PrintPreMod('Award Update - SQL Statements')
PrintNavBar()
try:
submission = sys.argv[1]
except:
print '<div id="ErrorBox">'
print '<h3>Error: Bad argument</h3>'
print '</div>'
PrintPostMod()
sys.exit(0)
if NotApprovable(submission):
sys.exit(0)
We should be able to move this code to PrintPreMod and reduce code duplication.
Anonymous
Changed the name of this SR to match the requested change.