cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: cvs commit: cocoon-2.1/src/blocks/linotype/samples flow.js
Date Thu, 19 Jun 2003 11:50:12 GMT
stevenn@apache.org wrote:

>stevenn     2003/06/19 02:02:53
>
>  Modified:    src/blocks/linotype/samples flow.js
>  Log:
>  reverting to original approach
>  
>  Revision  Changes    Path
>  1.4       +6 -9      cocoon-2.1/src/blocks/linotype/samples/flow.js
>  
>  Index: flow.js
>  ===================================================================
>  RCS file: /home/cvs/cocoon-2.1/src/blocks/linotype/samples/flow.js,v
>  retrieving revision 1.3
>  retrieving revision 1.4
>  diff -u -r1.3 -r1.4
>  --- flow.js	18 Jun 2003 09:27:45 -0000	1.3
>  +++ flow.js	19 Jun 2003 09:02:53 -0000	1.4
>  @@ -1,11 +1,8 @@
>  -var realpath = cocoon.context.getRealPath("/");
>  -
>  -var requesturi = cocoon.request.getRequestURI();
>  -var sitemapuri = cocoon.request.getSitemapURI();
>  -
>  -var mountpoint = requesturi.substring(1,requesturi.indexOf(sitemapuri));
>  -
>  -var home = realpath + mountpoint;
>  +/*
>  + * Yeah, I know that hardwiring those is hacky as hell. But I'll try to
>  + * fix this with link translation later on.
>  + */
>  +var home = cocoon.context.getRealPath("/") + "samples/linotype/";   
>


Steven,

(you'd rolled back the change below but not this one)
Was this intended change?

Vadim



>   var stream = new java.io.FileInputStream(home + "linotype.users.properties");
>   var users = new Packages.org.apache.cocoon.components.UserManager.getInstance(stream);
>  @@ -115,7 +112,7 @@
>   	    			innerHTML : cocoon.request.getParameter("innerHTML") 
>   	    		}
>   	    	);
>  -	        var action = cocoon.request.getParameter("action");
>  +	        var action = cocoon.request.getParameter("action"); d
>   	       	if (action == "delete") {
>   	        	repo.remove(document);
>   	        	break;
>  
>


Mime
View raw message