[chimera-dev] Plugin installation from a web link
Conrad Huang
conrad at cgl.ucsf.edu
Tue Jun 3 10:00:42 PDT 2014
The way that works is using a CGI script to present a web page of set of
Chimera extensions stored in a directory. When the user clicks on one
of the links on the page, the same CGI script sends back a .chimerax
file. This means that the user's browser must be configured to forward
.chimerax files to Chimera.
http://preview.cgl.ucsf.edu/chimera/cgi-bin/tools.chimerax is the URL to
our "Additional Tools Page".
Attached is the actual code and an example tool, MapSum. The "MapSum"
directory is an example Chimera extension and has the same set of files
as found in standard Chimera extensions. (There is actually one extra
file, "INFO", that is not normally found in a Chimera extension. This
file contains information used by both the CGI script [to construct the
listings web page] and by the installation code [for version checking].)
You need to create a container directory (let's say you choose
/var/tmp/tools) and put MapSum in that directory. The "tools.chimerax"
file is the CGI script and needs to be edited to change the "DataDir"
value from "../../data/tools" to "/var/tmp/tools". You can then drop
the modified tools.chimerax into your web server cgi-bin directory, make
sure it's executable, and you should be all set. Visiting the CGI
script URL with no arguments should present a single link to MapSum, and
clicking on that link should initiate the installation of the tool.
Let me know if you run into any problems.
Conrad
On 6/2/14, 6:25 PM, Alex wrote:
> Hello Chimera developers,
>
> If I remember well, during a visit in your lab in January, Conrad Huang
> showed me a way to package a Python plugin that can be installed just by
> opening the package with Chimera.
>
> Do you have an example? I found something vaguely related here:
> http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/webdata/chimerax.html
>
> But I don't see how to include commands to copy libraries or python
> modules into the lib or share directories, or to make sure Chimera can
> remember where to find the files in the future.
>
> Many thanks for your help,
> Alex
> _______________________________________________
> Chimera-dev mailing list
> Chimera-dev at cgl.ucsf.edu
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tools.tar.gz
Type: application/x-gzip
Size: 7375 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20140603/6c51dfaf/attachment.bin>
More information about the Chimera-dev
mailing list