rest2web-develop Mailing List for rest2web (Page 18)
Brought to you by:
mjfoord
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(74) |
Aug
(71) |
Sep
(6) |
Oct
(6) |
Nov
(3) |
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(8) |
Feb
(17) |
Mar
(16) |
Apr
(48) |
May
(9) |
Jun
|
Jul
(7) |
Aug
(93) |
Sep
(18) |
Oct
(17) |
Nov
(22) |
Dec
(11) |
2007 |
Jan
(11) |
Feb
|
Mar
(61) |
Apr
(14) |
May
(3) |
Jun
|
Jul
(13) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(6) |
2008 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(7) |
Oct
(2) |
Nov
(7) |
Dec
(7) |
2009 |
Jan
(2) |
Feb
|
Mar
(4) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2010 |
Jan
(1) |
Feb
(1) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
2011 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(14) |
Sep
(2) |
Oct
(1) |
Nov
(3) |
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(5) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
(2) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
2016 |
Jan
(2) |
Feb
(5) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Fuzzyman <fuz...@vo...> - 2006-04-06 07:16:48
|
Andrew Ittner wrote: > I vote for 4) and then 1) as a fall-back, since you allow the developer to > specify exactly what encoding they want. If they do not take advantage of > that, just use the lowest-common denominator. > > Right - in which case I will use 2) as a fallback and explicitly decode to unicode assuming ascii. Everything else is stored as unicode, and this will raise an error if the programmer uses non-ascii values without specifying an encoding. Hopefully I'll commit this tonight. Thanks for your input. Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Andrew > > >> -----Original Message----- >> From: res...@li... >> [mailto:res...@li...]On Behalf Of >> Fuzzyman >> Sent: Wednesday, April 05, 2006 6:12 AM >> To: Rest2web Dev List >> Subject: [Rest2web-develop] Encoding & Uservalues >> >> >> Hello all, >> >> > [snip] > >> So how should rest2web handle uservalues passed in the config file and >> at the command line ? >> >> First of all the config file. There are three options : >> >> 1) Ignore encodings and assume that the config file values are ascii or >> in the appropriate encoding >> 2) Decode to unicode immediately and restrict values to ascii only >> 3) Guess the encoding of the config file, using the same technique as is >> used for guessing the encoding of pages (annoying to implement but well >> possible) >> 4) Allow a magic value '__encoding__' to specify the encoding in use >> >> My personal preference is 4). I then need to choose between 1), 2) and >> 3) as a fallback if that value is missing. >> >> I have a similar problem with values passed at the command line - >> however in this case I can check ``sys.stdin.encoding``. This works (on >> windows) even if stdin has already been closed. I will probably have to >> force ascii only if that information isn't available. >> >> All the best, >> >> Fuzzyman >> http://www.voidspace.org.uk/python/index.shtml >> > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > |
From: Michael F. <fuz...@gm...> - 2006-04-06 07:14:37
|
On 06/04/06, Andrew Ittner <and...@us...> wrote: > > I love one-line fixes. > > Changed > src =3D join(self.dir, filename, entry) But in SVN I had already changed that line to : src =3D join(self.dir, dirname(filename), entry) ??? Because I'd like to move the two chunks of code into a single function, that dirname will be needed for the case of index files. I'll make that change and you can test again. :-) Fuzzyman http://ww.voidspace.org.uk/python/index.shtml to > src =3D join(self.dir, entry) > > It appears that the filename value set the path to > "index.txt/thefilename.ext" instead of just "thefilename.ext". Once I > removed it, both the index and non-index pages copied files fine (so I di= d > not need to change the other loop's src line). > > Andrew > > > -----Original Message----- > > From: Fuzzyman [mailto:fuz...@vo...] > > Sent: Tuesday, April 04, 2006 2:34 AM > > To: res...@li...; Andrew Ittner > > Subject: Re: File Bug > > > > > > Hello Andrew, > > > > I would certainly appreciate your eyes in tracking down this bug. I > > don't *think* it can be platform specific though, as there is no > > platform specific code (I use platform independent functions from > > ``os.path`` and ``shutil`` to do all the work). > > > > I can see where the bug is happening - for you it seems to be where the > > location of the source file is determined. I've pasted the full code in > > below - and explained the logic of the first part which determines the > > source location. You could add in a print statement to see where it > > thinks the source file *should be*, which will give us a clue as to wha= t > > is happening. > > > > The code exists twice (which means it ought to be turned into a method > > of Processor). Once in the ``process`` method and once in the > > ``processindex`` method. > > > > When rest2web starts, it changes the current directory to be the 'start= ' > > directory (top level of the site directory tree). > > > > As it goes through the files, the current directory being worked on is > > stored in ``self.dir`` (self being the processor instance). At the top > > level directory the following is set in ``__init__``, ``self.dir =3D > > os.curdir``. (Is it possible that this is the cause of the problem ?) > > > > Following code taken from - > > http://rest2web.python-hosting.com/file/trunk/rest2web/restprocessor.py > > - from the process method. > > > > # also copy files (from restindex) into same dir as target > > for entry in restindex['file']: > > src =3D join(self.dir, dirname(filename), entry) > > ## XXX Add a ``print src`` here :-) > > if not os.path.isfile(src): > > print ('File "%s" referenced by file keyword missing.' % > > entry) > > continue > > # > > target_file_name =3D url2pathname(target) > > targetfile =3D os.path.normpath(join( > > self.target, self.dir, target_file_name)) > > dest =3D join(dirname(targetfile), split(entry)[1]) > > comparefile =3D os.path.normpath(join( > > self.compare, self.dir, target_file_name)) > > cmp =3D join(dirname(comparefile), split(entry)[1]) > > if comparefiles(src, cmp): > > print 'File "%s" identical, skipping.' % entry > > continue > > if not isdir(dirname(dest)): > > os.makedirs(dirname(dest)) > > print 'Copying "%s".' % entry > > copy2(src, dest) # alias for shutil.copy2 > > > > I'll step through the code to explain the process. > > > > for entry in restindex['file']: > > > > restindex['file'] should be a list of all your file keywords from the > > page being processed. > > > > > > src =3D join(self.dir, dirname(filename), entry) > > > > ``join`` is an alias for ``os.path.join``. > > > > ``filename`` is the name of the file being processed. When we are > > processing an index file, it could actually be a path relative to > > ``self.dir`` if the ``index-file`` option is set. > > > > You were getting lots of ``File "..." referenced by file keyword > > missing.`` errors - so this logic seems to be faulty ? > > > > If you add the print statement I suggest, then you should be able to > > tell what is happening. I'm sure the solution is simple enough - but I > > can't see it. > > > > Thanks > > > > Fuzzyman > > http://www.voidspace.org.uk/python/index.shtml > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fictio= n and more. --- http://www.Voidspace.org.uk/python/index.shtml Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera |
From: Andrew I. <and...@us...> - 2006-04-06 06:48:41
|
Those 3 levels sound good to me, and I think a config file option would be redundant. Andrew > -----Original Message----- > From: res...@li... > [mailto:res...@li...]On Behalf Of > Fuzzyman > Sent: Wednesday, April 05, 2006 2:24 AM > To: Rest2web Dev List > Subject: [Rest2web-develop] rest2web Verbosity > > > Hello all, > > Just to let you all know that I am most of the way through implementing > 'verbosity levels'. All the infrastructure is in place, and I'm starting > to go through changing the print statements. > > I'm implementing three levels of verbosity : > > -v Verbose (default) Info, Warnings & Action > -a Warnings & Actions > -w Warnings Only > > Info is when rest2web scans a new directory, processes a page, guesses > an encoding & skips writing a page or copying a file. > > Actions are when it does something like writing a file or copying a file. > > Warnings are when a file to be copied is missing, or something like that. > > Are these levels sufficient ? Should I add an option to the config file > to set the verbosity level, as well as the command line switches ? > > New code should use the 'out' function rather than the print statement, > and set the level of the message being sent. If a log file is in use, > *everything* is logged - whatever the verbosity level. > > Even on the lowest verbosity level (-w), the welcome message, rest2web > version, and number of files processed is still displayed. > > Thanks > > Fuzzyman > http://www.voidspace.org.uk/python/index.shtml |
From: Andrew I. <and...@us...> - 2006-04-06 06:48:34
|
I vote for 4) and then 1) as a fall-back, since you allow the developer to specify exactly what encoding they want. If they do not take advantage of that, just use the lowest-common denominator. Andrew > -----Original Message----- > From: res...@li... > [mailto:res...@li...]On Behalf Of > Fuzzyman > Sent: Wednesday, April 05, 2006 6:12 AM > To: Rest2web Dev List > Subject: [Rest2web-develop] Encoding & Uservalues > > > Hello all, > [snip] > > So how should rest2web handle uservalues passed in the config file and > at the command line ? > > First of all the config file. There are three options : > > 1) Ignore encodings and assume that the config file values are ascii or > in the appropriate encoding > 2) Decode to unicode immediately and restrict values to ascii only > 3) Guess the encoding of the config file, using the same technique as is > used for guessing the encoding of pages (annoying to implement but well > possible) > 4) Allow a magic value '__encoding__' to specify the encoding in use > > My personal preference is 4). I then need to choose between 1), 2) and > 3) as a fallback if that value is missing. > > I have a similar problem with values passed at the command line - > however in this case I can check ``sys.stdin.encoding``. This works (on > windows) even if stdin has already been closed. I will probably have to > force ascii only if that information isn't available. > > All the best, > > Fuzzyman > http://www.voidspace.org.uk/python/index.shtml |
From: Andrew I. <and...@us...> - 2006-04-06 03:20:54
|
I love one-line fixes. Changed src = join(self.dir, filename, entry) to src = join(self.dir, entry) It appears that the filename value set the path to "index.txt/thefilename.ext" instead of just "thefilename.ext". Once I removed it, both the index and non-index pages copied files fine (so I did not need to change the other loop's src line). Andrew > -----Original Message----- > From: Fuzzyman [mailto:fuz...@vo...] > Sent: Tuesday, April 04, 2006 2:34 AM > To: res...@li...; Andrew Ittner > Subject: Re: File Bug > > > Hello Andrew, > > I would certainly appreciate your eyes in tracking down this bug. I > don't *think* it can be platform specific though, as there is no > platform specific code (I use platform independent functions from > ``os.path`` and ``shutil`` to do all the work). > > I can see where the bug is happening - for you it seems to be where the > location of the source file is determined. I've pasted the full code in > below - and explained the logic of the first part which determines the > source location. You could add in a print statement to see where it > thinks the source file *should be*, which will give us a clue as to what > is happening. > > The code exists twice (which means it ought to be turned into a method > of Processor). Once in the ``process`` method and once in the > ``processindex`` method. > > When rest2web starts, it changes the current directory to be the 'start' > directory (top level of the site directory tree). > > As it goes through the files, the current directory being worked on is > stored in ``self.dir`` (self being the processor instance). At the top > level directory the following is set in ``__init__``, ``self.dir = > os.curdir``. (Is it possible that this is the cause of the problem ?) > > Following code taken from - > http://rest2web.python-hosting.com/file/trunk/rest2web/restprocessor.py > - from the process method. > > # also copy files (from restindex) into same dir as target > for entry in restindex['file']: > src = join(self.dir, dirname(filename), entry) > ## XXX Add a ``print src`` here :-) > if not os.path.isfile(src): > print ('File "%s" referenced by file keyword missing.' % > entry) > continue > # > target_file_name = url2pathname(target) > targetfile = os.path.normpath(join( > self.target, self.dir, target_file_name)) > dest = join(dirname(targetfile), split(entry)[1]) > comparefile = os.path.normpath(join( > self.compare, self.dir, target_file_name)) > cmp = join(dirname(comparefile), split(entry)[1]) > if comparefiles(src, cmp): > print 'File "%s" identical, skipping.' % entry > continue > if not isdir(dirname(dest)): > os.makedirs(dirname(dest)) > print 'Copying "%s".' % entry > copy2(src, dest) # alias for shutil.copy2 > > I'll step through the code to explain the process. > > for entry in restindex['file']: > > restindex['file'] should be a list of all your file keywords from the > page being processed. > > > src = join(self.dir, dirname(filename), entry) > > ``join`` is an alias for ``os.path.join``. > > ``filename`` is the name of the file being processed. When we are > processing an index file, it could actually be a path relative to > ``self.dir`` if the ``index-file`` option is set. > > You were getting lots of ``File "..." referenced by file keyword > missing.`` errors - so this logic seems to be faulty ? > > If you add the print statement I suggest, then you should be able to > tell what is happening. I'm sure the solution is simple enough - but I > can't see it. > > Thanks > > Fuzzyman > http://www.voidspace.org.uk/python/index.shtml |
From: Fuzzyman <fuz...@vo...> - 2006-04-05 13:13:11
|
Hello all, I've finished the first shot at verbosity levels. It should be fairly straightforward. The next feature I'm working on is allowing you to set uservalues in the config file. These can be over-ridden in the individual pages by explicit uservalues. This means you can supply values in your config file - and then have conditional logic in your templates/pages that use them. After this is implemented I will also allow the passing of uservalues at the command line. I have to work out how to handle encodings of uservalues passed via the config file. Uservalues in the page are decoded to unicode (guessing the encoding if necessary), and then re-encoded in the output encoding. This is useful because it means if you have a latin-1 document (for example) you can still specify that all your output HTML should be in UTF8. So how should rest2web handle uservalues passed in the config file and at the command line ? First of all the config file. There are three options : 1) Ignore encodings and assume that the config file values are ascii or in the appropriate encoding 2) Decode to unicode immediately and restrict values to ascii only 3) Guess the encoding of the config file, using the same technique as is used for guessing the encoding of pages (annoying to implement but well possible) 4) Allow a magic value '__encoding__' to specify the encoding in use My personal preference is 4). I then need to choose between 1), 2) and 3) as a fallback if that value is missing. I have a similar problem with values passed at the command line - however in this case I can check ``sys.stdin.encoding``. This works (on windows) even if stdin has already been closed. I will probably have to force ascii only if that information isn't available. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Fuzzyman <fuz...@vo...> - 2006-04-05 09:24:20
|
Hello all, Just to let you all know that I am most of the way through implementing 'verbosity levels'. All the infrastructure is in place, and I'm starting to go through changing the print statements. I'm implementing three levels of verbosity : -v Verbose (default) Info, Warnings & Action -a Warnings & Actions -w Warnings Only Info is when rest2web scans a new directory, processes a page, guesses an encoding & skips writing a page or copying a file. Actions are when it does something like writing a file or copying a file. Warnings are when a file to be copied is missing, or something like that. Are these levels sufficient ? Should I add an option to the config file to set the verbosity level, as well as the command line switches ? New code should use the 'out' function rather than the print statement, and set the level of the message being sent. If a log file is in use, *everything* is logged - whatever the verbosity level. Even on the lowest verbosity level (-w), the welcome message, rest2web version, and number of files processed is still displayed. Thanks Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Marc C. <ma...@ro...> - 2006-04-04 23:08:42
|
>I don't understand this I'm afraid. Is the current situation causing you >a problem ? > Hi, I have no problem with the current situation. Just like the new template. Thanks, Marc ___ Marc Condon CEO, Rockets Redglare 408-390-9105 Fax 408-904-5027 ...... Original Message ....... On Tue, 04 Apr 2006 23:11:11 +0100 Michael Foord <fuz...@vo...> wrote: >Marc wrote: >> Hi, >> >> Will an installation package be made, like with the last version? Also, will you be incrementing the version number, like from 4.0 to 4.1? >There will be a 0.4.1 release *soon*. There are a few minor bugs to fix >and a few simple features that can be added quite quickly. > >I hope to package together the next release within two weeks.Some of the >new features, although simple to implement, should extend the range of >what it is possible to do with rest2web quite a lot. > >In the meantime you can always get the latest version from the >subversion repository. If you want help doing this, privately email me >and I'll explain. It sounds like you have already done this though. > >> I tried to surgically replace the template.txt file, but the source tree has the same 4.0 designation and the results are identical. >> >> >I don't understand this I'm afraid. Is the current situation causing you >a problem ? > >Fuzzyman >http://www.voidspace.org.uk/python/index.shtml > >> Thanks, >> Marc >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting language >> that extends applications into web and mobile media. Attend the live webcast >> and join the prime developer group breaking into this new coding territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> _______________________________________________ >> Rest2web-develop mailing list >> Res...@li... >> https://lists.sourceforge.net/lists/listinfo/rest2web-develop >> >> > > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >_______________________________________________ >Rest2web-develop mailing list >Res...@li... >https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > |
From: Michael F. <fuz...@vo...> - 2006-04-04 22:10:27
|
Marc wrote: > Hi, > > Will an installation package be made, like with the last version? Also, will you be incrementing the version number, like from 4.0 to 4.1? There will be a 0.4.1 release *soon*. There are a few minor bugs to fix and a few simple features that can be added quite quickly. I hope to package together the next release within two weeks.Some of the new features, although simple to implement, should extend the range of what it is possible to do with rest2web quite a lot. In the meantime you can always get the latest version from the subversion repository. If you want help doing this, privately email me and I'll explain. It sounds like you have already done this though. > I tried to surgically replace the template.txt file, but the source tree has the same 4.0 designation and the results are identical. > > I don't understand this I'm afraid. Is the current situation causing you a problem ? Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Thanks, > Marc > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > |
From: Marc <Ma...@ro...> - 2006-04-04 18:02:53
|
Hi, Will an installation package be made, like with the last version? Also, will you be incrementing the version number, like from 4.0 to 4.1? I tried to surgically replace the template.txt file, but the source tree has the same 4.0 designation and the results are identical. Thanks, Marc |
From: Fuzzyman <fuz...@vo...> - 2006-04-04 09:34:43
|
Hello Andrew, I would certainly appreciate your eyes in tracking down this bug. I don't *think* it can be platform specific though, as there is no platform specific code (I use platform independent functions from ``os.path`` and ``shutil`` to do all the work). I can see where the bug is happening - for you it seems to be where the location of the source file is determined. I've pasted the full code in below - and explained the logic of the first part which determines the source location. You could add in a print statement to see where it thinks the source file *should be*, which will give us a clue as to what is happening. The code exists twice (which means it ought to be turned into a method of Processor). Once in the ``process`` method and once in the ``processindex`` method. When rest2web starts, it changes the current directory to be the 'start' directory (top level of the site directory tree). As it goes through the files, the current directory being worked on is stored in ``self.dir`` (self being the processor instance). At the top level directory the following is set in ``__init__``, ``self.dir = os.curdir``. (Is it possible that this is the cause of the problem ?) Following code taken from - http://rest2web.python-hosting.com/file/trunk/rest2web/restprocessor.py - from the process method. # also copy files (from restindex) into same dir as target for entry in restindex['file']: src = join(self.dir, dirname(filename), entry) ## XXX Add a ``print src`` here :-) if not os.path.isfile(src): print ('File "%s" referenced by file keyword missing.' % entry) continue # target_file_name = url2pathname(target) targetfile = os.path.normpath(join( self.target, self.dir, target_file_name)) dest = join(dirname(targetfile), split(entry)[1]) comparefile = os.path.normpath(join( self.compare, self.dir, target_file_name)) cmp = join(dirname(comparefile), split(entry)[1]) if comparefiles(src, cmp): print 'File "%s" identical, skipping.' % entry continue if not isdir(dirname(dest)): os.makedirs(dirname(dest)) print 'Copying "%s".' % entry copy2(src, dest) # alias for shutil.copy2 I'll step through the code to explain the process. for entry in restindex['file']: restindex['file'] should be a list of all your file keywords from the page being processed. src = join(self.dir, dirname(filename), entry) ``join`` is an alias for ``os.path.join``. ``filename`` is the name of the file being processed. When we are processing an index file, it could actually be a path relative to ``self.dir`` if the ``index-file`` option is set. You were getting lots of ``File "..." referenced by file keyword missing.`` errors - so this logic seems to be faulty ? If you add the print statement I suggest, then you should be able to tell what is happening. I'm sure the solution is simple enough - but I can't see it. Thanks Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Andrew I. <and...@us...> - 2006-04-04 03:25:55
|
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 |
From: Michael F. <fuz...@vo...> - 2006-04-03 19:42:41
|
Hello all, I've just done a commit to subversion - http://svn.rest2web.python-hosting.com This includes the new template. It also includes two changes to the handling of the ``file`` keyword in the restindex. One bugfix. It appears to me that the ``file`` keyword was broken for use in anything except index files. It also now checks if the file is already in the compare directory (which defaults to the target directory, don't forget). If it is, it compares the size and ``mtime`` of the source and target files. It only copies if they are different. I've tested, and these changes appear to work. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Fuzzyman <fuz...@vo...> - 2006-04-03 08:37:54
|
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 |
From: Michael F. <fuz...@vo...> - 2006-04-02 21:32:23
|
Hello all, Once I've recovered the template (my weekends work) from the disastrous delete I just managed, here are the bugs and feature requests I will be working on for rest2web. If you see any I've missed out, let me know : Document initialheaderlevel file - should only copy if the file has changed (check timestamp and size, make sure to copy timestamp) Fix bug in file reported by Andrew Ittner. Gallery chokes on thumb.db and animated jpgs. <% path_to_root %> doesn't work in gallery files, need a workaround in plugin if possible. Implement next and previous. (And give pages access to the section order lists.) Implement levels of verbosity. A global set of uservalues from the config file. Overrideable in individual pages. A ``--template-file=`` command line option. Allow passing of uservalues at the command line. Tabs in embedded code cause a crash. All of these are pretty straightforward, so I expect to get them done gradually over the next two weeks. I'll let you know every time something interested goes into subversion. After this I'll work towards a 0.5.0 release, with some pretty major improvements in the pipeline. These will be : * Two pass process, so every page will have full access to the site structure * Content caching (optional) to improve performance * Auto building of contents pages for whole directory trees I don't know how long all that will take though. :-) All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: <fuz...@vo...> - 2006-04-01 22:11:28
|
{ran_emo} `rest2web <http://www.voidspace.org.uk/python/rest2web/>`_ finally gets some attention. {sm;:biggrin:} To start with it is only a facelift on the website, but expect new features and bugfixes to follow soon. Thanks to `Fuchsiashockdesign <http://www.fuchsiashockdesign.co.uk>`_ for the new template. It will soon also be applied to : * `Movable Python <http://www.voidspace.org.uk/python/movpy/>`_ * `Firedrop2 <http://www.voidspace.org.uk/python/firedrop2/>`_ |
From: Marc <Ma...@ro...> - 2006-04-01 16:53:54
|
The template looks nice. Looks more contemporary, less like a white paper. Thanks, Marc On Sat, 01 Apr 2006 12:30:33 +0100 Michael Foord <fuz...@vo...> wrote: > Hello all, > > I've started work on rest2web again, at last ! > > There is no new version yet, but I have completed a template redesign. > The new basic rest2web template is much more attractive. > > You can see how it will look at : > > http://www.voidspace.org.uk/test/index.html > > I'm going to redo the index page, it's too full at the moment. After > that I'll bugfix and add a few new features. > > Fuzzyman > http://www.voidspace.org.uk/python/index.shtml |
From: Michael F. <fuz...@vo...> - 2006-04-01 11:30:16
|
Hello all, I've started work on rest2web again, at last ! There is no new version yet, but I have completed a template redesign. The new basic rest2web template is *much* more attractive. You can see how it will look at : http://www.voidspace.org.uk/test/index.html I'm going to redo the index page, it's too full at the moment. After that I'll bugfix and add a few new features. Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Marc <Ma...@ro...> - 2006-04-01 06:56:59
|
On Fri, 31 Mar 2006 19:43:48 +0100 Michael Foord <fuz...@gm...> wrote: > > Date: > Fri, 31 Mar 2006 19:43:48 +0100 > From: > Michael Foord <fuz...@gm...> > Subject: > Re: [Rest2web-develop] Multiple templates, same content > To: > res...@li... > Reply-To: > res...@li... > On 23/02/06, Donald J. Welch <don...@hp...> wrote: > Hello, > I'm attempting to use rest2web to completely redesign our website > (hpinkjet.sf.net) to be more easily updated and managed. > Hello Donald, > I'm finally doing some updates on rest2web. Is the current website ( http://hplip.sourceforge.net/ ) built with rest2web ? > Hopefully I will soon be able to implement some of the features we discussed. > Michael Foord > > One requirement that I have is that I need to be able to create 2 > separate sets of HTML pages that have a completely different > look-and-feel (one for the website and one to be included in our tarball > that will eventually be converted to PDF). > I currently see no way to pass-in or otherwise externally influence the > template that will be used during a run of r2w.py since it is specified > statically, with the content, in the restindex. The only way I can see > to do this is to copy the first template in place, run r2w with one > config file and then overwrite the template file and run r2w again with > a second config file (to be able to change the output directory). > Is there a more elegant way to accomplish this? Can I make the template > programmable/dynamic in some way using the <# #> blocks? > Thanks for this great tool, > Don > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > -- > http://www.Voidspace.org.uk > The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. > --- > http://www.Voidspace.org.uk/python/index.shtml > Python utilities, modules and apps. > Including Nanagram, Dirwatcher and more. > --- > http://www.fuchsiashockz.co.uk > http://groups.yahoo.com/group/void-shockz > --- > Everyone has talent. What is rare is the courage to follow talent > to the dark place where it leads. -Erica Jong > Ambition is a poor excuse for not having sense enough to be lazy. > -Milan Kundera Hi, Where do I find the new version of rest2web Thanks, Marc |
From: Michael F. <fuz...@gm...> - 2006-03-31 18:50:24
|
On 23/02/06, Donald J. Welch <don...@hp...> wrote: > > Hello, > I'm attempting to use rest2web to completely redesign our website > (hpinkjet.sf.net) to be more easily updated and managed. Hello Donald, I'm finally doing some updates on rest2web. Is the current website ( http://hplip.sourceforge.net/ ) built with rest2web ? Hopefully I will soon be able to implement some of the features we discussed. Michael Foord One requirement that I have is that I need to be able to create 2 > separate sets of HTML pages that have a completely different > look-and-feel (one for the website and one to be included in our tarball > that will eventually be converted to PDF). > > I currently see no way to pass-in or otherwise externally influence the > template that will be used during a run of r2w.py since it is specified > statically, with the content, in the restindex. The only way I can see > to do this is to copy the first template in place, run r2w with one > config file and then overwrite the template file and run r2w again with > a second config file (to be able to change the output directory). > > Is there a more elegant way to accomplish this? Can I make the template > programmable/dynamic in some way using the <# #> blocks? > > Thanks for this great tool, > > Don > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fictio= n and more. --- http://www.Voidspace.org.uk/python/index.shtml Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera |
From: Fuzzyman <fuz...@vo...> - 2006-03-28 15:30:47
|
Hello all, Just to let you know that a friend of mine has just completed a new template that will be the basis for the websites of : * rest2web * Movable Python * Firedrop It is very attractive and a great improvement on the current design. Hopefully this will be the opportunity for the long promised docs revamp of rest2web, as well as the bugfixes and feature requests that have accumulated in recent weeks. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Michael F. <fuz...@vo...> - 2006-03-22 19:35:17
|
Marc wrote: > Hi Fuzzyman, > > This is just FYI. Enclosed is a sample jpg that causes this error. I understand why it's not supported, just thought you might want to skip these. > > Just FYI, > Marc > > > Ok. It's a limitation in the Python Imaging Library which I use to handle the images (although I can understand why it struggles to create a thumbnail of an animated jpg.) The only way to avoid this (as far as I can tell) is to trap the error and skip the file - probably with a warning. Until I implement a reduced verbosity mode - the warning might be difficult to spot though. Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Animals\../../sites/marcs1stsite/Personal/Galleries/Animals/Cats\CatsAndDoves.jpg > [err] Traceback (most recent call last): > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 168, in ? > [err] count = main(config) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 104, in main > [err] return processor.walk() > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 187, in walk > [err] self.setdefaults(dir_list) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 459, in setdefaults > [err] restindex, uservalues)) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 1312, in do_plugin > [err] return self.plugins[plugin].page(filename, target, restindex, uservalues) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py", line 76, in page > [err] data = get_info(params) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py", line 143, in get_info > [err] im.save(thumb_name) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\Image.py", line 1305, in save > [err] save_handler(self, fp, filename) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\JpegImagePlugin.py", line 390, in _save > [err] raise IOError("cannot write mode %s as JPEG" % im.mode) > [err] IOError: cannot write mode P as JPEG > [err] > > ------------------------------------------------------------------------ > > |
From: Marc <Ma...@ro...> - 2006-03-22 18:34:15
|
On Tue, 21 Mar 2006 16:28:16 +0000 Michael Foord <fuz...@vo...> wrote: > Hello Marc, > > I think we've got it. > > Marc wrote: > > Processing "subfolder" directory. > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\cart_and_girl.jpg > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\eddie.jpg > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\fried_brains.jpg > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\fuzzyman.jpg > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\horse_and_cart.jpg > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\Thumbs.db > > > Gallery is attempting to process 'thumbs.db' and failing. This is > autocreated by windows when you view the directory. > > I'll have to fix the gallery to skip this file (I thought it already > did - obviously not). In the meantime you need to delete this file first. > > You might need to change your folder settings to 'View -> List' and show > hidden files to be able to delete it. > > All the best, > > Fuzzyman > http://www.voidspace.org.uk/python/index.shtml > > > [err] Traceback (most recent call last): > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 168, in ? > > [err] count = main(config) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 104, in main > > [err] return processor.walk() > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 187, in walk > > [err] self.setdefaults(dir_list) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 459, in setdefaults > > [err] restindex, uservalues)) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 1312, in do_plugin > > [err] return self.plugins[plugin].page(filename, target, restindex, uservalues) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py", line 76, in page > > [err] data = get_info(params) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py", line 118, in get_info > > [err] im = Image.open(path) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\Image.py", line 1741, in open > > [err] return factory(fp, filename) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\ImageFile.py", line 82, in __init__ > > [err] self._open() > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\FpxImagePlugin.py", line 63, in _open > > [err] self.ole = OleFileIO(self.fp) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 260, in __init__ > > [err] self.open(filename) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 293, in open > > [err] self.loaddirectory(i32(header, 48)) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 339, in loaddirectory > > [err] fp = self._open(sect) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 405, in _open > > [err] self.sectorsize, self.fat) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 106, in __init__ > > [err] sect = fat[sect] > > [err] OverflowError: long int too large to convert to int > > [err] > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > > that extends applications into web and mobile media. Attend the live webcast > > and join the prime developer group breaking into this new coding territory! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > _______________________________________________ > > Rest2web-develop mailing list > > Res...@li... > > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > > > Hi Fuzzyman, This is just FYI. Enclosed is a sample jpg that causes this error. I understand why it's not supported, just thought you might want to skip these. Just FYI, Marc Animals\../../sites/marcs1stsite/Personal/Galleries/Animals/Cats\CatsAndDoves.jpg [err] Traceback (most recent call last): [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 168, in ? [err] count = main(config) [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 104, in main [err] return processor.walk() [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 187, in walk [err] self.setdefaults(dir_list) [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 459, in setdefaults [err] restindex, uservalues)) [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 1312, in do_plugin [err] return self.plugins[plugin].page(filename, target, restindex, uservalues) [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py", line 76, in page [err] data = get_info(params) [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py", line 143, in get_info [err] im.save(thumb_name) [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\Image.py", line 1305, in save [err] save_handler(self, fp, filename) [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\JpegImagePlugin.py", line 390, in _save [err] raise IOError("cannot write mode %s as JPEG" % im.mode) [err] IOError: cannot write mode P as JPEG [err] |
From: Marc <Ma...@ro...> - 2006-03-22 00:03:04
|
On Tue, 21 Mar 2006 16:28:16 +0000 Michael Foord <fuz...@vo...> wrote: > Hello Marc, > > I think we've got it. > > Marc wrote: > > Processing "subfolder" directory. > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\cart_and_girl.jpg > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\eddie.jpg > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\fried_brains.jpg > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\fuzzyman.jpg > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\horse_and_cart.jpg > > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\Thumbs.db > > > Gallery is attempting to process 'thumbs.db' and failing. This is > autocreated by windows when you view the directory. > > I'll have to fix the gallery to skip this file (I thought it already > did - obviously not). In the meantime you need to delete this file first. > > You might need to change your folder settings to 'View -> List' and show > hidden files to be able to delete it. > > All the best, > > Fuzzyman > http://www.voidspace.org.uk/python/index.shtml > > > [err] Traceback (most recent call last): > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 168, in ? > > [err] count = main(config) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 104, in main > > [err] return processor.walk() > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 187, in walk > > [err] self.setdefaults(dir_list) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 459, in setdefaults > > [err] restindex, uservalues)) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 1312, in do_plugin > > [err] return self.plugins[plugin].page(filename, target, restindex, uservalues) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py", line 76, in page > > [err] data = get_info(params) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py", line 118, in get_info > > [err] im = Image.open(path) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\Image.py", line 1741, in open > > [err] return factory(fp, filename) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\ImageFile.py", line 82, in __init__ > > [err] self._open() > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\FpxImagePlugin.py", line 63, in _open > > [err] self.ole = OleFileIO(self.fp) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 260, in __init__ > > [err] self.open(filename) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 293, in open > > [err] self.loaddirectory(i32(header, 48)) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 339, in loaddirectory > > [err] fp = self._open(sect) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 405, in _open > > [err] self.sectorsize, self.fat) > > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 106, in __init__ > > [err] sect = fat[sect] > > [err] OverflowError: long int too large to convert to int > > [err] > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > > that extends applications into web and mobile media. Attend the live webcast > > and join the prime developer group breaking into this new coding territory! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > _______________________________________________ > > Rest2web-develop mailing list > > Res...@li... > > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > > > Hi Fuzzyman, Thats was it. Looks like I was right about reinitialization. Thumbs.db being hidden is really weird on Windows. It cannot be seen nor found in File Explorer. In a shell, plain 'ls' discovers it. I like using these tools thanks for publishing them. Thanks, Marc |
From: Michael F. <fuz...@vo...> - 2006-03-21 16:28:15
|
Hello Marc, I think we've got it. Marc wrote: > Processing "subfolder" directory. > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\cart_and_girl.jpg > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\eddie.jpg > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\fried_brains.jpg > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\fuzzyman.jpg > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\horse_and_cart.jpg > subfolder\../../sites/rest2web/gallery_test/subfolder/gallery2\Thumbs.db > Gallery is attempting to process 'thumbs.db' and failing. This is autocreated by windows when you view the directory. I'll have to fix the gallery to skip this file (I *thought* it already did - obviously not). In the meantime you need to delete this file first. You might need to change your folder settings to 'View -> List' and show hidden files to be able to delete it. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > [err] Traceback (most recent call last): > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 168, in ? > [err] count = main(config) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web.py", line 104, in main > [err] return processor.walk() > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 187, in walk > [err] self.setdefaults(dir_list) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 459, in setdefaults > [err] restindex, uservalues)) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\restprocessor.py", line 1312, in do_plugin > [err] return self.plugins[plugin].page(filename, target, restindex, uservalues) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py", line 76, in page > [err] data = get_info(params) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py", line 118, in get_info > [err] im = Image.open(path) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\Image.py", line 1741, in open > [err] return factory(fp, filename) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\ImageFile.py", line 82, in __init__ > [err] self._open() > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\FpxImagePlugin.py", line 63, in _open > [err] self.ole = OleFileIO(self.fp) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 260, in __init__ > [err] self.open(filename) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 293, in open > [err] self.loaddirectory(i32(header, 48)) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 339, in loaddirectory > [err] fp = self._open(sect) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 405, in _open > [err] self.sectorsize, self.fat) > [err] File "C:\Documents and Settings\All Users\Documents\Python242\Lib\site-packages\PIL\OleFileIO.py", line 106, in __init__ > [err] sect = fat[sect] > [err] OverflowError: long int too large to convert to int > [err] > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > |