savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers] [ 102089 ] SSI for timestamps


From: nobody
Subject: [Savannah-hackers] [ 102089 ] SSI for timestamps
Date: Mon, 28 Apr 2003 13:10:47 -0400


Support Request #102089, was updated on Mon 04/28/2003 at 12:42
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=102089&group_id=11

Category: Web
Status: Open
Priority: 5
Summary: SSI for timestamps

By: humppake
Date: Mon 04/28/2003 at 17:10
Logged In: YES 
user_id=9471
Browser: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3) Gecko/20030312

It's unfortunate that SSI is not as easily available as we
thought, but I suppose we should just live with that. Yes,
we did think also the alternatives, but because tools like
SSI have been developed "to make things easier", why
wouldn't even try to use them.

>"Not generating files until their correspondant
>RST change. This way you can use cvs $Id: $
>without bothering."

This looks like the way it should be done, but... at first,
this won't work with $Id:$ tags. The problem is that after
converting RSTs (which stands for reStcurturedText) into
HTML we embed the navigation menu into every page as
postprocessing the HTML. Now the file is technically changed
and also CVS stamps change. We would like that timestamps
mark date of the main content - not menus.

No, we don't want to use frames.

The second best solution for now is to combine those two
solution you also suggested. We should let the RST -> HTML
embed a timestamp into HTML (fetching the $ID:$ from the RST
is a good idea, but we can't trust that it's always
remebered to put there), but we should not make the
conversion again until RST is changed. Menus could be
updated without touching the written timestamp. 

But how to do that... well, of course, it's our problem. CVS
update seem to change files' datestamp, which is usually
good for working with Make, but now it causes unwanted
reconversion of updated file. Checkouting shouldn't be the
only way to update :)

Though, we probably can't use Make that way (calling
converter for single changed files) anyway, because 
with our current conventions it would cost too much time.
That's because we run the RST -> HTML converter through
JAR-packed Jython and that has a terrible start-up time.

...

Ok. Will do it ugly way (which looked "too complicated" at
first): checking if already converted version exist and
fetching the old $ID:$ tag into new one. If the RST content
hasn't changed, neither has the resulted HTML conversion and
CVS shouldn't commit it.

Anyway, Thanks for your time :)

----------------------------------------------------------------------

By: yeupou
Date: Mon 04/28/2003 at 13:38
Logged In: YES 
user_id=1896
Browser: Mozilla/5.0 (compatible; Konqueror/3.1; Linux 2.4.21-pre7-ac2; i686; 
fr, address@hidden)

"As I noted, CVS $Id: $ can't be used, as we would have to 
commit RST file first to get tag updated, then compile into 
HTML, then commit HTML." 
 
$Id: $ is updated each time a file is commited. 
If you put $Id: $ in your rst file, then generate your html page, then 
commit both pages, both $Id: $ will be updated, with the appropriate infos 
for each one. 
 
"$Id: $ in the generated file is not good either, because it 
would be changed after compilation. This would lead into 
commiting all generated files always, as the compiled 
version would have $Id: $ and the file in CVS would have 
$Id: someone somedate$. Also, we couldn't control the syntax 
shown on the web pages." 
 
It's unclear to me. 
 ->> $Id: $ in file.html 
 ->> cvs ci 
 ->> $Id: someone somedate $ in file.html, in the CVS sure, but also in 
your "compiled file".  
 
If you regenerate the whole site,  
 ->> $Id: $ in file.html 
so, right, you would have everyfile to be updated on the CVS.  
Is that your point ? 
 
I've two solutions for you to create static timestamp without commiting 
everything or commiting 2 times : 
- Not generating files until their correspondant RST change. This way 
you can use cvs $Id: $ without bothering. 
- Add by yourself a timestamp to the html files. A script can easily 
extract the modified-time for the correspondant RST file and add it in the 
html file (I do not know how RST -> HTML works, but it's should provide 
such possibility). Until the RST's mtime change, the html will not be 
commited, as nothing change. This way, you can even add the 
timestamp which the syntax you want. 
 
 
"I can't think IncludesNoExec could be a security problem, as 
SSI is in wide use. The performance penalty must be much 
lower than in using PHP or such." 
 
But PHP is not available anyway. 
Also, the web server is not managed by the savannah staff.  
So we cannot make that decision. 
 

----------------------------------------------------------------------
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=102089&group_id=11




reply via email to

[Prev in Thread] Current Thread [Next in Thread]