equal
deleted
inserted
replaced
60 def __init__(self, config): |
60 def __init__(self, config): |
61 resource.Resource.__init__(self) |
61 resource.Resource.__init__(self) |
62 self.config = config |
62 self.config = config |
63 # instantiate publisher here and not in init_publisher to get some |
63 # instantiate publisher here and not in init_publisher to get some |
64 # checks done before daemonization (eg versions consistency) |
64 # checks done before daemonization (eg versions consistency) |
65 self.appli = CubicWebPublisher(config) |
65 repo = config.repository() |
|
66 self.appli = CubicWebPublisher(repo, config) |
66 self.base_url = config['base-url'] |
67 self.base_url = config['base-url'] |
67 self.https_url = config['https-url'] |
68 self.https_url = config['https-url'] |
68 global MAX_POST_LENGTH |
69 global MAX_POST_LENGTH |
69 MAX_POST_LENGTH = config['max-post-length'] |
70 MAX_POST_LENGTH = config['max-post-length'] |
70 |
71 |