Hi,

I'm working through the SimpleSite example project in the the online
version of the Pylons Book. At the end of the "Changing the Routing"
section of Chapter 14, when as instructed I browse http://localhost:5000/
expecting to see the same result as browsing http://localhost:5000/page/view/6,
instead I get this exception: "NotImplementedError: Action 'view' is
not implemented".

While Chapter 14 is a long one, with lots of changes to the SimpleSite
example, up until I started the Changing the Routing section of
Chapter 14 everything was working as expected. I've gone back over the
code changes I've made through the chapter and AFAIK I've made all the
updates correctly.

I've posted the traceback at 
http://pylonshq.com/tracebacks/02d183c5f5e350a65dcc112f5d0be174

Here are some other clues:

- I get the same error when I browse http://localhost:5000/index. If I
browse http://localhost:5000/index/ (note the slash), I get the
"Create Section" template, as expected.

- If I browse the old URL http://localhost:5000/page/view/6, I get
this error:

KeyError: 'simplesite.navigation'
Module simplesite.controllers.page:89 in view
>>  c.menu = request.environ['simplesite.navigation']['menu']
KeyError: 'simplesite.navigation'

- in the traceback in Module pylons.controllers.core:178 in
_dispatch_call, self is <simplesite.controllers.nav.NavController
object at 0x032FFBB0>, possibly indicating the 'view' action is
missing from the NavController? But in the book, there is no 'view'
action in NavController.

I'm stumped. I'm not sure how to best apply Pylon's debugging
facilities to figure this one out. Any help is truly appreciated.

Philip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to