lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

Small bug in client.Server.__repr__ and http.Session._get_connection #116

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am on changeset:   282:509aff57cd2f

1. Printing a Server instance (calling __repr__)

---------------------------------
Traceback (most recent call last):
  File "testdb.py", line 5, in <module>
    print srv, dir(srv)
  File "build/bdist.linux-x86_64/egg/couchdb/client.py", line 123, in __repr__
AttributeError: 'Resource' object has no attribute 'uri'
---------------------------------

Fixed by s/uri/url/

2. Using a https URL for connecting to couchdb

---------------------------------
Traceback (most recent call last):
  File "testdb.py", line 7, in <module>
    db = srv['stat-events']
  File "build/bdist.linux-x86_64/egg/couchdb/client.py", line 143, in
__getitem__
  File "build/bdist.linux-x86_64/egg/couchdb/http.py", line 372, in head
  File "build/bdist.linux-x86_64/egg/couchdb/http.py", line 386, in _request
  File "build/bdist.linux-x86_64/egg/couchdb/http.py", line 165, in request
  File "build/bdist.linux-x86_64/egg/couchdb/http.py", line 332, in
_get_connection
AttributeError: 'Session' object has no attribute 'scheme'
---------------------------------

Fixed by s/self.scheme/scheme/

See diff attached!

Original issue reported on code.google.com by mark.schloesser@gmail.com on 18 Feb 2010 at 10:57

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by matt.goo...@gmail.com on 20 Feb 2010 at 6:59

GoogleCodeExporter commented 8 years ago
Server.__repr__ fixed in rfb4d92b2f4, with test. https connection fixed in 
rcc1678ca90, no test but checked behind nginx.

Original comment by matt.goo...@gmail.com on 20 Feb 2010 at 7:12