Sven Hergenhahn
unread,Nov 17, 2010, 3:13:31 AM11/17/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tahchee
Hi Sebastien,
(btw - your MTA does not accept Mails from mine...)
I seem to be a little bit too stupid to get to grips with tahchee...
Cheetah-2.4.3-py2.6-linux-i686
tahchee v.0.9.8
1) I use $link('index.html') and $link('more/page.html'), but when
building make remote, I still get relative links ( ../index.html in
more/page.html for example.
2) I keep trying to use $page.htmlPath, but there I get
...
[ ] Generating file 'index.html'
Traceback (most recent call last):
File "build.py", line 26, in <module>
SiteBuilder(site).build(filter(lambda x:x not in
('local','remote'),sys.argv[1:]))
File "/usr/local/lib/python2.6/dist-packages/tahchee/main.py",
line
542, in build
self.applyTemplates(paths)
File "/usr/local/lib/python2.6/dist-packages/tahchee/main.py",
line
600, in applyTemplates
self.processFile( input_path, output_path, force )
File "/usr/local/lib/python2.6/dist-packages/tahchee/main.py",
line
624, in processFile
self.applyTemplate(ifile, force)
File "/usr/local/lib/python2.6/dist-packages/tahchee/main.py",
line
711, in applyTemplate
if generate(template, template_outputpath + ".tmp"):
File "/usr/local/lib/python2.6/dist-packages/tahchee/main.py",
line
695, in generate
template_text = str(template)
File
"/usr/local/lib/python2.6/dist-packages/Cheetah-2.4.3-py2.6-linux-
i686.egg/Cheetah/Template.py",
line 1005, in __str__
rc = getattr(self, mainMethName)()
File "/home/svenh/dev/html/sven/Templates/Base.py", line 202, in
respond
_v = VFFSL(SL,"body",True) # u'$body' on line 27, col 1
File "/home/svenh/dev/html/sven/Templates/Page.py", line 177, in
body
_v = VFFSL(SL,"content",True) # u'$content' on line 17, col 19
File "_home_svenh_dev_html_sven_Pages_index_html_tmpl.py", line
169,
in content
NameMapper.NotFound
make: *** [remote] Fehler 1
3) Is there any way to make these Tracebacks a little bit more
readable
(e.g. when making cheetah errors, the wrong code is nicely displayed,
even with line numbers...)
4) Is there any way to insert python debugging code into the
templates
or so?
5) Maybe it would help to expand the Example site a little further,
with more examples on how to use $site and $page and their methods
Thanks & cheers,
Sven