diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-02-04 13:02:41 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-02-04 13:02:41 +0000 |
| commit | 98e0d06a77fef4cec0266510f2d02975ce56c405 (patch) | |
| tree | 3e59622fe467bc2ac4019c95c956f8ed43ce892c /repoze/bfg/tests/restbugapp/configure.zcml | |
| parent | cb968d991b5466286aa3d53af20d405c3c48a17c (diff) | |
| download | pyramid-98e0d06a77fef4cec0266510f2d02975ce56c405.tar.gz pyramid-98e0d06a77fef4cec0266510f2d02975ce56c405.tar.bz2 pyramid-98e0d06a77fef4cec0266510f2d02975ce56c405.zip | |
- 1.2b4 introduced a bug whereby views added via a route configuration
that named a view callable and also a ``view_attr`` became broken.
Symptom: ``MyViewClass is not callable`` or the ``__call__`` of a
class was being called instead of the method named via
``view_attr``.
Diffstat (limited to 'repoze/bfg/tests/restbugapp/configure.zcml')
| -rw-r--r-- | repoze/bfg/tests/restbugapp/configure.zcml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/repoze/bfg/tests/restbugapp/configure.zcml b/repoze/bfg/tests/restbugapp/configure.zcml new file mode 100644 index 000000000..67954b892 --- /dev/null +++ b/repoze/bfg/tests/restbugapp/configure.zcml @@ -0,0 +1,25 @@ +<configure xmlns="http://namespaces.repoze.org/bfg"> + + <include package="repoze.bfg.includes"/> + + <route + path="/pet" + name="gameactions_pet_get_pets" + view=".views.PetRESTView" + view_attr="GET" + request_method="GET" + permission="view" + renderer="json" + /> + + <route + path="/pet" + name="gameactions_pet_care_for_pet" + view=".views.PetRESTView" + view_attr="POST" + request_method="POST" + permission="view" + renderer="json" + /> + +</configure> |
