You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ro...@apache.org on 2004/10/28 21:35:44 UTC

svn commit: rev 55887 - incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input

Author: roku
Date: Thu Oct 28 12:35:43 2004
New Revision: 55887

Modified:
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/SitetreeModule.java
Log:
Fix for bug #31941

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/SitetreeModule.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/SitetreeModule.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/SitetreeModule.java	Thu Oct 28 12:35:43 2004
@@ -38,8 +38,9 @@
 
     public static final String AUTHORING_NODE = "authoring-node";
     public static final String LIVE_NODE = "live-node";
-
-    protected static final String[] PARAMETER_NAMES = { AUTHORING_NODE, LIVE_NODE };
+    public static final String TRASH_NODE = "trash-node";
+    
+    protected static final String[] PARAMETER_NAMES = { AUTHORING_NODE, LIVE_NODE, TRASH_NODE };
 
     /**
      * @see org.apache.cocoon.components.modules.input.InputModule#getAttribute(java.lang.String,
@@ -65,7 +66,11 @@
                 SiteTree liveTree = manager.getTree(Publication.LIVE_AREA);
                 value = liveTree.getNode(envelope.getDocument().getId());
             }
-
+            
+            if (name.equals(TRASH_NODE)) {
+                SiteTree authoringTree = publication.getSiteTree(Publication.TRASH_AREA);
+                value = authoringTree.getNode(envelope.getDocument().getId());
+            }
         } catch (Exception e) {
             throw new ConfigurationException("Obtaining value for [" + name + "] failed: ", e);
         }

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