monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] ViewMTN 0.04


From: Eric Anderson
Subject: Re: [Monotone-devel] ViewMTN 0.04
Date: Wed, 7 Sep 2005 23:30:20 -0700

Grahame,
        I made two minor fixes to wrapper.py in our local copy of
viewmtn 0.03.  It changes the script to just send out the results from
generating the tar file, rather than building an internal string and
then sending it.  This eliminated a problem of downloading a large tar
file timing out while it was constructed.  Since data is flowing, the
connection doesn't timeout.
        The second fix was a bug workaround documented on
issues.apache.org (http://issues.apache.org/jira/browse/MODPYTHON-12)
I was running into it on Debian stable (possibly testing/unstable).
        -Eric

*** wrapper.py.~1~      Sun Jul  3 18:18:09 2005
--- wrapper.py  Sun Jul  3 23:15:34 2005
***************
*** 55,61 ****
                        self.buf = nb
                        return rv
                def write(self, s):
!                       self.buf += s
        mt = Monotone(config.monotone, config.dbfile) 
        form = util.FieldStorage(req)
        if not form.has_key('id'):
--- 58,64 ----
                         self.buf = nb
                         return rv
                 def write(self, s):
!                        req.write(s)
         mt = Monotone(config.monotone, config.dbfile) 
         form = util.FieldStorage(req)
         if not form.has_key('id'):


*** wrapper.py.~1~      Sun Jul  3 18:18:09 2005
--- wrapper.py  Sun Jul  3 23:15:34 2005
***************
*** 1,5 ****
! 
! from mod_python import apache,psp,util
  import config
  import monotone
  import mimetypes
--- 1,8 ----
! from mod_python import apache
! # bug workaround from:
! # http://issues.apache.org/jira/browse/MODPYTHON-12
! psp = apache.import_module("mod_python.psp")
! from mod_python import util
  import config
  import monotone
  import mimetypes




reply via email to

[Prev in Thread] Current Thread [Next in Thread]