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
Message from discussion couchdb.mapping.Document rev attribute
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
 
Alexander Shorin  
View profile  
 More options Jul 17 2012, 10:48 am
From: Alexander Shorin <kxe...@gmail.com>
Date: Tue, 17 Jul 2012 18:48:59 +0400
Local: Tues, Jul 17 2012 10:48 am
Subject: Re: couchdb.mapping.Document rev attribute
Hi Adam!

Mostly because this is system internal field, that not supposed to be
touched by clients. Accidental his changing may create unexpectable
conflict situations.
To create mapping.Document instance based on view result you have two ways:
1. Use ViewField to gain result data and Document class as result row wrapper.
2. Wrap view result manually by Document class on instance
initialization. Document revision would be automatically set by `_rev`
key parameter.

--
,,,^..^,,,

On Tue, Jul 17, 2012 at 5:51 PM, adam.cajf <adam.c...@gmail.com> wrote:
> I'd like to know why rev property of the couchdb.mapping.Document class is
> read-only attribute. Even id attribute can be set, and I need in my project
> to create a new Document with rev, which I obtain from CouchDB view. I know
> that rev is generated in CouchDB, but that's a pity that creators didn't
> predict such an exception. Moreover, in my humble opinion there should be a
> get method for the Document class that could obtain many ids as a paramter.

> --
> You received this message because you are subscribed to the Google Groups
> "CouchDB-Python" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/couchdb-python/-/t0XgDS2BQBkJ.
> To post to this group, send email to couchdb-python@googlegroups.com.
> To unsubscribe from this group, send email to
> couchdb-python+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/couchdb-python?hl=en.


 
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.