History | View | Annotate | Download (3.5 kB)
common: join_url helper improvements
- Handle single arguments- Avoid lstrip'ing first argument
common: more improvements in join_urls
common: Support multiple arguments in join_urls util
make synnefo URLs consistent and configurable
https://service.deployment.vendor.tld/service-base/api-prefix/hard/path |___________________________________| |__________| |________| |_______| BASE_HOST BASE_PATH PREFIX Hardcoded...
Use custom method for joining urls
Implement 'join_urls' method for joining a base URL with a path,without worrying about redundant or missing "/". Do not use'urlparse.urljoin', since it has different semantics.
Common synnefo lib
Includes the following helpers to be used by synnefo django apps
- logging config initialization middlware- astakos authentication helpers- parse_http_date compat helper- rabbitmq client using pika