[Yanel-commits] rev 25083 -
public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Wed Jun 13 10:58:06 CEST 2007
Author: michi
Date: 2007-06-13 10:58:05 +0200 (Wed, 13 Jun 2007)
New Revision: 25083
Modified:
public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java
Log:
selecting a node fixed
Modified: public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java 2007-06-13 08:46:27 UTC (rev 25082)
+++ public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java 2007-06-13 08:58:05 UTC (rev 25083)
@@ -265,11 +265,17 @@
// TODO: Display repository navigation of this path ...
Sitetree sitetree = (Sitetree) getYanel().getBeanFactory().getBean("repo-navigation");
- Node node = sitetree.getNode(getRealm(), getPath());
+ Node node = null;
+ String lookinPath = getRequest().getParameter("lookin");
+ if (lookinPath != null) {
+ node = sitetree.getNode(getRealm(), lookinPath);
+ } else {
+ node = sitetree.getNode(getRealm(), getPath());
+ }
if (node.isCollection()) {
- log.error("DEBUG: Is Collection: " + node.getName());
+ if(log.isDebugEnabled()) log.debug("Is Collection: " + node.getName());
} else if (node.isResource()) {
- log.error("DEBUG: Is Resource: " + node.getName());
+ if (log.isDebugEnabled()) log.debug("Is Resource: " + node.getName());
node = node.getParent();
} else {
log.error("Neither collection nor resource: " + getPath());
More information about the Yanel-commits
mailing list