You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2006/06/28 12:19:39 UTC

svn commit: r417713 - in /lenya/trunk/src/modules/neutron: checkout-exception.xml sitemap.xmap

Author: michi
Date: Wed Jun 28 03:19:37 2006
New Revision: 417713

URL: http://svn.apache.org/viewvc?rev=417713&view=rev
Log:
checkout exception started

Added:
    lenya/trunk/src/modules/neutron/checkout-exception.xml
Modified:
    lenya/trunk/src/modules/neutron/sitemap.xmap

Added: lenya/trunk/src/modules/neutron/checkout-exception.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/neutron/checkout-exception.xml?rev=417713&view=auto
==============================================================================
--- lenya/trunk/src/modules/neutron/checkout-exception.xml (added)
+++ lenya/trunk/src/modules/neutron/checkout-exception.xml Wed Jun 28 03:19:37 2006
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- TODO: Return user, etc. Also see Neutron Spec ... -->
+<exception xmlns="http://www.wyona.org/neutron/1.0" type="checkout">
+  <message>Document has already been checked-out by ...</message>
+</exception>

Modified: lenya/trunk/src/modules/neutron/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/neutron/sitemap.xmap?rev=417713&r1=417712&r2=417713&view=diff
==============================================================================
--- lenya/trunk/src/modules/neutron/sitemap.xmap (original)
+++ lenya/trunk/src/modules/neutron/sitemap.xmap Wed Jun 28 03:19:37 2006
@@ -49,8 +49,9 @@
         <map:parameter name="prefix" value="lenyadoc:/"/>
           <map:when test="{page-envelope:document-language}/{page-envelope:document-id}">
             <map:act type="reserved-checkout">
-              <map:generate src="context://lenya/content/util/empty.xml"/>
-              <map:serialize type="xml"  status-code="423"/>
+              <!-- TODO: add info from RCML ... -->
+              <map:generate src="checkout-exception.xml"/>
+              <map:serialize type="xml" status-code="500"/>
             </map:act>
             <map:read src="lenyadoc:/{page-envelope:document-language}/{page-envelope:document-id}"/>
           </map:when>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org