[MOBY-dev] gbrowse_moby and bioMoby Python webservices
Yan Wong
ywong at infobiogen.fr
Wed Dec 8 16:17:22 UTC 2004
I've solved the problem and posted corrections to the CVS.
See changelog for listed modifications.
Here are the following steps to do to update your bioMoby Python server
API:
In your bioMoby python package directory:
-First update your ZSI library with the ZSI library provided by this
package:
cd packages
tar jxvf ZSI-1.5.0-patched-2
cd ZSI-1.5.0-patched-2
python setup.py install (with your fancy options if you have)
-Update your bioMoby Python library
python setup.py install (with options)
-Update your scripts by applying the rules:
however, you'll have to change some things in your script:
BEFORE:
from ZSI import dispatch
dispatch.AsCGI()
NOW:
from ZSI import dispatch
from bioMoby.webservice import TCBioMoby
dispatch.AsCGI(typesmodule=TCBioMoby)
or with mod_python:
dispatch.AsHandler(modules=myModule,), request=req, typesmodule=TCBioMoby)
TCBioMoby contains a class that serialize/deserialize the content inside
the tag Body into a MobyContent Object.
This will allow a Python webservice to deal with gbrowse_moby.
More information about the MOBY-dev
mailing list