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