Issue 199 in couchdb-python: Defect: The documentation on mappings has errors on the inlined code

5 views
Skip to first unread message

couchdb...@googlecode.com

unread,
Sep 7, 2011, 8:37:04 AM9/7/11
to couchdb...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 199 by mva.led: Defect: The documentation on mappings has errors
on the inlined code
http://code.google.com/p/couchdb-python/issues/detail?id=199

What steps will reproduce the problem?
1. Copy and paste the examples from the mapping.html in the interpreter
(removing, of course, the leading >>> and ...)

What is the expected output? What do you see instead?

A working example.
An error, NameError: name 'Document' is not defined

What version of the product are you using? On what operating system?

A clone from hg. Debian Wheezy.

Please provide any additional information below.

This is easily fixed:

diff -r 77f4db4628bf couchdb/mapping.py
--- a/couchdb/mapping.py Sat Jun 04 17:32:53 2011 +0100
+++ b/couchdb/mapping.py Wed Sep 07 08:33:18 2011 -0400
@@ -15,7 +15,7 @@
To define a document mapping, you declare a Python class inherited from
`Document`, and add any number of `Field` attributes:

->>> from couchdb.mapping import TextField, IntegerField, DateField
+>>> from couchdb.mapping import Document, TextField, IntegerField,
DateField
>>> class Person(Document):
... name = TextField()
... age = IntegerField()


couchdb...@googlecode.com

unread,
Sep 7, 2011, 9:27:35 AM9/7/11
to couchdb...@googlegroups.com

Comment #1 on issue 199 by mva.led: Defect: The documentation on mappings

This is a dupe of #195. Sorry.

couchdb...@googlecode.com

unread,
Jul 6, 2014, 8:11:28 AM7/6/14
to couchdb...@googlegroups.com
Updates:
Status: Duplicate
Mergedinto: 195

Comment #2 on issue 199 by djc.ochtman: Defect: The documentation on
mappings has errors on the inlined code
http://code.google.com/p/couchdb-python/issues/detail?id=199

(No comment was entered for this change.)

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages