Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(27)  |  Call(27)  |  Derive(0)  |  Import(0)

src/o/p/openerp-extra-6.1-HEAD/document_webdav_old/webdav/DAV/WebDAVServer.py   openerp-extra-6.1(Download)
    def send_body(self,DATA,code,msg,desc,ctype='application/octet-stream',headers={}):
        """ send a body in one part """
 
        self.send_response(code,message=msg)
        self.send_header("Connection", "close")
        self.send_header("Accept-Ranges", "bytes")
 
        for a,v in headers.items():
            self.send_header(a,v)
 
        if DATA:
            self.send_header("Content-Length", str(len(DATA)))
            self.send_header("Content-Type", ctype)
        else:

src/e/r/erebus-HEAD/pywebdav/DAV/WebDAVServer.py   erebus(Download)
    def send_body(self,DATA,code,msg,desc,ctype='application/octet-stream',headers={}):
        """ send a body in one part """
 
        self.send_response(code,message=msg)
        self.send_header("Connection", "close")
        self.send_header("Accept-Ranges", "bytes")
 
        for a,v in headers.items():
            self.send_header(a,v)
 
        if DATA:
            self.send_header("Content-Length", str(len(DATA)))
            self.send_header("Content-Type", ctype)
        else: