Ignore:
Timestamp:
Dec 21, 2009, 1:12:05 AM (14 years ago)
Author:
broder
Message:

Use browser-based dupe suppression, so multiple clients can connect to the same terminal and not miss updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/ajaxterm-rebased/code/main.py

    r2759 r2761  
    414414        @cherrypy.tools.require_POST()
    415415        @cherrypy.tools.gzip()
    416         def at(self, machine_id, k=None, c=0, force=0):
     416        def at(self, machine_id, k=None, c=0, h=None):
    417417            machine = validation.Validate(cherrypy.request.login, cherrypy.request.state, machine_id=machine_id).machine
    418418            with self.atsessions_lock:
     
    432432                    self.atmulti.proc_write(term,k)
    433433                time.sleep(0.002)
    434                 dump=self.atmulti.dump(term,c,int(force))
     434                dump=self.atmulti.dump(term,c,h)
    435435                cherrypy.response.headers['Content-Type']='text/xml'
    436436                if isinstance(dump,str):
Note: See TracChangeset for help on using the changeset viewer.