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

All Samples(6)  |  Call(6)  |  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")
    def send_body_chunks(self,DATA,code,msg,desc,ctype='text/xml; encoding="utf-8"'):
        """ send a body in chunks """
 
        self.responses[207]=(msg,desc)
        self.send_response(code,message=msg)
    def do_OPTIONS(self):
        """return the list of capabilities """
        self.send_response(200)
        self.send_header("Allow", "GET, HEAD, COPY, MOVE, POST, PUT, PROPFIND, PROPPATCH, OPTIONS, MKCOL, DELETE, TRACE")
        self.send_header("Content-Type", "text/plain")

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")
    def send_body_chunks(self,DATA,code,msg,desc,ctype='text/xml; encoding="utf-8"'):
        """ send a body in chunks """
 
        self.responses[207]=(msg,desc)
        self.send_response(code,message=msg)
    def do_OPTIONS(self):
        """return the list of capabilities """
        self.send_response(200)
        self.send_header("Content-Type", "text/plain")