multiple problems with tahchee 0.9.8 and Cheetah-2.4.3

7 views
Skip to first unread message

Sven Hergenhahn

unread,
Nov 17, 2010, 3:13:31 AM11/17/10
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

Sven Hergenhahn

unread,
Nov 17, 2010, 3:16:49 AM11/17/10
to tahchee
stupid me, forgot things:

6) I had the same problem with screen-kiwi.css that Ben reported
earlier. Touching it (empty) kind of "solved" the problem for me

7) using $site.absolutePath($page.path()) yielded the following
exception:

File "/usr/local/lib/python2.6/dist-packages/tahchee/main.py", line
389, in absolutePath
return os.path.normpath(os.path.join(self.root, path))
File "/usr/lib/python2.6/posixpath.py", line 67, in join
elif path == '' or path.endswith('/'):
AttributeError: 'function' object has no attribute 'endswith'
make: *** [local] Fehler 1

Ben

unread,
Nov 17, 2010, 6:06:11 PM11/17/10
to tahchee
Hi Sven,

I'm not sure why I'm still on this mailing list, but I saw your post
and thought I'd reply ... :)

I think the bulk of the problems with Tahchee are due to Cheetah being
changed, and also Python.

I was generating my website offline and then uploading it to the
webserver, which worked fine, until I moved to a new host and wanted
to compile it on the server. Because the server had newer versions of
cheetah, etc., it meant that it tachee just wasn't working anymore. I
posted a blog article about what I did then: http://bp.io/post/79
(i.e., rolled my own static website generator.)

Cheers,
B



On Nov 17, 7:16 pm, Sven Hergenhahn <sven.hergenh...@googlemail.com>
wrote:

Sébastien Pierre

unread,
Nov 17, 2010, 6:19:01 PM11/17/10
to tah...@googlegroups.com
Hi guys,

Thanks for the report -- I'll definitely look into it this week-end. It seems like Cheetah's API has changed a little bit, so it's time for an update :)

Stay tuned !

 -- Sébastien

2010/11/17 Ben <benjami...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "tahchee" group.
To post to this group, send email to tah...@googlegroups.com.
To unsubscribe from this group, send email to tahchee+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tahchee?hl=en.


Reply all
Reply to author
Forward
0 new messages