You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/02/03 17:01:10 UTC
svn commit: r374699 - in /lenya/trunk/src/webapp: global-sitemap.xmap
lenya/usecases/usecases.js
Author: andreas
Date: Fri Feb 3 08:01:06 2006
New Revision: 374699
URL: http://svn.apache.org/viewcvs?rev=374699&view=rev
Log:
Removed handling of core/modules URLs, since it is now possible to call modules using an URL prefix.
Modified:
lenya/trunk/src/webapp/global-sitemap.xmap
lenya/trunk/src/webapp/lenya/usecases/usecases.js
Modified: lenya/trunk/src/webapp/global-sitemap.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/global-sitemap.xmap?rev=374699&r1=374698&r2=374699&view=diff
==============================================================================
--- lenya/trunk/src/webapp/global-sitemap.xmap (original)
+++ lenya/trunk/src/webapp/global-sitemap.xmap Fri Feb 3 08:01:06 2006
@@ -282,9 +282,6 @@
<!-- Internal usecases -->
<map:pipeline internal-only="true">
- <map:match pattern="core/modules/*/*/**">
- <map:mount uri-prefix="core/modules/{1}/{2}" src="lenya/modules/{1}/usecases/{2}/usecase.xmap"/>
- </map:match>
<map:match pattern="core/*/**">
<map:mount uri-prefix="core/{1}" src="lenya/usecases/{1}/usecase.xmap"/>
</map:match>
Modified: lenya/trunk/src/webapp/lenya/usecases/usecases.js
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/usecases.js?rev=374699&r1=374698&r2=374699&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/usecases/usecases.js (original)
+++ lenya/trunk/src/webapp/lenya/usecases/usecases.js Fri Feb 3 08:01:06 2006
@@ -184,6 +184,9 @@
}
else {
var viewUri = view.getViewURI();
+ if (viewUri.startsWith("cocoon:/")) {
+ viewUri = viewUri.substring(new Packages.java.lang.String("cocoon:/").length());
+ }
cocoon.sendPage(viewUri);
return;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org