Victor wrote: > class Controller(tg.Controller): > @tg.expose() > def admin(self, ...): > pass > > @tg.expose() > def post(self, ...) > pass > > @tg.expose() > def view(self, ...) > pass > > I want the first directory name be a parameter. Is that possible to > achieve this with turbogears? >
Just take positional parameters in your exaple.com/index controller. The first two will be 'tom' and 'admin', for instance. From there, call and redirect as you wish. @tg.expose def index(self, name, action, *args, **kw): ... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

