`mongo_dav_provider.py` code appears to be out of date
jwodder opened this issue · 1 comments
jwodder commented
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.StringIO
from abytes
object, 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 returningstr
values 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 onstr
s.
github-actions commented
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.