Mistake around "responsedescription" in "doPROPFIND" in "request_server.py" file ?

9 views
Skip to first unread message

KLEIN Stéphane

unread,
Feb 7, 2010, 2:57:59 PM2/7/10
to Discuss WsgiDAV
In "doPROPFIND" in "request_server.py" file, there is this code :

multistatusEL = xml_tools.makeMultistatusEL()
responsedescription = []

for child in reslist:

if propFindMode == "allprop":
propList = child.getProperties("allprop")
elif propFindMode == "propname":
propList = child.getProperties("propname")
else:
propList = child.getProperties("named",
nameList=propNameList)

href = child.getHref()
util.addPropertyResponse(multistatusEL, href, propList)

if responsedescription:
etree.SubElement(multistatusEL, "{DAV:}
responsedescription").text = "\n".join(responsedescription)

"if responsedescription:" is always false ! There is mistake about
it ?

Regards,
Stephane

Martin Wendt

unread,
Feb 7, 2010, 3:43:39 PM2/7/10
to wsg...@googlegroups.com
you're right, it makes no sense there.
I added support the responsedescription element at other places in this
module, to provide better error feedback.
For the PROPFIND code, we can comment it out, until we do better error
handling there...
Reply all
Reply to author
Forward
0 new messages