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()
in controllers/backoffice/backoffice.py
from backorder import *
class Backoffice(controllers.RootController):
backorder=Backorder()
@expose('')
def index(self):
return dict(x=tg.url('/'))
the result is {"tg_flash": null, "x": "/backoffice/"}
isn't should be "/" ?
or do i miss something here ?
another thing; paginate with datagrid in /backoffice/backorde/indexr
creates the following urls:
/backoffice/backorder/backoffice/backorder/?......
but only with the '>' and '>>' links, the urls in page numbers are
fine...
anyone have an idea what i'm doing wrong?
in config/app.cfg
server.webpath = "/"
* TurboGears 1.0.6
* TurboKid 1.0.4
* TurboJson 1.1.4
* TurboCheetah 1.0
* simplejson 1.9.2
* setuptools 0.6c8
* RuleDispatch 0.5a1.dev-r2506
* PasteScript 1.6.3
* FormEncode 1.0.1
* DecoratorTools 1.7
* configobj 4.5.2
* CherryPy 2.3.0
* Cheetah 2.0.1
* PasteDeploy 1.3.2
* Paste 1.7.1
Thank you in advance,
Timor A.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---