svn commit: r559824 - in /lenya/trunk/src/modules/editors/config/cocoon-xconf: usecase-createResource.xconf usecase-insertAsset.xconf usecase-insertImage.xconf usecase-insertLink.xconf

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: nettings
Date: Thu Jul 26 07:19:53 2007
New Revision: 559824

URL: http://svn.apache.org/viewvc?view=rev&rev=559824
Log:
added editors.createResource usecase (re-uses the code of
resource.Create, but menu turned off).
turned off continuations for insertFoo usecases, as they have just one
step and no server-side effects.

Added:
    lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-createResource.xconf
Modified:
    lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertAsset.xconf
    lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertImage.xconf
    lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertLink.xconf

Added: lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-createResource.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-createResource.xconf?view=auto&rev=559824
==============================================================================
--- lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-createResource.xconf (added)
+++ lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-createResource.xconf Thu Jul 26 07:19:53 2007
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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.
+-->
+
+<xconf xpath="/cocoon/usecases" unless="/cocoon/usecases/component-instance[@name = 'editors.createResource']">
+  <component-instance 
+      name="editors.createResource" 
+      logger="lenya.site" 
+      class="org.apache.lenya.cms.site.usecases.CreateResource"
+  >
+    <view template="modules/resource/usecases/create-resource.jx" menu="false"/>
+  </component-instance>
+</xconf>

Modified: lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertAsset.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertAsset.xconf?view=diff&rev=559824&r1=559823&r2=559824
==============================================================================
--- lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertAsset.xconf (original)
+++ lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertAsset.xconf Thu Jul 26 07:19:53 2007
@@ -23,7 +23,11 @@
       logger="lenya.publication"
       class="org.apache.lenya.cms.editors.InsertAsset"
   >
-    <view template="modules/editors/usecases/insertAsset.jx" menu="false"/>
+    <view 
+      template="modules/editors/usecases/insertAsset.jx" 
+      menu="false"
+      createContinuation="false"
+    />
     <parameter name="mode" value="Asset"/>
     <parameter name="asset-usecase" value="tab.asset"/>
   </component-instance>

Modified: lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertImage.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertImage.xconf?view=diff&rev=559824&r1=559823&r2=559824
==============================================================================
--- lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertImage.xconf (original)
+++ lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertImage.xconf Thu Jul 26 07:19:53 2007
@@ -23,7 +23,11 @@
       logger="lenya.publication"
       class="org.apache.lenya.cms.editors.InsertAsset"
   >
-    <view template="modules/editors/usecases/insertAsset.jx" menu="false"/>
+    <view 
+      template="modules/editors/usecases/insertAsset.jx" 
+      menu="false"
+      createContinuation="false"
+    />
     <parameter name="mode" value="Image"/>
     <parameter name="asset-usecase" value="tab.asset"/>
   </component-instance>

Modified: lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertLink.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertLink.xconf?view=diff&rev=559824&r1=559823&r2=559824
==============================================================================
--- lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertLink.xconf (original)
+++ lenya/trunk/src/modules/editors/config/cocoon-xconf/usecase-insertLink.xconf Thu Jul 26 07:19:53 2007
@@ -5,7 +5,11 @@
       logger="lenya.publication"
       class="org.apache.lenya.cms.usecase.DummyUsecase"
   >
-    <view uri="cocoon://modules/editors/editors.insertLink" menu="false"/>
+    <view 
+      uri="cocoon://modules/editors/editors.insertLink" 
+      menu="false"
+      createContinuation="false"
+    />
   </component-instance>
 
 </xconf>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.