blob: 6e6044aab1548a08dbe033a36ab60802786e23a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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)
|