예제 #1
0
파일: client.py 프로젝트: ssmir/couchapp
    def __init__(self, uri="http://127.0.0.1:5984", **client_opts):
        """Constructor for a `CouchdbResource` object.

        CouchdbResource represent an HTTP resource to CouchDB.

        @param uri: str, full uri to the server.
        """
        client_opts['response_class'] = CouchdbResponse
        
        Resource.__init__(self, uri=uri, **client_opts)
        self.safe = ":/%"