示例#1
0
    from serverlib import serve_attract, AttractServerError
    os.system("chmod a+r+w /tmp/*spy.*")
except Exception, e:
    s = "<b>There was an error in the initialization of the server</b>\n"
    s += """Please save this page from your browser as HTML and email it to [email protected], and it will be fixed as soon as possible.
The ATTRACT web interface is in active development, thank you for your patience.  
"""
    s += "\n<B>Full error information</B>:\n\n"
    s += traceback.format_exc()
    report(s)
    report("</pre>")
    sys.exit()

try:
    r = serve_attract(Spyder.AttractEasyModel,
                      form_standard,
                      attractsave.deploy_easy,
                      easy=False)
    report(r)
except AttractServerError as e:
    report("<b>There was an inconsistency in your data</b>")
    report("\n<B>Error message</B>")
    report(e.status)
    report()
    if e.delta is not None: report(e.delta)
    report("</pre>")
    sys.exit()
except Exception as e:
    report("There was an unknown error in the server")
    report(
        """Please save this page from your browser as HTML and email it to [email protected], and it will be fixed as soon as possible.
The ATTRACT web interface is in active development, thank you for your patience.  
  import attractsave
  from serverlib import serve_attract, AttractServerError
  os.system("chmod a+r+w /tmp/*spy.*")
except Exception, e:
  s = "<b>There was an error in the initialization of the server</b>\n"
  s += """Please save this page from your browser as HTML and email it to [email protected], and it will be fixed as soon as possible.
The ATTRACT web interface is in active development, thank you for your patience.
"""
  s += "\n<B>Full error information</B>:\n\n"
  s += traceback.format_exc()
  report(s)
  report("</pre>")
  sys.exit()

try:
  r = serve_attract(Spyder.CryoEasyInterface, form_cryo_easy, attractsave.deploy_cryo_easy, easy=False)
  report(r)
except AttractServerError as e:
  report("<b>There was an inconsistency in your data</b>")
  report("\n<B>Error message</B>")
  report(e.status)
  report()
  if e.delta is not None: report(e.delta)
  report("</pre>")
  sys.exit()
except Exception as e:
  report("There was an unknown error in the server")
  report("""Please save this page from your browser as HTML and email it to [email protected], and it will be fixed as soon as possible.
The ATTRACT web interface is in active development, thank you for your patience.
""")
  report(traceback.format_exc() + "\n")
  import attractsave
  from serverlib import serve_attract, AttractServerError
  os.system("chmod a+r+w /tmp/*spy.*")
except Exception, e:
  s = "<b>There was an error in the initialization of the server</b>\n"
  s += """Please save this page from your browser as HTML and email it to [email protected], and it will be fixed as soon as possible.
The ATTRACT web interface is in active development, thank you for your patience.  
"""
  s += "\n<B>Full error information</B>:\n\n"
  s += traceback.format_exc()
  report(s)
  report("</pre>")
  sys.exit()
  
try:  
  r = serve_attract(Spyder.NARefineInterface, form_narefine, attractsave.deploy_narefine)
  report(r)
except AttractServerError as e:
  report("<b>There was an inconsistency in your data</b>")
  report("\n<B>Error message</B>")
  report(e.status)
  report()
  if e.delta is not None: report(e.delta)
  report("</pre>") 
  sys.exit()  
except Exception as e:
  report("There was an unknown error in the server")
  report("""Please save this page from your browser as HTML and email it to [email protected], and it will be fixed as soon as possible.
The ATTRACT web interface is in active development, thank you for your patience.  
""")  
  report(traceback.format_exc() + "\n")
    import attractsave
    from serverlib import serve_attract, AttractServerError
    os.system("chmod a+r+w /tmp/*spy.*")
except Exception, e:
    s = "<b>There was an error in the initialization of the server</b>\n"
    s += """Please save this page from your browser as HTML and email it to [email protected], and it will be fixed as soon as possible.
The ATTRACT web interface is in active development, thank you for your patience.  
"""
    s += "\n<B>Full error information</B>:\n\n"
    s += traceback.format_exc()
    report(s)
    report("</pre>")
    sys.exit()

try:
    r = serve_attract(Spyder.AttractPeptideModel, form_peptide,
                      attractsave.deploy_peptide)
    report(r)
except AttractServerError as e:
    report("<b>There was an inconsistency in your data</b>")
    report("\n<B>Error message</B>")
    report(e.status)
    report()
    if e.delta is not None: report(e.delta)
    report("</pre>")
    sys.exit()
except Exception as e:
    report("There was an unknown error in the server")
    report(
        """Please save this page from your browser as HTML and email it to [email protected], and it will be fixed as soon as possible.
The ATTRACT web interface is in active development, thank you for your patience.  
""")
示例#5
0
    import attractsave
    from serverlib import serve_attract, AttractServerError
    os.system("chmod a+r+w /tmp/*spy.*")
except Exception, e:
    s = "<b>There was an error in the initialization of the server</b>\n"
    s += """Please save this page from your browser as HTML and email it to [email protected], and it will be fixed as soon as possible.
The ATTRACT web interface is in active development, thank you for your patience.  
"""
    s += "\n<B>Full error information</B>:\n\n"
    s += traceback.format_exc()
    report(s)
    report("</pre>")
    sys.exit()

try:
    r = serve_attract(Spyder.AttractModel, form_model, attractsave.deploy)
    report(r)
except AttractServerError as e:
    report("<b>There was an inconsistency in your data</b>")
    report("\n<B>Error message</B>")
    report(e.status)
    report()
    if e.delta is not None: report(e.delta)
    report("</pre>")
    sys.exit()
except Exception as e:
    report("There was an unknown error in the server")
    report(
        """Please save this page from your browser as HTML and email it to [email protected], and it will be fixed as soon as possible.
The ATTRACT web interface is in active development, thank you for your patience.  
""")