On Jun 30, 12:38 pm, iain duncan <[EMAIL PROTECTED]> wrote:
> So, what url would you use for requesting a form for a new piece?

I use news/add, it has the same syntax as news/list & news/find, which
I also use.

> The asymmetry of news/1/edit and news/new seems weird to me, as the verb
> arg is changing position. Me, I'm still confused as to news/edit/1 vs 
> news/1/edit.

I find it helps to think of it as (news/1)/edit, where (news/1) ==
NewsEntity(id==1).

So news/new is controller/action, while news/1/edit is entity/action.

This lets me chain behaviour nicely, allowing for - say - /item/list
to list all items, and client/1/item/list to list only those belonging
to the specified client.

-alex23


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to