- Timestamp:
- Dec 21, 2009, 1:11:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/ajaxterm-rebased/code/main.py
r2752 r2753 408 408 409 409 @cherrypy.expose 410 def at(self, machine_id, k=None, c=0 ):410 def at(self, machine_id, k=None, c=0, force=0): 411 411 machine = validation.Validate(cherrypy.request.login, cherrypy.request.state, machine_id=machine_id).machine 412 412 if machine_id in self.atsessions: … … 420 420 self.atmulti.proc_write(term,k) 421 421 time.sleep(0.002) 422 dump=self.atmulti.dump(term,c )422 dump=self.atmulti.dump(term,c,int(force)) 423 423 cherrypy.response.headers['Content-Type']='text/xml' 424 424 if isinstance(dump,str): 425 425 return dump 426 426 else: 427 print "Removing session for", machine_id 427 428 del self.atsessions[machine_id] 428 429 return '<?xml version="1.0"?><idem></idem>'
Note: See TracChangeset
for help on using the changeset viewer.