4 new revisions:
Revision: c8a11a9a2a59
Branch: default
Author: Johnny Goodnow <
j.goo...@gmail.com>
Date: Mon Feb 18 01:58:51 2013
Log: Fix incorrect view aggregation in sync_many (fixes issue 218)....
http://code.google.com/p/couchdb-python/source/detail?r=c8a11a9a2a59
Revision: 11ce5995690b
Branch: default
Author: Dirkjan Ochtman <
dir...@ochtman.nl>
Date: Mon Feb 18 01:59:08 2013
Log: Fix incorrect indentation.
http://code.google.com/p/couchdb-python/source/detail?r=11ce5995690b
Revision: e69a51bb97b2
Branch: default
Author: Dirkjan Ochtman <
dir...@ochtman.nl>
Date: Mon Feb 18 01:59:37 2013
Log: Remove irrelevant unicode string prefixes.
http://code.google.com/p/couchdb-python/source/detail?r=e69a51bb97b2
Revision: 2756d7a300e4
Branch: default
Author: Dirkjan Ochtman <
dir...@ochtman.nl>
Date: Mon Feb 18 01:59:55 2013
Log: Make the couchdb.tests package executable.
http://code.google.com/p/couchdb-python/source/detail?r=2756d7a300e4
==============================================================================
Revision: c8a11a9a2a59
Branch: default
Author: Johnny Goodnow <
j.goo...@gmail.com>
Date: Mon Feb 18 01:58:51 2013
Log: Fix incorrect view aggregation in sync_many (fixes issue 218).
Beforehand, ViewDefinition.sync_many did not sort the views collection which
caused the itertools.groupby call to not aggregates views in the expected
manner (see Python documentation for itertools.groupby for why it is
essential
to sort the collection before the groupby call). This would cause conflicts
if
a design document contained multiple views, and would cause syncing failures
(such as views not existing upon initial sync).
http://code.google.com/p/couchdb-python/source/detail?r=c8a11a9a2a59
Modified:
/couchdb/design.py
=======================================
--- /couchdb/design.py Thu Sep 20 01:12:21 2012
+++ /couchdb/design.py Mon Feb 18 01:58:51 2013
@@ -164,6 +164,7 @@
"""
docs = []
+ views = sorted(views, key=attrgetter('design'))
for design, views in groupby(views, key=attrgetter('design')):
doc_id = '_design/%s' % design
doc = db.get(doc_id, {'_id': doc_id})
==============================================================================
Revision: 11ce5995690b
Branch: default
Author: Dirkjan Ochtman <
dir...@ochtman.nl>
Date: Mon Feb 18 01:59:08 2013
Log: Fix incorrect indentation.
http://code.google.com/p/couchdb-python/source/detail?r=11ce5995690b
Modified:
/couchdb/tests/design.py
=======================================
--- /couchdb/tests/design.py Thu Sep 20 01:12:21 2012
+++ /couchdb/tests/design.py Mon Feb 18 01:59:08 2013
@@ -27,7 +27,7 @@
self.assertTrue(design_doc['views']['foo']['options'] == options)
def test_retrieve_view_defn(self):
- '''see issue 183'''
+ '''see issue 183'''
view_def = design.ViewDefinition('foo', 'bar', 'baz')
result = view_def.sync(self.db)
self.assertTrue(isinstance(result, list))
==============================================================================
Revision: e69a51bb97b2
Branch: default
Author: Dirkjan Ochtman <
dir...@ochtman.nl>
Date: Mon Feb 18 01:59:37 2013
Log: Remove irrelevant unicode string prefixes.
http://code.google.com/p/couchdb-python/source/detail?r=e69a51bb97b2
Modified:
/couchdb/tests/client.py
/couchdb/tests/mapping.py
/doc/conf.py
=======================================
--- /couchdb/tests/client.py Thu Dec 1 02:16:19 2011
+++ /couchdb/tests/client.py Mon Feb 18 01:59:37 2013
@@ -190,7 +190,7 @@
def test_disallow_nan(self):
try:
- self.db['foo'] = {u'number': float('nan')}
+ self.db['foo'] = {'number': float('nan')}
self.fail('Expected ValueError')
except ValueError:
pass
=======================================
--- /couchdb/tests/mapping.py Fri Sep 10 06:16:31 2010
+++ /couchdb/tests/mapping.py Mon Feb 18 01:59:37 2013
@@ -82,7 +82,7 @@
def test_old_datetime(self):
dt = mapping.DateTimeField()
- assert dt._to_python(u'1880-01-01T00:00:00Z')
+ assert dt._to_python('1880-01-01T00:00:00Z')
def test_get_has_default(self):
doc = mapping.Document()
=======================================
--- /doc/conf.py Fri Aug 13 04:56:54 2010
+++ /doc/conf.py Mon Feb 18 01:59:37 2013
@@ -39,8 +39,8 @@
master_doc = 'index'
# General information about the project.
-project = u'couchdb-python'
-copyright = u'2010, Dirkjan Ochtman'
+project = 'couchdb-python'
+copyright = '2010, Dirkjan Ochtman'
# The version info for the project you're documenting, acts as replacement
for
# |version| and |release|, also used in various other places throughout the
@@ -174,8 +174,8 @@
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass
[howto/manual]).
latex_documents = [
- ('index', 'couchdb-python.tex', u'couchdb-python Documentation',
- u'Dirkjan Ochtman', 'manual'),
+ ('index', 'couchdb-python.tex', 'couchdb-python Documentation',
+ 'Dirkjan Ochtman', 'manual'),
]
# The name of an image file (relative to this directory) to place at the
top of
==============================================================================
Revision: 2756d7a300e4
Branch: default
Author: Dirkjan Ochtman <
dir...@ochtman.nl>
Date: Mon Feb 18 01:59:55 2013
Log: Make the couchdb.tests package executable.
http://code.google.com/p/couchdb-python/source/detail?r=2756d7a300e4
Added:
/couchdb/tests/__main__.py
Modified:
/Makefile
/couchdb/tests/__init__.py
=======================================
--- /dev/null
+++ /couchdb/tests/__main__.py Mon Feb 18 01:59:55 2013
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2007 Christopher Lenz
+# All rights reserved.
+#
+# This software is licensed as described in the file COPYING, which
+# you should have received as part of this distribution.
+
+import unittest
+
+from couchdb.tests import client, couch_tests, design, http, multipart, \
+ mapping, view, package, tools
+
+
+def suite():
+ suite = unittest.TestSuite()
+ suite.addTest(client.suite())
+ suite.addTest(design.suite())
+ suite.addTest(http.suite())
+ suite.addTest(multipart.suite())
+ suite.addTest(mapping.suite())
+ suite.addTest(view.suite())
+ suite.addTest(couch_tests.suite())
+ suite.addTest(package.suite())
+ suite.addTest(tools.suite())
+ return suite
+
+
+if __name__ == '__main__':
+ unittest.main(defaultTest='suite')
=======================================
--- /Makefile Sat Jun 5 09:54:41 2010
+++ /Makefile Mon Feb 18 01:59:55 2013
@@ -1,7 +1,7 @@
.PHONY: test doc upload-doc
test:
- PYTHONPATH=. python couchdb/tests/__init__.py
+ PYTHONPATH=. python -m couchdb.tests
doc:
python setup.py build_sphinx
=======================================
--- /couchdb/tests/__init__.py Tue Oct 9 01:04:31 2012
+++ /couchdb/tests/__init__.py Mon Feb 18 01:59:55 2013
@@ -1,30 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2007 Christopher Lenz
-# All rights reserved.
-#
-# This software is licensed as described in the file COPYING, which
-# you should have received as part of this distribution.
-
-import unittest
-
-from couchdb.tests import client, couch_tests, design, http, multipart, \
- mapping, view, package, tools
-
-
-def suite():
- suite = unittest.TestSuite()
- suite.addTest(client.suite())
- suite.addTest(design.suite())
- suite.addTest(http.suite())
- suite.addTest(multipart.suite())
- suite.addTest(mapping.suite())
- suite.addTest(view.suite())
- suite.addTest(couch_tests.suite())
- suite.addTest(package.suite())
- suite.addTest(tools.suite())
- return suite
-
-
-if __name__ == '__main__':
- unittest.main(defaultTest='suite')