Issue 189 in couchdb-python: Mapping example in documentation has wrong import

5 views
Skip to first unread message

couchdb...@googlecode.com

unread,
Jul 6, 2011, 9:52:47 AM7/6/11
to couchdb...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 189 by petroun...@gmail.com: Mapping example in documentation has
wrong import
http://code.google.com/p/couchdb-python/issues/detail?id=189

The example at http://packages.python.org/CouchDB/mapping.html has the
following import:

from couchdb.mapping import TextField, IntegerField, DateField

but uses a DateTimeField:

added = DateTimeField(default=datetime.now)


It also assumes:

from datetime import datetime

couchdb...@googlecode.com

unread,
Oct 11, 2012, 8:02:31 PM10/11/12
to couchdb...@googlegroups.com
Updates:
Status: Accepted
Owner: kxepal
Labels: Component-Docs Milestone-0.9

Comment #1 on issue 189 by kxepal: Mapping example in documentation has
wrong import
http://code.google.com/p/couchdb-python/issues/detail?id=189

Thanks for reporting! Patch attached. Probably it have to be merged with
patch from issue 198.

Attachments:
couchdb-python-189-r1.patch 718 bytes

couchdb...@googlecode.com

unread,
Oct 12, 2012, 4:19:47 AM10/12/12
to couchdb...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 189 by djc.ochtman: Mapping example in documentation
I've taken your patch as revision 3ae1ee5eb0a1, thanks, and also changed
the DateField to DateTimeField in revision 6a05bf775acc.

Reply all
Reply to author
Forward
0 new messages