cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gcas...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/webdav/samples/davmap webdav.js sitemap.xmap
Date Sun, 04 Apr 2004 09:46:33 GMT
gcasper     2004/04/04 01:46:33

  Modified:    src/blocks/webdav/samples/davmap webdav.js sitemap.xmap
  Log:
  Fixing hrefs in PROPFIND responses
  
  Revision  Changes    Path
  1.11      +2 -1      cocoon-2.1/src/blocks/webdav/samples/davmap/webdav.js
  
  Index: webdav.js
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/webdav/samples/davmap/webdav.js,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- webdav.js	3 Apr 2004 13:44:06 -0000	1.10
  +++ webdav.js	4 Apr 2004 09:46:33 -0000	1.11
  @@ -20,8 +20,9 @@
   
   function selectMethod() {
     var page = cocoon.parameters["page"];
  +  var requestURI = cocoon.parameters["requestURI"];
     var method = cocoon.request.getMethod();
  -  cocoon.sendPage(method+"/"+page, null);
  +  cocoon.sendPage(method+"/"+page, {"requestURI":requestURI});
   }
   
   function sendStatus(sc) {
  
  
  
  1.18      +3 -1      cocoon-2.1/src/blocks/webdav/samples/davmap/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/webdav/samples/davmap/sitemap.xmap,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- sitemap.xmap	27 Mar 2004 22:42:36 -0000	1.17
  +++ sitemap.xmap	4 Apr 2004 09:46:33 -0000	1.18
  @@ -128,11 +128,13 @@
         <map:match pattern="repo">
           <map:call function="selectMethod">
             <map:parameter name="page" value=""/>
  +          <map:parameter name="requestURI" value="{request:requestURI}" />
           </map:call>
         </map:match>
         <map:match pattern="repo/**">
           <map:call function="selectMethod">
             <map:parameter name="page" value="{1}"/>
  +          <map:parameter name="requestURI" value="{request:requestURI}" />
           </map:call>
         </map:match>
         
  @@ -169,7 +171,7 @@
             <map:parameter name="version" value="false" />
           </map:generate>
           <map:transform src="styles/collection2propfind.xsl">
  -          <map:parameter name="requestURI" value="{request:requestURI}" />
  +          <map:parameter name="requestURI" value="{flow-attribute:requestURI}"/>
           </map:transform>
           <map:serialize type="xml" status-code="207" />
         </map:match>
  
  
  

Mime
View raw message