def __init__(self, map, *items): BaseConverter.__init__(self, map) self.regex = items[0]
def __init__(self, map): BaseConverter.__init__(self, map) self.regex = '(?:%s)' % '|'.join([re.escape(x) for x in NEWS_URLS])
def __init__(self, map): BaseConverter.__init__(self, map) self.regex = '\w+(?:-\w+)*'
def __init__(self, url_map): BaseConverter.__init__(self, url_map) self.regex = (r'(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}' r'==|[A-Za-z0-9_-]{3}=)?')
def __init__(self, url_map): BaseConverter.__init__(self, url_map) self.regex = r'(?i)(?:WQL)'
def __init__(self, *args, **kwargs): BaseConverter.__init__(self, *args, **kwargs) self.type_ = "string"
def __init__(self, url_map): BaseConverter.__init__(self, url_map) self.regex = r'[a-zA-Z_][a-zA-Z0-9_]*'
def __init__(self, map, *args): BaseConverter.__init__(self,map) self.map = map self.regex = args[0]
def __init__(self, url_map, ext): BaseConverter.__init__(self, url_map) self.regex = '[^/].*?(?:{})'.format(ext)
def __init__(self, url_map): BaseConverter.__init__(self, url_map) self.regex = '(?:%s)' % '|'.join([re.escape(x) for x in items])
def __init__(self, mapping, *items): BaseConverter.__init__(self, mapping) # Start by enforcing that x is an integer then convert it to string self.regex = '(?:%s)' % '|'.join([str(int(x)) for x in items])
def __init__(self, map, seperator=u'/'): BaseConverter.__init__(self, map) self.seperator = seperator
def __init__(self, map): BaseConverter.__init__(self, map) self.fixed_digits = 64
def __init__(self, url_map): BaseConverter.__init__(self, url_map) self.regex = '[^/].*?/'
def __init__(self, map, *items): BaseConverter.__init__(self, map) self.items = items
def __init__(self, *args, **kwargs): BaseConverter.__init__(self, *args, **kwargs) self.type_ = "string" self.regex = '[^(/;)]+'