How to use the uritemplate._quote function in uritemplate

To help you get started, we’ve selected a few uritemplate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ncbi / robotframework-pageobjects / robotpageobjects / selectortemplate.py View on Github external
""" A monkey patch for uritemplate which doesn't do any url escaping.
"""

import uritemplate
orig_quote = uritemplate._quote

def expand(template, variables):
    uritemplate._quote = _no_quote
    ret = uritemplate.expand(template, variables)
    uritemplate._quote = orig_quote
    return ret

def _no_quote(value, safe, prefix=None):
    return value
github ncbi / robotframework-pageobjects / robotpageobjects / selectortemplate.py View on Github external
def expand(template, variables):
    uritemplate._quote = _no_quote
    ret = uritemplate.expand(template, variables)
    uritemplate._quote = orig_quote
    return ret
github ncbi / robotframework-pageobjects / robotpageobjects / selectortemplate.py View on Github external
def expand(template, variables):
    uritemplate._quote = _no_quote
    ret = uritemplate.expand(template, variables)
    uritemplate._quote = orig_quote
    return ret