I have an application that is split into micro-services. Each micro service 
defines an "includeme".

each micro-service is loaded  using 

    # service is a module 
    config.include (service, route_prefix = service_name)

A typical service has something like :

def includeme(config)

    config.add_route ('service_index', '/')

    config.add_route ('service_path', '/*path')

    config.scan('.')

I would like to support that same service, but at an "old" service name.  I 
cannot use a 30X redirect as many service support
PUT/POST at their views.

I tried something like :

    # service is a module 
    config.include (service, route_prefix = service_name)
    if service_name in OLD_SERVICE_NAMES:
        config.include (service, route_prefix = 
OLD_SERVICE_NAMES[service_name])

Unfortunately none of the old service paths were enabled, probably due to 
the requirement that each have a unique route name?

Any suggestions to supporting this without resorting to adding the routes 
and views manually would be appreciated.

Thanks,
Kris


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to