ohh.... emm.. i am speechless and red... :)
but thanks a lot that was the problem!
Timor A.
On Sep 18, 3:30 pm, "Florent Aide" <[EMAIL PROTECTED]> wrote:
> On 9/18/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
> > i have the following structure:
>
> > controllers
> > controllers/root.py
> > controllers/backoffice/backoffice.py
> > controllers/backoffice/backorder.py
>
> > in root.py:
> > from backoffice.backoffice import Backoffice
>
> > class Root(controllers.RootController):
>
> > backoffice=Backoffice()
>
> This is you root controller and you are "mounting" Backoffice at the
> "backoffice" mountpoint at the moment you instanciate the Backoffice
> controller
>
>
>
> > in controllers/backoffice/backoffice.py
> > from backorder import *
>
> > class Backoffice(controllers.RootController):
> > backorder=Backorder()
> > @expose('')
> > def index(self):
> > return dict(x=tg.url('/'))
>
> tg.url('/') is fooled because you declared Backoffice as a
> RootController... but it is not really a root controller since you
> mounted it under another root controller...
>
> So you should declare Backoffice as a simple controllers.Controller
> and tg.url will be able to really see the Truth :)
>
> Florent.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---