Also: this seems inefficient. Clearly I'm missing something.
First, the reason for separated routing is that it means you can
change your URLs without having to rewrite your entire app logic. This
does not seem a trivial concern.
Second, this would seem to leave me now with writing a restful app by
writing methods on root that look like:
def thing(self, **kw):
if request.method == 'POST':
ThingsController.post(kw)
if request.method == 'GET':
ThingsController.index(kw)
etc, which is the kind of tedious busy work I expect my web framework
to do for me. Not to mention my root controller is going to get
awfully busy.
Not trolling; I'm clearly missing something. If I'm not to fix these
issues with a routing file, what is the idiomatic solution?
--
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.