Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue 198 in couchdb-python: Naming: mapping.Document conflicts with client.Document
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
couchdb-pyt...@googlecode.com  
View profile  
 More options Sep 6 2011, 11:56 pm
From: couchdb-pyt...@googlecode.com
Date: Wed, 07 Sep 2011 03:56:53 +0000
Local: Tues, Sep 6 2011 11:56 pm
Subject: Issue 198 in couchdb-python: Naming: mapping.Document conflicts with client.Document
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 198 by SpaX...@gmail.com: Naming: mapping.Document conflicts with  
client.Document
http://code.google.com/p/couchdb-python/issues/detail?id=198

Could we rename

     mapping.Document

to

     mapping.DocumentMap

to better avoid the naming confusion?

In addition, the documentation at
http://packages.python.org/CouchDB/mapping.html

says (mine emphasised)

     To define a document mapping, you declare a Python class inherited from  
**Document**, and add any number of Field attributes:

Please change that to

     To define a document mapping, you declare a Python class inherited from  
**mapping.DocumentMap**, and add any number of Field attributes:

This will probably break a lot of things, and is a breaking change, but  
would be nice to see.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Sep 7 2011, 8:43 am
From: couchdb-pyt...@googlecode.com
Date: Wed, 07 Sep 2011 12:43:16 +0000
Local: Wed, Sep 7 2011 8:43 am
Subject: Re: Issue 198 in couchdb-python: Naming: mapping.Document conflicts with client.Document

Comment #1 on issue 198 by mva.led: Naming: mapping.Document conflicts with  
client.Document
http://code.google.com/p/couchdb-python/issues/detail?id=198

I don't really think the name should be changed. However, IMO, the  
documentation is not really helpful in this regards. There should be a  
topic on What's the difference between couchdb.client.Document and  
couchdb.mapping.Document.

This a rather confusing thing at first. Since we may expect some unique  
interface to Documents. However, this is a feature I really appreciate:  
mappings are designed to cover specific use cases; and not all possible  
uses cases. So, having a simple/direct interface to CouchDB json documents  
as dicts is really useful thing.

Best regards,
Manuel.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Sep 7 2011, 8:58 am
From: couchdb-pyt...@googlecode.com
Date: Wed, 07 Sep 2011 12:58:22 +0000
Local: Wed, Sep 7 2011 8:58 am
Subject: Re: Issue 198 in couchdb-python: Naming: mapping.Document conflicts with client.Document

Comment #2 on issue 198 by SpaX...@gmail.com: Naming: mapping.Document  
conflicts with client.Document
http://code.google.com/p/couchdb-python/issues/detail?id=198

Thanks Manuel.  Even if it's a documentation update, I would greatly  
appreciate it, as I lost an hour today trying to figure out why my Document  
(from couchdb import Document, who knew?) didn't inherit from the right  
methods, and I saw iterkeys()...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Oct 11 2012, 7:58 pm
From: couchdb-pyt...@googlecode.com
Date: Thu, 11 Oct 2012 23:58:27 +0000
Local: Thurs, Oct 11 2012 7:58 pm
Subject: Re: Issue 198 in couchdb-python: Naming: mapping.Document conflicts with client.Document
Updates:
        Status: Accepted
        Owner: kxepal
        Labels: Component-Docs Milestone-0.9

Comment #3 on issue 198 by kxepal: Naming: mapping.Document conflicts with  
client.Document
http://code.google.com/p/couchdb-python/issues/detail?id=198

I suppose explicit Document import in documentation have to solve this  
misunderstood.

Attachments:
        couchdb-python-198-r1.patch  806 bytes


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Oct 12 2012, 4:20 am
From: couchdb-pyt...@googlecode.com
Date: Fri, 12 Oct 2012 08:20:47 +0000
Local: Fri, Oct 12 2012 4:20 am
Subject: Re: Issue 198 in couchdb-python: Naming: mapping.Document conflicts with client.Document
Updates:
        Status: Fixed

Comment #4 on issue 198 by djc.ochtman: Naming: mapping.Document conflicts  
with client.Document
http://code.google.com/p/couchdb-python/issues/detail?id=198

I've pushed your patch as revision 911a7e72d8a3, thanks. I think we can  
consider this issue fixed!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »