On Tue, 16 Aug 2011 17:33:58 +0100 Michael Foord <fuzzy...@voidspace.org.uk> wrote:
> Hello Karl, > > rest2web only provides a default template when used in "force > mode" (-f or --force command line option). Otherwise you *must* > manually specify the template file, or have a template.txt file in > the rest2web site. See the documentation for details of how the > template files are found. ok, that seems reasonable. In that case could the error make that clear, rather then simply spitting a backtrace with [err]? (btw, I'm aware of the source/time issues around this project having read your other emails to the list.). thanks, kk > All the best, > > Michael Foord > > On 10/08/2011 01:33, Karl Goetz wrote: > > Package: rest2web > > Version: 0.5.2~alpha+svn-r248-2 > > Severity: normal > > > > Hi, > > This is what happens when running r2w with a basic configuration > > file: 10:28:26 kgoetz@epicfail: ~/webrest $ r2w > > rest2web version 0.5.1 > > Running rest2web the Site Builder. > > Wed Aug 10 10:29:40 2011 > > > > Starting in "/home/kgoetz/webrest" directory. > > > > Processing "root" directory. > > [err] Traceback (most recent call last): > > [err] File "/usr/bin/r2w", line 170, in<module> > > [err] count = main(options, config) > > [err] File "/usr/bin/r2w", line 103, in main > > [err] return processor.walk() > > [err] File > > "/usr/lib/pymodules/python2.6/rest2web/restprocessor.py", line 365, > > in walk [err] errorcheck = > > self.execute_safely(self.setdefaults, dir_list, toplevel) [err] > > File "/usr/lib/pymodules/python2.6/rest2web/restprocessor.py", line > > 218, in execute_safely [err] val = function(*args, **keywargs) > > [err] File > > "/usr/lib/pymodules/python2.6/rest2web/restprocessor.py", line 661, > > in setdefaults [err] raise IOError('No template file found.') > > [err] IOError: No template file found. [err] > > > > Configuration file is: > > # working directory (might not work) > > start_directory="./" > > target_directory="../public_html/website" > > compare_directory="" > > # Can this be done with a datestamp? > > log_file="./website.log" > > macros="" > > > > # [Macro Paths] > > [uservalues] > > __encoding__ = UTF-8 > > version="0.0.1" > > > > > > Running with the --template-file option correctly steps through the > > files available. > > > > r2w > > --template-file=/usr/share/pyshared/rest2web/defaults/template.txt > > It would be great if this could be fixed so rest2web works out of > > the box. thanks, > > kk -- Karl Goetz, (Kamping_Kaiser / VK5FOSS) Debian contributor / gNewSense Maintainer http://www.kgoetz.id.au No, I won't join your social networking group
signature.asc
Description: PGP signature