[couchdb-python] 2 new revisions pushed by djc.ochtman on 2013-04-25 10:25 GMT

1 view
Skip to first unread message

couchdb...@googlecode.com

unread,
Apr 25, 2013, 6:26:05 AM4/25/13
to couchdb...@googlegroups.com
2 new revisions:

Revision: b4a5dc83fa00
Branch: default
Author: Dirkjan Ochtman <dir...@ochtman.nl>
Date: Thu Apr 25 03:23:26 2013
Log: Update ChangeLog.
http://code.google.com/p/couchdb-python/source/detail?r=b4a5dc83fa00

Revision: 4ec222711935
Branch: default
Author: Johnny Goodnow <j.goo...@gmail.com>
Date: Thu Apr 25 03:25:22 2013
Log: Add test for sync_many issue (issue 218).
http://code.google.com/p/couchdb-python/source/detail?r=4ec222711935

==============================================================================
Revision: b4a5dc83fa00
Branch: default
Author: Dirkjan Ochtman <dir...@ochtman.nl>
Date: Thu Apr 25 03:23:26 2013
Log: Update ChangeLog.
http://code.google.com/p/couchdb-python/source/detail?r=b4a5dc83fa00

Modified:
/ChangeLog.txt

=======================================
--- /ChangeLog.txt Fri Sep 21 00:54:03 2012
+++ /ChangeLog.txt Thu Apr 25 03:23:26 2013
@@ -4,27 +4,32 @@
* Don't validate database names on the client side. This means some
methods
dealing with database names can return different exceptions than before.
* Use HTTP socket more efficiently to avoid the Nagle algorithm, greatly
- improving performace. Note: add the {nodelay, true} option to the
CouchDB
+ improving performace. Note: add the `{nodelay, true}` option to the
CouchDB
server's httpd/socket_options config.
* Add support for show and list functions.
* Add support for calling update handlers.
* Add support for purging documents.
+ * Add `iterview()` for more efficient iteration over large view results.
* Add view cleanup API.
- * Enhance Server.stats() to optionally retrieve a single set of
statistics.
- * Implement Session timeouts.
- * Add `error` property to Row objects.
- * Add default=None arg to mapping.Document.get() to make it a little more
+ * Enhance `Server.stats()` to optionally retrieve a single set of
statistics.
+ * Implement `Session` timeouts.
+ * Add `error` property to `Row` objects.
+ * Add `default=None` arg to `mapping.Document.get()` to make it a little
more
dict-like.
- * Enhance Database.info() so it can also be used to get info for a design
+ * Enhance `Database.info()` so it can also be used to get info for a
design
doc.
* Add view definition options, e.g. collation.
- * Protect ResponseBody from being iterated/closed multiple times.
- * Rename iteration method for ResponseBody chunks to iterchunks() to
+ * Fix support for authentication in dump/load tools.
+ * Support non-ASCII document IDs in serialization format.
+ * Protect `ResponseBody` from being iterated/closed multiple times.
+ * Rename iteration method for ResponseBody chunks to `iterchunks()` to
prevent usage for non-chunked responses.
- * JSON encoding exception are no longer masked, giving clearer errors.
- * cjson support is now deprecated.
- * Fix Row.value and Row.__repr__ to never raise exceptions.
+ * JSON encoding exceptions are no longer masked, resulting in better error
+ messages.
+ * `cjson` support is now deprecated.
+ * Fix `Row.value` and `Row.__repr__` to never raise exceptions.
* Fix Python view server's reduce to handle empty map results list.
+ * Use locale-independent timestamp identifiers for HTTP cache.
* Don't require setuptools/distribute to install the core package. (Still
needed to install the console scripts.)


==============================================================================
Revision: 4ec222711935
Branch: default
Author: Johnny Goodnow <j.goo...@gmail.com>
Date: Thu Apr 25 03:25:22 2013
Log: Add test for sync_many issue (issue 218).
http://code.google.com/p/couchdb-python/source/detail?r=4ec222711935

Modified:
/couchdb/tests/design.py

=======================================
--- /couchdb/tests/design.py Mon Feb 18 01:59:08 2013
+++ /couchdb/tests/design.py Thu Apr 25 03:25:22 2013
@@ -36,6 +36,18 @@
doc = self.db[result[0][1]]
self.assertEqual(result[0][2], doc['_rev'])

+ def test_sync_many(self):
+ '''see issue 218'''
+ func = 'function(doc) { emit(doc._id, doc._rev); }'
+ first_view = design.ViewDefinition('design_doc', 'view_one', func)
+ second_view = design.ViewDefinition('design_doc_two', 'view_one',
func)
+ third_view = design.ViewDefinition('design_doc', 'view_two', func)
+ _, db = self.temp_db()
+ results = design.ViewDefinition.sync_many(
+ db, (first_view, second_view, third_view))
+ self.assertEqual(
+ len(results), 2, 'There should only be two design documents')
+

def suite():
suite = unittest.TestSuite()
Reply all
Reply to author
Forward
0 new messages