def app_pack(app, request, raise_ex=False, filenames=None):
 try:
  if (filenames is None):
   app_cleanup(app, request)
  filename = apath(('../deposit/web2py.app.%s.w2p' % app), request)
  w2p_pack(filename, apath(app, request), filenames=filenames)
  return filename
 except Exception as e:
  if raise_ex:
   raise
  return False

def app_pack ( app , request , raise_ex = False , filenames = None ) : try : if ( filenames is None ) : app_cleanup ( app , request ) filename = apath ( ( '../deposit/web2py.app.%s.w2p' % app ) , request ) w2p_pack ( filename , apath ( app , request ) , filenames = filenames ) return filename except Exception as e : if raise_ex : raise return False
builds a w2p package for the application args: app: application name request: the global request object returns: filename of the w2p file or none on error .