Merge lp:~benji/lazr.restful/tweak-etag into lp:lazr.restful
| Status: | Merged |
|---|---|
| Approved by: | Paul Hummer on 2010-10-01 |
| Approved revision: | 155 |
| Merged at revision: | 151 |
| Proposed branch: | lp:~benji/lazr.restful/tweak-etag |
| Merge into: | lp:lazr.restful |
| Diff against target: |
527 lines (+347/-51) 6 files modified
src/lazr/restful/_resource.py (+61/-48) src/lazr/restful/testing/helpers.py (+12/-0) src/lazr/restful/tests/test_etag.py (+253/-0) src/lazr/restful/tests/test_utils.py (+15/-3) src/lazr/restful/utils.py (+5/-0) versions.cfg (+1/-0) |
| To merge this branch: | bzr merge lp:~benji/lazr.restful/tweak-etag |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Paul Hummer (community) | 2010-09-30 | Approve on 2010-10-01 | |
|
Review via email:
|
|||
Description of the Change
The ETag generation in lazr.restful was a bit too conservative. It used the revision number in every ETag when it is only needed in a subset. This branch moves the inclusion of revno "down" into the subclasses that need it. Tests for the various ETag generating method/functions were added as well as tests for the (existing) read/write ETag checking routines.
Leonard and I had pre-, intra-, and post-implementation discussions.
| Stuart Bishop (stub) wrote : | # |
| Benji York (benji) wrote : | # |
On Thu, Sep 30, 2010 at 11:15 PM, Stuart Bishop
<email address hidden> wrote:
> I notice you are adding a roman numeral package to buildout, but are not using it.
That's a change from another branch that I'll probably be reverting. I
think I got a hold of a bad docutils somehow that was missing roman.
--
Benji York
| Leonard Richardson (leonardr) wrote : | # |
I have some minor comments, but overall this is a good branch.
In addition to the 'roman' package, you've got a normalizer that makes Unicode strings look the same as regular strings. I don't think that's the best way to solve your problem, but you should talk it over with Gary.
make_entry_
Similarly, you don't need "modifiable" in test_writable_
Do you want to add a test to test_cores_
| Benji York (benji) wrote : | # |
I fixed the roman problem by nuking my docutils eggs and reinstalling.
- 156. By Benji York <benji@benji-laptop> on 2010-10-01
-
remove unneeded reNormalizer
| Benji York (benji) wrote : | # |
I made all the changes Leonard suggested except for the last one which we discussed away.

I notice you are adding a roman numeral package to buildout, but are not using it.