logo       

Re: How-to clone a whole project ?: msg#00235

web.mason.user

Subject: Re: How-to clone a whole project ?

On Thu, 28 Aug 2003, Ken Williams wrote:

>
> On Thursday, August 28, 2003, at 10:16 AM, Oleg Bartunov wrote:
> >
> > This is exactly what I tried first, but there is no
> > /project1/a.html, so in /project1/dhandler I call /generic/a.html
> > which in turn
> > calls a.msn and mason find it in current (/generic/) directory, while
> > I want to
> > use /project1/a.msn
>
>
> If you're really seeing that, then it's a bug in Mason. Calling
> 'a.msn' from anywhere, including inside /generic/a.html, should search
> each component root in order, so it should find it in /project1/ if it
> exists there.
>
> Or maybe I'm misunderstanding your component root setup. If you think
> I'm talking crazy, could you post your relevant config to the list? I
> understand you to have /project1 and /generic as your two component
> roots.

ok. Below are 4 components - /db/tmp/dhandler, /db/tmp/a.msn from 1st
component root, and /share/z/a.html, /share/z/a.msn from 2nd component root
I want to use for 'generic' applications. 'z' is a 'generic' one.
I'd love to see http://localhost/db/tmp/a.html looks as:
Project1
instead of
/z/a.msn



----------- /db/tmp/dhandler.msn ------------------
<& $comp, %ARGS &>
<%ARGS>
</%ARGS>
<%INIT>
my $comp = $m->dhandler_arg;
my $shared_comp_path = '/z/';
$comp = $shared_comp_path.$comp;
if (! $m->comp_exists($comp) ) {
$m->abort(404);
}
</%INIT>
-----------/db/tmp/a.msn -------------------
Project1
----------/share/z/a.html ------------------
<& a.msn &>

--------/share/z/a.msn ---------------------
<% $comp->title %>
<%INIT>
my $comp = $m->current_comp();
</%INIT>


>
> -Ken
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@xxxxxxxxxx, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise