Menu

#19 Centralize shared code in submission approval scripts

v1.0 (example)
open
nobody
None
5
2021-06-29
2013-06-01
Ahasuerus
No

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.

Discussion

  • Ahasuerus

    Ahasuerus - 2021-06-29
    • summary: Centralize common parts of mod scripts --> Centralize shared code in submission approval scripts
     
  • Ahasuerus

    Ahasuerus - 2021-06-29

    Changed the name of this SR to match the requested change.

     

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo