rest2web-develop Mailing List for rest2web (Page 19)
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: Marc <Ma...@ro...> - 2006-03-21 16:23:03
|
Hi Fuzzyman, Thanks for clearing up syntax misunderstanding. Below is my log file. Please advise, Marc On Sun, 19 Mar 2006 23:00:31 +0000 Michael Foord <fuz...@vo...> wrote: > Marc Condon wrote: > > Hi, > > > > Out of the box gallery_test works ok, but when I rerun it, it > > generates the thumbnails for the first directory, then complains about > > not being about not being able to cast an int into a long. > > Is there a special clean up necessary for rerunning gallery_test. > > > That's a bizarre error. The actual error occurs in a straightforward > call to ``Image.open``: > > im = Image.open(path) > > I wonder what the path is when that fails. Can you add a line just above > line 117 to ``print path``, please. > > In the meantime I'll see if I can reproduce the bug. > > Fuzzyman > http://www.voidspace.org.uk/python/index.shtml > > Thanks, > > Marc > > > > Processing "root" directory. > > [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 117, 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 > > Cannot find Psyco, skipping it rest2web version 0.4.0 alpha Running rest2web the Site Builder. Tue Mar 21 08:19:52 2006 Starting in "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\gallery_test" directory. Processing "root" directory. ../sites/rest2web/gallery_test/gallery\apollo08_earthrise.jpg ../sites/rest2web/gallery_test/gallery\apollo16_earth_northamerica.jpg ../sites/rest2web/gallery_test/gallery\apollo17_schmitt_boulder.jpg ../sites/rest2web/gallery_test/gallery\apollo_lem.jpg ../sites/rest2web/gallery_test/gallery\apollo_rover.jpg ../sites/rest2web/gallery_test/gallery\face.jpg ../sites/rest2web/gallery_test/gallery\gal_africa.jpg ../sites/rest2web/gallery_test/gallery\hst_bubble.jpg ../sites/rest2web/gallery_test/gallery\hst_carina.jpg ../sites/rest2web/gallery_test/gallery\hst_crab_nebula.jpg Reading "subfolder\index.txt". Guessing encoding. We guessed: ISO8859-1 Reading "template.txt". Processing indexfile. Guessing encoding. We guessed: ISO8859-1 Building index.html Skipping "index.html". Identical file exists. 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 [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] |
From: Michael F. <fuz...@vo...> - 2006-03-21 11:03:55
|
Marc wrote: > On Sun, 19 Mar 2006 23:00:31 +0000 Michael Foord <fuz...@vo...> wrote: > > >> print path >> > > Hi, > > Thanks for getting back with me. > > I added 'print path' to above line 117 of rest2web.py > > def main_is_frozen(): > return ( > # new py2exe > hasattr(sys, "frozen") or > # tools/freeze > print path > imp.is_frozen("__main__")) > > path is not defined in this point of the code and I get a systax error. > > Where do I add the echo? > > The crash occurs in the following file : "C:\Documents and Settings\All Users\Documents\Python242\rest2web-0.4.0alpha\rest2web\plugins\gallery.py" It is in *this* file that you should add the print statement. This should then show us (in the log) what path is causing the error. :-) Fuzzyman http://www.voidspace.org.uk/python/index.shtml > 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-03-20 21:07:38
|
On Sun, 19 Mar 2006 23:00:31 +0000 Michael Foord <fuz...@vo...> wrote: > print path Hi, Thanks for getting back with me. I added 'print path' to above line 117 of rest2web.py def main_is_frozen(): return ( # new py2exe hasattr(sys, "frozen") or # tools/freeze print path imp.is_frozen("__main__")) path is not defined in this point of the code and I get a systax error. Where do I add the echo? Marc |
From: Michael F. <fuz...@vo...> - 2006-03-19 23:00:17
|
Marc Condon wrote: > Hi, > > Out of the box gallery_test works ok, but when I rerun it, it > generates the thumbnails for the first directory, then complains about > not being about not being able to cast an int into a long. > Is there a special clean up necessary for rerunning gallery_test. > That's a bizarre error. The actual error occurs in a straightforward call to ``Image.open``: im = Image.open(path) I wonder what the path is when that fails. Can you add a line just above line 117 to ``print path``, please. In the meantime I'll see if I can reproduce the bug. Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Thanks, > Marc > > Processing "root" directory. > [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 117, 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 > |
From: Marc C. <ma...@ro...> - 2006-03-19 20:57:50
|
Hi, Out of the box gallery_test works ok, but when I rerun it, it generates the thumbnails for the first directory, then complains about not being about not being able to cast an int into a long. Is there a special clean up necessary for rerunning gallery_test. Thanks, Marc Processing "root" directory. [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 117, 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] |
From: Fuzzyman <fuz...@vo...> - 2006-03-07 16:45:15
|
Andrew Ittner wrote: >Michael: > >The following subversion & linux commands reveal my handiwork: svn blame >restprocessor.py|grep -i 'aji'. Or just search the "blame" output for >"aji". > >Revision #158 on restprocessor.py contains my 5 lines of changes. > > > Oh. :-) That's me being dopey then. Great. Fuzzyman http://www.voidspace.org.uk/python/index.shtml >Take care, > >Andrew > > >-----Original Message----- >From: res...@li... >[mailto:res...@li...]On Behalf Of Fuzzyman >Sent: Monday, March 06, 2006 1:13 AM >To: res...@li... >Subject: Re: [Rest2web-develop] initialheaderlevel > > >Andrew Ittner wrote: >Michael: > >I added the initialheaderlevel keyword for use on my own projects, and did >not update the docs or any of the examples. Yes, I would appreciate it if >you would correct my oversight. > > >Hello Andrew, > >I'm happy to add it to the docs and the 'test' site. The problem I saw was a >bit more fundamental though. > >Although you added the code to 'restindex.py' to recognise the new keyword, >I couldn't see any changes in 'resprocessor.py' to *use* the keyword. > >I might be being thick here of course ? > >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: Andrew I. <and...@us...> - 2006-03-07 00:47:05
|
Michael: The following subversion & linux commands reveal my handiwork: svn blame restprocessor.py|grep -i 'aji'. Or just search the "blame" output for "aji". Revision #158 on restprocessor.py contains my 5 lines of changes. Take care, Andrew -----Original Message----- From: res...@li... [mailto:res...@li...]On Behalf Of Fuzzyman Sent: Monday, March 06, 2006 1:13 AM To: res...@li... Subject: Re: [Rest2web-develop] initialheaderlevel Andrew Ittner wrote: Michael: I added the initialheaderlevel keyword for use on my own projects, and did not update the docs or any of the examples. Yes, I would appreciate it if you would correct my oversight. Hello Andrew, I'm happy to add it to the docs and the 'test' site. The problem I saw was a bit more fundamental though. Although you added the code to 'restindex.py' to recognise the new keyword, I couldn't see any changes in 'resprocessor.py' to *use* the keyword. I might be being thick here of course ? All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Fuzzyman <fuz...@vo...> - 2006-03-06 09:13:30
|
Andrew Ittner wrote: > Michael: > > I added the initialheaderlevel keyword for use on my own projects, and did > not update the docs or any of the examples. Yes, I would appreciate it if > you would correct my oversight. > > Hello Andrew, I'm happy to add it to the docs and the 'test' site. The problem I saw was a bit more fundamental though. Although you added the code to 'restindex.py' to recognise the new keyword, I couldn't see any changes in 'resprocessor.py' to *use* the keyword. I might be being thick here of course ? All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Sincerely, > > Andrew > > >> -----Original Message----- >> From: res...@li... >> [mailto:res...@li...]On Behalf Of >> Michael Foord >> Sent: Saturday, March 04, 2006 12:36 PM >> To: res...@li... >> Subject: [Rest2web-develop] initialheaderlevel >> >> >> Hello Andrew (and others), >> >> By the way, the rest2web repository no longer contains pythontuils and >> Firedrop in the branches. They now have their own subversion repositories. >> >> Also version 0.4.0 is in tags. >> >> I've checked out the latest version in preparation for doing some work >> on restweb (finally). Andrew, I can see where you added the code in >> ``restindex.py`` to check for ``intialheaderlevel``. (A new restindex >> keyword.) >> >> I *can't* see any code changes to use it ??? Have you not added this yet >> ? Do you want me to do it ? >> >> 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: Andrew I. <and...@us...> - 2006-03-06 04:00:42
|
Michael: I added the initialheaderlevel keyword for use on my own projects, and did not update the docs or any of the examples. Yes, I would appreciate it if you would correct my oversight. Sincerely, Andrew > -----Original Message----- > From: res...@li... > [mailto:res...@li...]On Behalf Of > Michael Foord > Sent: Saturday, March 04, 2006 12:36 PM > To: res...@li... > Subject: [Rest2web-develop] initialheaderlevel > > > Hello Andrew (and others), > > By the way, the rest2web repository no longer contains pythontuils and > Firedrop in the branches. They now have their own subversion repositories. > > Also version 0.4.0 is in tags. > > I've checked out the latest version in preparation for doing some work > on restweb (finally). Andrew, I can see where you added the code in > ``restindex.py`` to check for ``intialheaderlevel``. (A new restindex > keyword.) > > I *can't* see any code changes to use it ??? Have you not added this yet > ? Do you want me to do it ? > > All the best, > > Fuzzyman > http://www.voidspace.org.uk/python/index.shtml |
From: Michael F. <fuz...@vo...> - 2006-03-04 20:38:15
|
Hello Andrew (and others), By the way, the rest2web repository no longer contains pythontuils and Firedrop in the branches. They now have their own subversion repositories. Also version 0.4.0 is in tags. I've checked out the latest version in preparation for doing some work on restweb (finally). Andrew, I can see where you added the code in ``restindex.py`` to check for ``intialheaderlevel``. (A new restindex keyword.) I *can't* see any code changes to use it ??? Have you not added this yet ? Do you want me to do it ? All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Michael F. <fuz...@vo...> - 2006-02-23 23:11:30
|
Peter Brett wrote: > On Thursday 23 February 2006 13:43, Fuzzyman wrote: > >> Peter Brett wrote: >> >>> On Thursday 23 February 2006 11:13, Fuzzyman wrote: >>> >>>> Alternatively the *template* could probably already check the command >>>> line arguments. This would break if I added any other command line >>>> arguments. At the moment the first argument is always the config file, >>>> but no other command line options are used. >>>> >>> What about having a special argument, e.g. '--' after which all remaining >>> arguments are passed to the template? Either that or a >>> '--template-args=<string>'... >>> >> [...] >> >> How about : >> >> '--template-file=<path>' >> >> ? >> >> Would be easy enough to implement, and can be overridden for individual >> files or directories in the restindex. >> >> > > Can we have --template-args=<string> _as_well_? I've already thought of some > excellent uses for it. I don't see any direct problems with putting it in - > if users want to do bizarre conditional logic in their template, why the hell > not? > Ok, but [part of..] my proposal is more *general*. I propose to allow the setting of 'uservalues' (note the plural) from the command line. These can be used for whatever you want - including conditional logic in the templates. :-) I haven't decided on the syntax, but it's going to be a couple of weeks before I can implement this. rest2web is gradually climbing to the top of my 'todo' list. Now if only a Firedrop user didn't keep adding features, I'd be free to work on rest2web. *sigh* All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Peter :) > > |
From: Peter B. <pe...@pe...> - 2006-02-23 17:50:24
|
On Thursday 23 February 2006 13:43, Fuzzyman wrote: > Peter Brett wrote: > > On Thursday 23 February 2006 11:13, Fuzzyman wrote: > >> Alternatively the *template* could probably already check the command > >> line arguments. This would break if I added any other command line > >> arguments. At the moment the first argument is always the config file, > >> but no other command line options are used. > > > > What about having a special argument, e.g. '--' after which all remaining > > arguments are passed to the template? Either that or a > > '--template-args=<string>'... > > [...] > > How about : > > '--template-file=<path>' > > ? > > Would be easy enough to implement, and can be overridden for individual > files or directories in the restindex. > Can we have --template-args=<string> _as_well_? I've already thought of some excellent uses for it. I don't see any direct problems with putting it in - if users want to do bizarre conditional logic in their template, why the hell not? Peter :) -- Quake II build tools: http://peter-b.co.uk/ v2sw6YShw7$ln5pr6ck3ma8u6/8Lw3+2m0l7Ci6e4+8t4Eb8Aen5+6g6Pa2Xs5MSr5p4 hackerkey.com |
From: Fuzzyman <fuz...@vo...> - 2006-02-23 13:44:19
|
Peter Brett wrote: > On Thursday 23 February 2006 11:13, Fuzzyman wrote: > > >> Alternatively the *template* could probably already check the command >> line arguments. This would break if I added any other command line >> arguments. At the moment the first argument is always the config file, >> but no other command line options are used. >> >> > > What about having a special argument, e.g. '--' after which all remaining > arguments are passed to the template? Either that or a > '--template-args=<string>'... > We have to decide whether the best thing is to pass an option to specify a different file for the template or a value that the template can use to decide what to do. The disadvantage of the second is that you end up with conditional code inside your template, and possibly having to duplicate your html, all inside '<# ... #>' tags. Alternatively you could in your main 'template.txt', just load another file I suppose. The disadvantage of the first is that it means specifying a global value for something that can be set on individual files. Not necessarily a disadvantage - just not so orthogonal. How about : '--template-file=<path>' ? Would be easy enough to implement, and can be overridden for individual files or directories in the restindex. I still intend to implement global values in the config file - so it would be possible to customize that way *anyway*. Maybe a way of passing in uservalues via the command line would be a good thing to implement at the same time. That way you can implement whatever run-time 'switches' you want in templates or content. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Peter > > |
From: Peter B. <pe...@pe...> - 2006-02-23 11:49:55
|
On Thursday 23 February 2006 11:13, Fuzzyman wrote: > Alternatively the *template* could probably already check the command > line arguments. This would break if I added any other command line > arguments. At the moment the first argument is always the config file, > but no other command line options are used. > What about having a special argument, e.g. '--' after which all remaining arguments are passed to the template? Either that or a '--template-args=<string>'... Peter -- Quake II build tools: http://peter-b.co.uk/ v2sw6YShw7$ln5pr6ck3ma8u6/8Lw3+2m0l7Ci6e4+8t4Eb8Aen5+6g6Pa2Xs5MSr5p4 hackerkey.com |
From: Fuzzyman <fuz...@vo...> - 2006-02-23 11:14:33
|
Peter Brett wrote: > On Thursday 23 February 2006 09:23, Fuzzyman wrote: > > >> Alternatively, what mechanism would you *like* me to build into rest2web ? >> > > How about a command-line option to set the restindex filename rest2web looks > for? > > Do you mean the *template* filename ? Allowing the over-riding of a single restindex option through the command line is kookie but probably acceptable. It would also only work for sites with a single template. As it's a situation I'm in myself, and probably not uncommon, finding the most elegant solution would be good.A GUI front end would make this easier of course, but probably not an option beloved of everyone anyway (so a command line/config file solution as well would be good). Alternatively the *template* could probably already check the command line arguments. This would break if I added any other command line arguments. At the moment the first argument is always the config file, but no other command line options are used. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Peter > > |
From: Peter B. <pe...@pe...> - 2006-02-23 11:09:00
|
On Thursday 23 February 2006 09:23, Fuzzyman wrote: > Alternatively, what mechanism would you *like* me to build into rest2web ? How about a command-line option to set the restindex filename rest2web looks for? Peter -- Quake II build tools: http://peter-b.co.uk/ v2sw6YShw7$ln5pr6ck3ma8u6/8Lw3+2m0l7Ci6e4+8t4Eb8Aen5+6g6Pa2Xs5MSr5p4 hackerkey.com |
From: Fuzzyman <fuz...@vo...> - 2006-02-23 09:24:03
|
Donald J. Welch wrote: > Hello, > I'm attempting to use rest2web to completely redesign our website > (hpinkjet.sf.net) to be more easily updated and managed. > > 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? > > I have a similar situation to you, for rest2web, Firedrop and Movable Python I have one template for the online version (replete with adverts), and another template for the docs bundled with the distributions. I currently run rest2web and copy the files. Then I rename 'template.txt' to '_template.txt' and the second template I rename to 'template.txt', then run rest2web again. The alternative would be to change a single line in the main restindex. The easiest way to do this would be with a batch file or shell script that does the two pass process. Alternatively, what mechanism would you *like* me to build into rest2web ? I have in mind to allow the setting of uservalues in the *config file*. This will allow plugins to access global values for a site. Then your template could check for this value and either include an external file or do other magic depending on the value. You could then just create two config files for the two different builds (also specifying different target locations). For the moment a shell script that renames the template file is the easiest solution, but the other way may be possible at some point in the future. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > 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 > > |
From: Donald J. W. <don...@hp...> - 2006-02-23 00:58:21
|
Hello, I'm attempting to use rest2web to completely redesign our website (hpinkjet.sf.net) to be more easily updated and managed. 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 |
From: Fuzzyman <fuz...@vo...> - 2006-02-16 10:49:33
|
Andrew Ittner wrote: > I do need it per file, since some files have my macro with the default <h1> > and most don't. > > Keeping the restindex keyword list small is an admirable goal, but since an > "initialheaderlevel" keyword can (and should) default to "1", and the user > can specify it only when necessary, it doesn't end up polluting the web > site's source files unnecessarily. Adding the keyword adds a little more > flexibility for the end-user. > > I just added the code - 4 lines were changed. If you want, I can check that > in, save you the work of adding this feature... > > Only 4 lines ! My goodness. :-) Yeah - commit away. Want to do the doc changes as well ? Thanks Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Andrew > > >> -----Original Message----- >> From: res...@li... >> [mailto:res...@li...]On Behalf Of >> Fuzzyman >> Sent: Wednesday, February 15, 2006 3:25 AM >> To: res...@li... >> Subject: Re: [Rest2web-develop] Feature request: specify header level >> for rest docs >> >> >> Andrew Ittner wrote: >> >>> For some of the files in my site I have a macro that returns a >>> >> <h1> block. >> >>> The files that are written in rest format automatically start >>> >> the headers at >> >>> <h1> and work down. >>> >>> I want the ability to specify in the restindex at what level the header >>> should start. A restindex keyword like "headerlevel=2" would tell the >>> parser to start the rest portion of the headers at <h2>, >>> >> leaving me free to >> >>> set an <h1> manually. >>> >>> >>> >> I *can* add this. It's yet another restindex option. *sigh* I'd like to >> minimize the number of additional restindex keywords, but in this case >> there doesn't seem to be a cleaner alternative. As it's likely to need >> to be a global setting (not vary through a site), perhaps it could be >> added to the config file instead ? I will shortly be adding the >> possibility of global settings in the config file for plugins. Would >> this work for you Andrew ? >> >> 3 short term fixes spring to mind, all slightly hackish : >> >> * ReST puts a class on all headlines it generates. You can just use CSS >> to control their appearance. >> * You could use a ``{title;Title Text;2}`` macro to do your headings. I >> use this because putting proper titles into a ReST document triggers the >> creation of ``sections`` which has unfortunate side effects where I want >> to control the way paragraphs are in div containers. (ReST doesn't allow >> any content between sections.) >> * The function to modify to simply hardwire the change is ``html_parts`` >> in ``rest2web/restutils.py``. Set the default >> ``initial_header_level`` to 2. >> > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > |
From: Andrew I. <and...@us...> - 2006-02-16 05:02:31
|
I do need it per file, since some files have my macro with the default <h1> and most don't. Keeping the restindex keyword list small is an admirable goal, but since an "initialheaderlevel" keyword can (and should) default to "1", and the user can specify it only when necessary, it doesn't end up polluting the web site's source files unnecessarily. Adding the keyword adds a little more flexibility for the end-user. I just added the code - 4 lines were changed. If you want, I can check that in, save you the work of adding this feature... Andrew > -----Original Message----- > From: res...@li... > [mailto:res...@li...]On Behalf Of > Fuzzyman > Sent: Wednesday, February 15, 2006 3:25 AM > To: res...@li... > Subject: Re: [Rest2web-develop] Feature request: specify header level > for rest docs > > > Andrew Ittner wrote: > > For some of the files in my site I have a macro that returns a > <h1> block. > > The files that are written in rest format automatically start > the headers at > > <h1> and work down. > > > > I want the ability to specify in the restindex at what level the header > > should start. A restindex keyword like "headerlevel=2" would tell the > > parser to start the rest portion of the headers at <h2>, > leaving me free to > > set an <h1> manually. > > > > > I *can* add this. It's yet another restindex option. *sigh* I'd like to > minimize the number of additional restindex keywords, but in this case > there doesn't seem to be a cleaner alternative. As it's likely to need > to be a global setting (not vary through a site), perhaps it could be > added to the config file instead ? I will shortly be adding the > possibility of global settings in the config file for plugins. Would > this work for you Andrew ? > > 3 short term fixes spring to mind, all slightly hackish : > > * ReST puts a class on all headlines it generates. You can just use CSS > to control their appearance. > * You could use a ``{title;Title Text;2}`` macro to do your headings. I > use this because putting proper titles into a ReST document triggers the > creation of ``sections`` which has unfortunate side effects where I want > to control the way paragraphs are in div containers. (ReST doesn't allow > any content between sections.) > * The function to modify to simply hardwire the change is ``html_parts`` > in ``rest2web/restutils.py``. Set the default > ``initial_header_level`` to 2. |
From: <fuz...@vo...> - 2006-02-15 15:21:11
|
{emo;bugs} My English speaking readers may or may not know that there is a relatively new Python book, called `Programmation Python <http://www.editions-eyrolles.com/Livre/9782212116779/programmation-python>`_ written in French [#]_. Of course this is good news in itself. Especially interesting to me is the reference of page 523 of the `Contents Page (pdf) <http://programmation-python.org/media/sommaire.pdf>`_ to `rest2web <http://www.voidspace.org.uk/python/rest2web/>`_. Intriguing, looks like **rest2web** has made it into print ! {sm;:lol:} Now, where can I find a Frenchman with a copy of the book ? Hmmm... .. [#] The book also has it's own website `programmation-python.org <http://programmation-python.org/>`_ |
From: Fuzzyman <fuz...@vo...> - 2006-02-15 11:28:17
|
Andrew Ittner wrote: > For some of the files in my site I have a macro that returns a <h1> block. > The files that are written in rest format automatically start the headers at > <h1> and work down. > > I want the ability to specify in the restindex at what level the header > should start. A restindex keyword like "headerlevel=2" would tell the > parser to start the rest portion of the headers at <h2>, leaving me free to > set an <h1> manually. > > I *can* add this. It's yet another restindex option. *sigh* I'd like to minimize the number of additional restindex keywords, but in this case there doesn't seem to be a cleaner alternative. As it's likely to need to be a global setting (not vary through a site), perhaps it could be added to the config file instead ? I will shortly be adding the possibility of global settings in the config file for plugins. Would this work for you Andrew ? 3 short term fixes spring to mind, all slightly hackish : * ReST puts a class on all headlines it generates. You can just use CSS to control their appearance. * You could use a ``{title;Title Text;2}`` macro to do your headings. I use this because putting proper titles into a ReST document triggers the creation of ``sections`` which has unfortunate side effects where I want to control the way paragraphs are in div containers. (ReST doesn't allow any content between sections.) * The function to modify to simply hardwire the change is ``html_parts`` in ``rest2web/restutils.py``. Set the default ``initial_header_level`` to 2. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Thanks, > > Andrew Ittner > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > |
From: Andrew I. <and...@us...> - 2006-02-15 04:42:53
|
For some of the files in my site I have a macro that returns a <h1> block. The files that are written in rest format automatically start the headers at <h1> and work down. I want the ability to specify in the restindex at what level the header should start. A restindex keyword like "headerlevel=2" would tell the parser to start the rest portion of the headers at <h2>, leaving me free to set an <h1> manually. Thanks, Andrew Ittner |
From: Michael F. <fuz...@gm...> - 2006-02-01 19:09:33
|
On 01/02/06, Andrew Ittner <and...@us...> wrote: > > I am looking for a static html gallery generator, and rest2web's gallery > plug-in may work for me. > > Before I dive in, is it still actively developed and/or will it continue > to > be maintained? My current gallery generator hasn't been updated in well > over a year, and I am wary of becoming the ONLY person using a piece of > software! It generates the voidspace galleries (as well as working standalone). It currently does everything I *need* it to - so I'm not pomising to further develop it, but I will maintain it and fix any bugs. Your input is welcomed. Fuzzyman Thanks, > > Andrew Ittner > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&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-02-01 19:02:58
|
I am looking for a static html gallery generator, and rest2web's gallery plug-in may work for me. Before I dive in, is it still actively developed and/or will it continue to be maintained? My current gallery generator hasn't been updated in well over a year, and I am wary of becoming the ONLY person using a piece of software! Thanks, Andrew Ittner |