[Stackless-checkins] CVS: slpdev/src/2.3/psyco-1.2/py-utils httpxam.py, 1.1.1.1, 1.2

Christian Tismer tismer at centera.de
Tue Jul 27 20:49:03 CEST 2004


Update of /home/cvs/slpdev/src/2.3/psyco-1.2/py-utils
In directory centera.de:/tmp/cvs-serv11602/psyco-1.2/py-utils

Modified Files:
	httpxam.py 
Log Message:
added a /restart URL

Index: httpxam.py
===================================================================
RCS file: /home/cvs/slpdev/src/2.3/psyco-1.2/py-utils/httpxam.py,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** httpxam.py	15 Jul 2004 18:32:33 -0000	1.1.1.1
--- httpxam.py	27 Jul 2004 18:49:00 -0000	1.2
***************
*** 202,205 ****
--- 202,206 ----
  
      def send_head(self):
+         global codebufs # CT
          self.trace_prev = None
          self.trace_next = None
***************
*** 410,417 ****
              self.end_headers()
              return f
          
          self.send_error(404, "Invalid path")
          return None
! 
      def donepage(self, title, data):
          f = cStringIO.StringIO(self.htmlpage(title, data))
--- 411,424 ----
              self.end_headers()
              return f
+ 
+         ## CT: simple reload feature
+         if self.path == "/reload":
+             codebufs = xam.readdump(FILENAME)
+             self.path = "/all"
+             return self.send_head()
          
          self.send_error(404, "Invalid path")
          return None
!     
      def donepage(self, title, data):
          f = cStringIO.StringIO(self.htmlpage(title, data))
***************
*** 436,438 ****
--- 443,446 ----
      tracefilename = os.path.join(DIRECTORY, 'psyco.trace')
      codebufs = xam.readdump(filename)
+     FILENAME = filename # CT hack
      test(CodeBufHTTPHandler)


_______________________________________________
Stackless-checkins mailing list
Stackless-checkins at stackless.com
http://www.stackless.com/mailman/listinfo/stackless-checkins



More information about the Stackless-checkins mailing list