i *think* it is one or the other, but not both. :(
there may be a routers equivalent to my suggestion, but i don't know it.
:( i know that you can convert routers into the routes_in/routes_out style.
On 8/21/12 12:41 , Daniel Gonzalez wrote:
Thanks howesc and Derek,
Your solution is working, but it is conflicting with routers. This is my
full routes.py:
routers = dict(
BASE = dict(
default_application = 'app1',
),
myapp = dict(
default_controller = 'controller1',
default_function = 'start',
),
)
routes_in = (
('/hello', '/app1/controller1/hello'),
('/bye', '/app1/controller2/bye'),
)
I need both the shortcuts /hello and /bye, and the routers configuration.
Is this possible?
BR,
Daniel
On Tuesday, August 21, 2012 9:17:06 PM UTC+2, howesc wrote:
that's what i get for typing so quickly! thanks for spotting my mistake.
:)
On 8/21/12 12:15 , Derek wrote:
wrong.
routes_in = ( ('/hello', '/app1/controller1/hello'), ('/bye',
'/app1/controller*2*/bye'))
On Tuesday, August 21, 2012 9:42:27 AM UTC-7, howesc wrote:
routes_in = ( ('/hello', '/app1/controller1/hello'), ('/bye',
'/app1/controller1/bye'))
On Tuesday, August 21, 2012 1:28:49 AM UTC-7, Daniel Gonzalez wrote:
Hello,
I have the following routing requirements, which I am unable to
configure
in routes.py:
www.mysite.com/hello -> application1, controller1, hello
www.mysite.com/bye -> application1, controller2, bye
As you can see, the functions hello and bye are in different
controllers.
Is it possible to achieve this with routes.py?
Thanks,
Daniel
--