Branch: Tag:

2004-04-29

2004-04-29 13:56:58 by Martin Stjernholm <mast@lysator.liu.se>

Slightly more neat handling of the Apache namespace.

Rev: server/etc/modules/PropertySet.pike:1.5

554:   {    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.
568:    }    // 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;   }