what does your admincontroller look like?

On 3/25/07, iain duncan <[EMAIL PROTECTED]> wrote:
>
> I'm sure I'm missing something really simple here ...
>
> I put my admin subcontroller in a package called ( originally enough )
> subcontrollers. It inherits from controllers.Controller and it's called
> AdminController. My root controller now starts like this:
>
> from subcontrollers.admin import AdminController
>
> class Root(controllers.RootController):
>    admin = AdminController()
>
>    etc etc
>
>
>
> Everything imports ok, and the server starts up fine. But, I can't
> figure out how to get an http request to call the admin() method in the
> admin controller. I want the url /admin to call it. I tried naming it
> admin, and I tried naming it index. But when I hit /admin, instead it
> falls through to the default method of my root controller. Can anyone
> tell me what I'm missing here? I'm sure it's painfully obvious but my
> sleep head is not finding it. :/
>
> Thanks
> Iain
>
>
> >
>


-- 
cheers
    elvelind grandin

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