Ignore:
Timestamp:
Aug 28, 2005 9:09:01 PM (19 years ago)
Author:
mmc
Message:

Added support for file transfer with the desktop. Each Rappture
application acts like an http server, configured to listen on
a particular port according to the parameters found in the file
~/data/sessions/$SESSION/resources. When the server is active,
the GUI has a "Download..." button in the results area. A Java
client (in the filexfer directory) connects to the server and
listens for download requests. When the user clicks on "Download...",
the desired result is spooled to a file, and a Java client pops up
a web page requesting the file. This downloads the result to the
user's desktop.

Note that if the $SESSION environment variable is not set, these
changes do nothing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/valueresult.tcl

    r22 r50  
    2626    public method delete {args}
    2727    public method scale {args}
     28    public method download {}
    2829
    2930    set _dataobj ""  ;# data object currently being displayed
     
    137138    # nothing to do for values
    138139}
     140
     141# ----------------------------------------------------------------------
     142# USAGE: download
     143#
     144# Clients use this method to create a downloadable representation
     145# of the plot.  Returns a list of the form {ext string}, where
     146# "ext" is the file extension (indicating the type of data) and
     147# "string" is the data itself.
     148# ----------------------------------------------------------------------
     149itcl::body Rappture::ValueResult::download {} {
     150    return ""
     151}
Note: See TracChangeset for help on using the changeset viewer.