Changeset 7066 for cows_wps


Ignore:
Timestamp:
23/06/10 22:17:38 (9 years ago)
Author:
astephen
Message:

got it working with process_base class.

Location:
cows_wps/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/public/js/ui/submit_utils.js

    r6977 r7066  
    6464function convertToMB(bytes) { 
    6565    var bytes = parseInt(bytes, 10); 
    66     var mb = bytes / 2^20; 
     66    var mb = bytes / (Math.pow(2, 20)); 
    6767    return mb; 
    6868} 
     
    113113 
    114114    html += "<br><b>Estimated duration:</b> " + minutes + " minutes";  
    115     html += "<br><b>Estimated volume:</b> " + megabytes + " MB"; 
     115    html += "<br><b>Estimated volume:</b> " + megabytes.toFixed(3) + " MB"; 
    116116    html += "<br><br>Please click the submit button to confirm you wish to run the job.<br>";  
    117117 
  • cows_wps/trunk/process_modules/process_base.py

    r7065 r7066  
    3333    arg_processers = {"arg2": int} 
    3434 
    35    def _executeProc(self, context, dry_run): 
     35    def _executeProc(self, context, dry_run): 
    3636        """ 
    3737        This is called to step through the various parts of the process  
Note: See TracChangeset for help on using the changeset viewer.