On Oct 31, 12:53 pm, Marius Gedminas <[email protected]> wrote:
> On Sun, Oct 31, 2010 at 09:28:10AM -0700, cd34 wrote:
> > It seems no matter what I come up with, I'm having to alter routes to
> > handle things and it just seemed like I was overlooking something.
> > I've got workarounds, but, I was just curious how other people have
> > handled similar situations.
> Why not use routes like
>
> /admin/addsite
> /admin/site/{site_id}
> /admin/site/{site_id}/delete
> /admin/site/{site_id}/addsubsite
> /admin/site/{site_id}/subsite/{subsite_id}
> /admin/site/{site_id}/subsite/{subsite_id}/delete
I think this is probably the direction I'm going to head. I was
actually curious if I was just not understanding how applications were
intended to be written around the default routes, or, if adding in
routes was the sign of me not understanding the zen of Pylons.
Switching from ToscaWidgets to FormAlchemy has also been instrumental
in cleaning up urls.
--
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.