Thread: [Rest2web-develop] Nailed the File Keyword Bug
Brought to you by:
mjfoord
From: Michael F. <fuz...@vo...> - 2006-04-09 17:48:10
|
Hello all, I think I've finally nailed the file keyword bug. The fix is now in subversion. I've tested this with normal pages, index pages, and an index page using the 'index-file' keyword. For each of these I tested with a normal file (in the same directory) and using an absolute file location. I would appreciate a test on Linux. I would also appreciate testing of the new verbosity settings - I'm sure they work, so perhaps feedback is a better word than testing. (Are the levels right - or would something between ``-v`` and ``-a`` be useful ?) Testing with rest2web is a *pain*. I didn't design it with testing in mind, so there is no real way to leave regression tests in place. rest2web is also hard to maintain as there is some complicated logic in. Perhaps if I had built it from the ground up with tests in place the structure might be easier to maintain ! All this is just my excuse for not introducing tests now - but I realise this is a failing. I'm not about to refactor the whole program though I'm afraid. rest2web currently does everything I need, *but* one of the improvements down the line will make rest2web better for building project documentation. This is a feature I *will* use. :-) Fuzzyman http://www.voidspace.org.uk/python/index.shtml |
From: Andrew I. <and...@us...> - 2006-04-10 03:09:10
|
File keyword bug: fixed on Linux! Thank you - that feature is a big help. However, given enough time, I'm sure I'll break it - but in a new and better way! As for the verbosity settings, they appear to give the exact same output at the command line in Linux. I see no difference between -v, -a, and -w. I run r2w thusly: python ~/code/dev/rest2web/r2w.py ~/www/rp.ini -w Anything obviously wrong with that syntax? Andrew > -----Original Message----- > From: res...@li... > [mailto:res...@li...]On Behalf Of > Michael Foord > Sent: Sunday, April 09, 2006 10:48 AM > To: res...@li... > Subject: [Rest2web-develop] Nailed the File Keyword Bug > > > Hello all, > > I think I've finally nailed the file keyword bug. > > The fix is now in subversion. > > I've tested this with normal pages, index pages, and an index page using > the 'index-file' keyword. For each of these I tested with a normal file > (in the same directory) and using an absolute file location. > > I would appreciate a test on Linux. I would also appreciate testing of > the new verbosity settings - I'm sure they work, so perhaps feedback is > a better word than testing. (Are the levels right - or would something > between ``-v`` and ``-a`` be useful ?) |
From: Michael F. <fuz...@vo...> - 2006-04-10 08:08:13
|
Andrew Ittner wrote: > File keyword bug: fixed on Linux! Thank you - that feature is a big help. > However, given enough time, I'm sure I'll break it - but in a new and better > way! > Great (except the part about breaking it ;-) > As for the verbosity settings, they appear to give the exact same output at > the command line in Linux. I see no difference between -v, -a, and -w. I > run r2w thusly: > > python ~/code/dev/rest2web/r2w.py ~/www/rp.ini -w > > Anything obviously wrong with that syntax? > > Try : python ~/code/dev/rest2web/r2w.py -w ~/www/rp.ini Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Andrew > > >> -----Original Message----- >> From: res...@li... >> [mailto:res...@li...]On Behalf Of >> Michael Foord >> Sent: Sunday, April 09, 2006 10:48 AM >> To: res...@li... >> Subject: [Rest2web-develop] Nailed the File Keyword Bug >> >> >> Hello all, >> >> I think I've finally nailed the file keyword bug. >> >> The fix is now in subversion. >> >> I've tested this with normal pages, index pages, and an index page using >> the 'index-file' keyword. For each of these I tested with a normal file >> (in the same directory) and using an absolute file location. >> >> I would appreciate a test on Linux. I would also appreciate testing of >> the new verbosity settings - I'm sure they work, so perhaps feedback is >> a better word than testing. (Are the levels right - or would something >> between ``-v`` and ``-a`` be useful ?) >> > > > > > ------------------------------------------------------- > 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-04-11 03:25:43
|
The verbosity option before the config file doesn't work: $ python ~/code/dev/rest2web/r2w.py -a ~/www/rp.ini Traceback (most recent call last): File "/home/user/code/dev/rest2web/r2w.py", line 167, in ? config = ConfigObj(cfg_file, file_error=True) File "/home/user/code/dev/rest2web/pythonutils/configobj.py", line 1081, in __init__ raise IOError, 'Config file not found: "%s".' % self.filename IOError: Config file not found: "-a". Same result for -w and -v. Andrew > -----Original Message----- > From: res...@li... > [mailto:res...@li...]On Behalf Of > Michael Foord > Sent: Monday, April 10, 2006 1:08 AM > To: res...@li... > Subject: Re: [Rest2web-develop] Nailed the File Keyword Bug > > > Andrew Ittner wrote: > > File keyword bug: fixed on Linux! Thank you - that feature is > a big help. > > However, given enough time, I'm sure I'll break it - but in a > new and better > > way! > > > > Great (except the part about breaking it ;-) > > As for the verbosity settings, they appear to give the exact > same output at > > the command line in Linux. I see no difference between -v, -a, > and -w. I > > run r2w thusly: > > > > python ~/code/dev/rest2web/r2w.py ~/www/rp.ini -w > > > > Anything obviously wrong with that syntax? > > > > > > Try : > > python ~/code/dev/rest2web/r2w.py -w ~/www/rp.ini |
From: Michael F. <fuz...@vo...> - 2006-04-22 22:17:17
|
Andrew Ittner wrote: > The verbosity option before the config file doesn't work: > > $ python ~/code/dev/rest2web/r2w.py -a ~/www/rp.ini > Traceback (most recent call last): > File "/home/user/code/dev/rest2web/r2w.py", line 167, in ? > config = ConfigObj(cfg_file, file_error=True) > File "/home/user/code/dev/rest2web/pythonutils/configobj.py", line 1081, > in __init__ > raise IOError, 'Config file not found: "%s".' % self.filename > IOError: Config file not found: "-a". > > Same result for -w and -v. > This should be fixed now in the 0.5.0 alpha release. Probably other bugs though. :-( Unfortunately rest2web is structured in a way that makes it very hard to add tests. Thinking about testing from the start would probably have resulted in a better structured system ! Some of the recent additions to rest2web are good though, and more to come. Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Andrew > > >> -----Original Message----- >> From: res...@li... >> [mailto:res...@li...]On Behalf Of >> Michael Foord >> Sent: Monday, April 10, 2006 1:08 AM >> To: res...@li... >> Subject: Re: [Rest2web-develop] Nailed the File Keyword Bug >> >> >> Andrew Ittner wrote: >> >>> File keyword bug: fixed on Linux! Thank you - that feature is >>> >> a big help. >> >>> However, given enough time, I'm sure I'll break it - but in a >>> >> new and better >> >>> way! >>> >>> >> Great (except the part about breaking it ;-) >> >>> As for the verbosity settings, they appear to give the exact >>> >> same output at >> >>> the command line in Linux. I see no difference between -v, -a, >>> >> and -w. I >> >>> run r2w thusly: >>> >>> python ~/code/dev/rest2web/r2w.py ~/www/rp.ini -w >>> >>> Anything obviously wrong with that syntax? >>> >>> >>> >> Try : >> >> python ~/code/dev/rest2web/r2w.py -w ~/www/rp.ini >> > > > > > ------------------------------------------------------- > 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 > > |