Changeset 774 for trunk


Ignore:
Timestamp:
Jul 9, 2007 8:54:12 AM (17 years ago)
Author:
mmc
Message:

Downloading of binary data within <string> objects was broken because
the code couldn't figure out an appropriate file extension. Fixed to
use ".dat" for binary data and ".txt" for ASCII data, by default.

File:
1 edited

Legend:

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

    r767 r774  
    308308
    309309            set ext [$_dataobj get filetype]
    310             if {"" == $ext && ![Rappture::encoding::is binary $val]} {
    311                 set ext ".txt"
     310            if {"" == $ext} {
     311                if {[Rappture::encoding::is binary $val]} {
     312                    set ext ".dat"
     313                } else {
     314                    set ext ".txt"
     315                }
    312316            }
    313317            return [list $ext $val]
Note: See TracChangeset for help on using the changeset viewer.