def main(): """ Main function a la C/C++. Returns exit code. """ oSrvGlue = WebServerGlueCgi(g_ksValidationKitDir, fHtmlOutput = False); try: oWui = WuiMain(oSrvGlue); oWui.dispatchRequest(); oSrvGlue.flush(); except Exception as oXcpt: return oSrvGlue.errorPage('Internal error: %s' % (str(oXcpt),), sys.exc_info()); return 0;