Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.563 2004/04/30 12:54:25 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.564 2004/05/03 16:09:43 grubba Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:1412:    // We already hold a lock that prevents us.    return Roxen.http_status(412, "Precondition Failed");    } else if ((lock_info < 0) ||    (lock_info && (lockscope == "DAV:exclusive"))) {    // Some other lock prevents us.    return Roxen.http_status(423, "Locked");    }       // Create the new lock.    -  string locktoken = roxen->new_locktoken_string(); +  string locktoken = "opaquelocktoken:" + roxen->new_uuid_string();    DAVLock lock = DAVLock(locktoken, path, recursive, lockscope, locktype,    owner);    foreach(location_module_cache||location_modules(),    [string loc, function func])    {    string subpath;    if (has_prefix(path, loc)) {    // path == loc + subpath.    subpath = path[sizeof(loc)..];    } else if (recursive && has_prefix(loc, path)) {