On 12/22/05, reflog <[EMAIL PROTECTED]> wrote:
>
> Hi there.
> I've been working on adding an 'admin' part for my site, and since this
> involves some CRUD, i've tried using DataController for it. Now
> apparently I don't understand the whole concept, but here's how i tried
> using it:
>
> class AdminController(controllers.Root):
>     blog = datacontroller.DataController(Blog)
>     user = datacontroller.DataController(TG_User)
>
> now http://localhost:8080/admin/user displays a nice edit/view for for
> the sql class, but all links point to wrong urls, like:
>
> http://localhost:8080/admin/add
> http://localhost:8080/admin/1/edit
> http://localhost:8080/admin/1/delete
>
> am i missing something?

Yes... a "/" on the end. I wonder if there's an easy way to make it
redirect with the trailing slash automatically...

Kevin

Reply via email to