[Rest2web-develop] Bug#637265: rest2web: please fix default default template location
Brought to you by:
mjfoord
|
From: Karl G. <ka...@kg...> - 2011-08-10 00:52:58
|
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
-- System Information:
Debian Release: 6.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages rest2web depends on:
ii python 2.6.6-3+squeeze6 interactive high-level object-orie
ii python-docutils 0.7-2 utilities for the documentation of
ii python-support 1.0.10 automated rebuilding support for P
rest2web recommends no packages.
Versions of packages rest2web suggests:
ii rest2web-doc 0.5.2~alpha+svn-r248-2 documentation for rest2web
-- no debconf information
|