Roxen.git / server / etc / modules / PropertySet.pike

version» Context lines:

Roxen.git/server/etc/modules/PropertySet.pike:547:   //! Result object.   //! @param filt   //! Optional multiset of requested properties. If this parameter   //! is @expr{0@} (zero) then all available properties are requested.   mapping(string:mixed) find_properties(string mode,    MultiStatus result,    multiset(string)|void filt)   {    switch(mode) {    case "DAV:propname": -  foreach(query_all_properties(); string prop_name;) { +  filt = query_all_properties(); +  foreach(filt; string prop_name;) {    result->add_property(path, prop_name, "");    } -  return 0; +  break;    case "DAV:allprop":    if (filt) {    // Used in http://sapportals.com/xmlns/cm/webdavinclude case.    // (draft-reschke-webdav-allprop-include-04).    filt |= query_all_properties();    } else {    filt = query_all_properties();    }    // FALL_THROUGH    case "DAV:prop": -  foreach(indices(filt), string prop_name) { +  foreach(filt; string prop_name;) {    result->add_property(path, prop_name,    query_property(prop_name));    } -  +  break; +  default: +  // FIXME: Unsupported DAV operation.    return 0;    } -  // FIXME: Unsupported DAV operation. +  +  if (filt["http://apache.org/dav/props/executable"]) +  // Not really necessary. +  result->add_namespace ("http://apache.org/dav/props/");    return 0;   }