Merge lp:~leonardr/lazr.restful/fix-remove-recipe into lp:lazr.restful

Proposed by Leonard Richardson
Status: Rejected
Rejected by: Leonard Richardson
Proposed branch: lp:~leonardr/lazr.restful/fix-remove-recipe
Merge into: lp:lazr.restful
Diff against target: 45 lines (+8/-4)
3 files modified
src/lazr/restful/NEWS.txt (+6/-0)
src/lazr/restful/example/base/configure.zcml (+1/-3)
src/lazr/restful/version.txt (+1/-1)
To merge this branch: bzr merge lp:~leonardr/lazr.restful/fix-remove-recipe
Reviewer Review Type Date Requested Status
Leonard Richardson (community) Disapprove
Review via email: mp+24423@code.launchpad.net

Description of the change

This very simple branch adds 'removeRecipe' to the list of "require" attributes for Cookbook, so that the Zope security proxy allows that method to be called. Without this change, lazr.restfulclient can't DELETE a recipe.

Why is there no test? Because I can't figure out why the existing tests pass. The same code runs whether we test DELETE in lazr.restful or lazr.restfulclient. I don't see why the Zope security proxy shouldn't be running in the lazr.restful tests, but clearly it hasn't been.

Is this mystery worth resolving right now?

To post a comment you must log in.
Revision history for this message
Leonard Richardson (leonardr) wrote :

This seems not to have been necessary--presumably it wasn't a real problem or was resolved some other way.

review: Disapprove

Unmerged revisions

128. By Leonard Richardson

Initial representation.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/lazr/restful/NEWS.txt'
2--- src/lazr/restful/NEWS.txt 2010-04-14 15:04:35 +0000
3+++ src/lazr/restful/NEWS.txt 2010-04-29 13:39:23 +0000
4@@ -2,6 +2,12 @@
5 NEWS for lazr.restful
6 =====================
7
8+0.9.26 (2010-04-29)
9+===================
10+
11+Corrected a bit of ZCML that was causing lazr.restfulclient test
12+failures.
13+
14 0.9.25 (2010-04-14)
15 ===================
16
17
18=== modified file 'src/lazr/restful/example/base/configure.zcml'
19--- src/lazr/restful/example/base/configure.zcml 2009-09-01 14:37:41 +0000
20+++ src/lazr/restful/example/base/configure.zcml 2010-04-29 13:39:23 +0000
21@@ -6,8 +6,6 @@
22 <webservice:register module="lazr.restful.example.base.interfaces" />
23 <grok:grok package="lazr.restful.example.base" />
24
25- <!--Security configuration-->
26-
27 <permission id="lazr.restful.example.base.View" title="Viewing something" />
28 <permission id="lazr.restful.example.base.ViewPrivate"
29 title="Viewing private information" />
30@@ -20,7 +18,7 @@
31 <require attributes="name copyright_date cover cuisine description
32 recipes find_recipe_for find_recipes last_printing
33 make_more_interesting price replace_cover
34- revision_number get"
35+ revision_number get removeRecipe"
36 set_attributes="name copyright_date cover cuisine description
37 last_printing price revision_number"
38 permission="zope.Public" />
39
40=== modified file 'src/lazr/restful/version.txt'
41--- src/lazr/restful/version.txt 2010-04-13 21:07:08 +0000
42+++ src/lazr/restful/version.txt 2010-04-29 13:39:23 +0000
43@@ -1,1 +1,1 @@
44-0.9.25
45+0.9.26

Subscribers

People subscribed via source and target branches