Am 15.07.2010 um 00:27 schrieb Guyren G Howe:
On Jul 14, 2010, at 14:50 , Michael Pedersen wrote:
Routes integration *does* work (well, so far as I know, having
never used it). For me, I followed the tutorials, all of which
focused on Object Dispatch as the mechanism to use. If you could
point me to a page that suggests that Routes is the right way, I'd
appreciate it. I've been over the docs, and don't recall seeing
anything that suggested it.
Thank you for that help, btw. And yes, giving me a page that shows
me that will be helpful.
So it's unclear why a very simple routes file is failing for me, if
it's supposed to work.
What I did was, following the pylons docs here <http://pylonshq.com/docs/en/0.9.7/controllers/#using-the-rest-controller-with-a-restful-api
>
paster restcontroller incident incidents
Then inside my incidents controller, I see this comment:
# To properly map this controller, ensure your config/routing.py
# file has a resource setup:
# map.resource('incident', 'incidents')
which I dutifully did, and it didn't work. Queue a very long trip
down the rabbit hole trying to work out why, and I still have no
good idea.
It's pylons docs, not TG2 docs. So while they certainly have much in
common, setting up routes isn't one of them.
How about you try following TG2 docs, and rest assured (pun intended)
that things will work out?
For example, your concerns that led you down a routes-route in the
first place might well be addressed by this:
http://turbogears.org/2.0/docs/main/RestControllers.html
Diez
--
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en.