Re: [Rest2web-develop] Bug#637265: rest2web: please fix default default template location
Brought to you by:
mjfoord
From: Michael F. <fuz...@vo...> - 2011-08-16 16:34:08
|
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. 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 > > -- 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 > > > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > 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 |