[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    Re: [Quanta] Actions at upload
From:       Eric Laffoon <eric () kdewebdev ! org>
Date:       2008-08-16 22:36:25
Message-ID: 200808161536.25478.eric () kdewebdev ! org
[Download RAW message or body]

On Saturday 02 August 2008 3:30:13 am Dale Strickland-Clark wrote:
> Hi
>
> (Second attempt to send this. Getting stuck with moderators.)
>
> I've configured an action to run at upload time. It is supposed to run a
> program to post-process some non-standard extra mark-up the the html files
> as they go off to the server. This can mean referring to other files in the
> same directory.
>
> In the absence of being able to locate any docs on the process, I have
> determined that:
>
> * the program is called and is passed the source files being uploaded in
> turn on stdin;
> * the program is passed no args except it's own path;
> * no special environment variables are set;
> * the program is unable to determine what files it is being passed;
> * the program is unable to change anything as stdout is printed on a
> console stream but not sent off to the target server;
>
> So my questions are:
>
> 1. How do I pass a modified version of the input file back to Quanta to
> upload but not store locally?
> 2. How do I find the path and name of the source file I'm being passed?
>
> Given those two bits of info, I think I can make this work.
>
> Thanks.

I had been meaning to look into this, but along with being busy and tired I am 
less familiar with internals in this area than Andras. I asked him to reply 
to this while we were at akademy and he said he would but the servers were 
seriously bogged down there. He's on a family vacation for a week now which 
is why I could not get to visit him in Romania this year. Please post again 
in a week if you haven't heard back.

-- 
Eric Laffoon
Project Lead - kdewebdev module
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic