On 17/08/2011 09:56, Karl Goetz wrote:
On Tue, 16 Aug 2011 17:33:58 +0100
Michael Foord <fuzzyman@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]?

Sure, when I get a new project host setup feel free to create an issue...

Michael

(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



------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2


_______________________________________________
Rest2web-develop mailing list
Rest2web-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rest2web-develop


-- 
http://www.voidspace.org.uk/

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html