pluginserver 0.8.0__tar.gz → 0.8.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pluginserver-0.8.0/pluginserver.egg-info → pluginserver-0.8.1}/PKG-INFO +1 -1
- {pluginserver-0.8.0 → pluginserver-0.8.1}/plugincore/pserv.py +14 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1/pluginserver.egg-info}/PKG-INFO +1 -1
- {pluginserver-0.8.0 → pluginserver-0.8.1}/setup.py +1 -1
- {pluginserver-0.8.0 → pluginserver-0.8.1}/LICENSE.txt +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/MANIFEST.in +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/README.md +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/plugincore/__init__.py +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/plugincore/baseplugin.py +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/plugincore/configfile.py +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/plugincore/cors.py +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/plugincore/pluginmanager.py +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/pluginserver.egg-info/SOURCES.txt +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/pluginserver.egg-info/dependency_links.txt +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/pluginserver.egg-info/entry_points.txt +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/pluginserver.egg-info/requires.txt +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/pluginserver.egg-info/top_level.txt +0 -0
- {pluginserver-0.8.0 → pluginserver-0.8.1}/setup.cfg +0 -0
|
@@ -103,10 +103,24 @@ def main():
|
|
|
103
103
|
app.add_routes(routes)
|
|
104
104
|
app.on_shutdown.append(on_shutdown)
|
|
105
105
|
if 'documents' in globalCfg.paths:
|
|
106
|
+
"""
|
|
107
|
+
if configured set up static page service
|
|
108
|
+
"""
|
|
106
109
|
if ':' in globalCfg.paths.documents:
|
|
107
110
|
dname, dpath = globalCfg.paths.documents.split(':')
|
|
108
111
|
else:
|
|
109
112
|
dname, dpath = 'docs', globalCfg.paths.documents
|
|
113
|
+
|
|
114
|
+
if 'indexfile' in globalCfg.paths:
|
|
115
|
+
indexfile = globalCfg.paths.indexfile
|
|
116
|
+
print(f"indexfile for static service is {indexfile}")
|
|
117
|
+
# Route to handle /docs/ (with or without trailing slash)
|
|
118
|
+
async def default_doc_handler(request):
|
|
119
|
+
return web.FileResponse(os.path.join(dpath, indexfile))
|
|
120
|
+
|
|
121
|
+
app.router.add_get(f'/{dname}', default_doc_handler)
|
|
122
|
+
app.router.add_get(f'/{dname}/', default_doc_handler)
|
|
123
|
+
|
|
110
124
|
print(f"Setting up static page delivery for {dname} from {dpath}")
|
|
111
125
|
app.router.add_static(f"/{dname}/", path=dpath, name=dname)
|
|
112
126
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|