MCPcopy
hub / github.com/pyload/pyload / match

Method match

module/lib/bottle.py:372–380  ·  view source on GitHub ↗

Return an url-argument dictionary.

(path)

Source from the content-addressed store, hash-verified

370 raise RouteSyntaxError("Could not add Route: %s (%s)" % (rule, e))
371
372 def match(path):
373 """ Return an url-argument dictionary. """
374 url_args = re_match(path).groupdict()
375 for name, wildcard_filter in filters:
376 try:
377 url_args[name] = wildcard_filter(url_args[name])
378 except ValueError:
379 raise HTTPError(400, 'Path has wrong format.')
380 return url_args
381
382 try:
383 combined = '%s|(^%s$)' % (self.dynamic[-1][0].pattern, flat_pattern)

Callers 15

getIPMethod · 0.45
appendNameFunction · 0.45
parseFileSizeFunction · 0.45
do_GETMethod · 0.45
searchMethod · 0.45
sanitize_styleMethod · 0.45
_parse_date_onblogFunction · 0.45
_parse_date_nateFunction · 0.45
_parse_date_mssqlFunction · 0.45
_parse_date_greekFunction · 0.45
_parse_date_hungarianFunction · 0.45
_parse_date_w3dtfFunction · 0.45

Calls 3

HTTPErrorClass · 0.85
joinMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected