Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS. - // $Id: module.pike,v 1.147 2003/11/17 16:01:23 anders Exp $ + // $Id: module.pike,v 1.148 2003/12/22 17:12:17 grubba Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      constant __pragma_save_parent__ = 1;      inherit "basic_defvar";   mapping(string:array(int)) error_log=([]);   
Roxen.git/server/base_server/module.pike:523:    // corresponds to the "executable" permission flag    // in most filesystems.    //    // This property is not defined on collections.    if (st->isreg) {    if (st->mode & 0111) return "T";    return "F";    }    break;    - #if 0 -  // The following are properties in the DAV namespace -  // that Microsoft has stolen. +     case "DAV:isreadonly": // draft-ietf-dasl-protocol-00    if (!(st->mode & 0222)) {    return "1";    }    return "0"; - #endif +     case "DAV:iscollection": // draft-ietf-dasl-protocol-00 5.18    case "DAV:isfolder": // draft-hopmann-collection-props-00 1.5    if (st->isdir) {    return "1";    }    return "0";    case "DAV:ishidden": // draft-hopmann-collection-props-00 1.6    return "0";   #if 0 -  +  // The following are properties in the DAV namespace +  // that Microsoft has stolen.    case "DAV:isroot": // MS    if (path == "/") return "1";    return "0";    case "DAV:isstructureddocument"://MS    return "0";    case "DAV:lastaccessed": // MS    return Roxen.iso8601_date_time(st->atime);    case "DAV:href": // MS    return sprintf("%s://%s%s%s%s",    id->port_obj->prot_name,
Roxen.git/server/base_server/module.pike:569: Inside #if 0
   case "DAV:contentclass": // MS    return "";    case "DAV:parentname": // MS    return "";    case "DAV:defaultdocument": // MS    return "";   #endif /* 0 */    default:    break;    } + #ifdef DAV_DEBUG    report_debug("query_property(): Unimplemented property:%O\n", prop_name); - #if 1 + #endif /* DAV_DEBUG */    // RFC 2518 8.1:    // A request to retrieve the value of a property which does not    // exist is an error and MUST be noted, if the response uses a    // multistatus XML element, with a response XML element which    // contains a 404 (Not Found) status value.    return Roxen.http_low_answer(404, "No such property."); - #else /* !1 */ -  return Roxen.http_low_answer(200, "OK"); - #endif /* 1 */ +    }      //! Attempt to set property @[prop_name] for @[path] to @[value].   //!   //! @param value   //! Value to set the node to.   //! The case of an array of a single text node is special cased,   //! and is sent as a @expr{string@}.   //!   //! @returns