Closed proycon closed 5 years ago
Issue reproduces also with the current development builds of FLAT and foliadocserve:
[15/Aug/2019:17:08:58] HTTP
Traceback (most recent call last):
File "/data2/dev/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 628, in respond
self._do_respond(path_info)
File "/data2/dev/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 687, in _do_respond
response.body = self.handler()
File "/data2/dev/lib/python3.7/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/data2/dev/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
return self.callable(*self.args, **self.kwargs)
File "/data2/dev/lib/python3.7/site-packages/foliadocserve/foliadocserve.py", line 633, in query
if doc.metadatatype == folia.MetaDataType.NATIVE:
AttributeError: module 'folia.main' has no attribute 'MetaDataType'
Fixed in foliadocserve v0.7.1
Upon adding a new metadata field and saving the result, FLAT says:
The query doesn't seem to make it to foliadocserve, FLAT returns a HTTP 403 with the above message.