Changeset 1584 in main


Ignore:
Timestamp:
08/30/12 09:58:01 (7 years ago)
Author:
pcosquer
Message:

webdav: set default properties in case of an empty propfind request

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/apps/webdav/util.py

    r1285 r1584  
    6161 
    6262def get_propfind_properties_from_xml(xmlstring): 
     63    if not xmlstring: 
     64        return ["{DAV:}getcontentlength", "{DAV:}getlastmodified", "{DAV:}creationdate", 
     65                "{DAV:}resourcetype", "{DAV:}checked-in","{DAV:}checked-out", 
     66                "{http://apache.org/dav/props/}executable", "{DAV:}supportedlock",] 
    6367    ret = [] 
    6468    tree = ET.fromstring(xmlstring) 
Note: See TracChangeset for help on using the changeset viewer.