wsgidav
wsgidav copied to clipboard
`mongo_dav_provider.py` code appears to be out of date
The file wsgidav/samples/mongo_dav_provider.py appears to be out of date in at least the following respects:
- This line constructs an
io.StringIOfrom abytesobject, something that is only possible on Python 2. ConnectionCollection.get_member_names(),DbCollection.get_member_names(), andDocResource.get_display_name()return or can returnbytes, yet I am quite sure that they should always be returningstrvalues instead. In particular, the values returned byget_member_names()are only ever used by being passed toget_member(), yet the classes'get_member()methods pass their arguments tojoin_uri(), which only works onstrs.