def app_compile(app, request, skip_failed_views=False):
 from gluon.compileapp import compile_application, remove_compiled_application
 folder = apath(app, request)
 try:
  failed_views = compile_application(folder, skip_failed_views)
  return failed_views
 except (Exception, RestrictedError):
  tb = traceback.format_exc()
  remove_compiled_application(folder)
  return tb

def app_compile ( app , request , skip_failed_views = False ) : from gluon . compileapp import compile_application , remove_compiled_application folder = apath ( app , request ) try : failed_views = compile_application ( folder , skip_failed_views ) return failed_views except ( Exception , RestrictedError ) : tb = traceback . format_exc ( ) remove_compiled_application ( folder ) return tb
compiles the application args: app: application name request: the global request object returns: none if everything went ok .