mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 16:19:21 +00:00
13 lines
427 B
Python
13 lines
427 B
Python
|
class ErudiPublisher:
|
||
|
def __init__(self, config):
|
||
|
self.url_resolver = self.select_component('urlpublisher')
|
||
|
|
||
|
def select_component(self, cid, *args, **kwargs):
|
||
|
try:
|
||
|
return self.select(self.registry_objects('components', cid), *args, **kwargs)
|
||
|
except NoSelectableObject:
|
||
|
return
|
||
|
|
||
|
def main_publish(self, path, req):
|
||
|
ctrlid = self.url_resolver.process(req, path)
|