Fuzzyman:
I updated my code to the current HEAD and ran a build; here's what I got:
rest2web version 0.4.0 alpha
Running rest2web the Site Builder.
Mon Apr 3 20:06:28 2006
Starting in "/home/user/www/rpinput" directory.
Processing "root" directory.
Reading "template.txt".
Reading "vendors.txt".
Reading "halls/index.txt".
Reading "projects/index.txt".
Reading "weblog/index.txt".
Reading "programmingxml.txt".
Reading "robots.txt".
Reading "about/index.txt".
Processing indexfile.
File "rp.css" referenced by file keyword missing.
File "rplogo.png" referenced by file keyword missing.
File "halloffamelogo.png" referenced by file keyword missing.
File "hallofshamelogo.png" referenced by file keyword missing.
File "valid-xhtml10.png" referenced by file keyword missing.
File "robots.txt" referenced by file keyword missing.
File "rest2web200x80.gif" referenced by file keyword missing.
File "rest2web140x62.gif" referenced by file keyword missing.
... and later on, in the projects/rest2web subdirectory...
Processing "projects/rest2web" directory.
Reading "projects/rest2web/restandmacros.txt".
File "/home/user/www/rpinput/projects/rest2web/restandmacros.txt" identical,
skipping.
Processing indexfile.
File "halloffamelogo.png" referenced by file keyword missing.
Building projects/rest2web/restandmacros.html
Skipping "restandmacros.html". Identical file exists.
Building projects/rest2web/index.html
Writing index.html
So, in other words, it went backwards! Now it looks like the files in the
root's index are not getting moved over (previously they were), even if I
use "./filename.ext" syntax. For the subdirectory, the bug still exists as
I originally reported it.
The final score: on Linux, for the file keyword at any level (root and
subdirectories), the full filepath must be specified or the file will not be
found. At least the bug is affecting ALL the files, no matter their
location!
If this is something you want me to dig into, seeing as it might be a
difference between OS's, I can do so. Just let me know the general area in
the code and I'll see what I can do.
Thanks,
Andrew
> -----Original Message-----
> From: Fuzzyman [mailto:fuz...@vo...]
> Sent: Monday, April 03, 2006 1:38 AM
> To: Rest2web Dev List; Andrew Ittner
> Subject: Bug in file Keyword
>
>
> Hello Andrew,
>
> Could you please check the bug in the file keyword that you reported
> (Check against SVN head). This is specifically the bug where files
> referenced using the ``file`` keyword (in the ``restindex``) fail in
> subdirectories.
>
> I've just tried it and it seems to work fine, it looks to me like I've
> implemented a fix already.
>
> I haven't yet added code to make sure that files are only copied if they
> have changed. That's next.
>
> Fuzzyman
> http://www.voidspace.org.uk/python/index.shtml
|