Sudden CherryTemplate failure (Python 2.5.1 from Fedora 8 distro)

3 views
Skip to first unread message

Gloria W

unread,
Jul 8, 2008, 1:17:49 PM7/8/08
to cherrypy-users
Hi all,
I have an odd problem with CherryTemplate:

-> return cherrytemplate.renderTemplate(file = template_file)
(Pdb) c
[08/Jul/2008:13:13:00] HTTP Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/CherryPy-3.1.0rc1-py2.5.egg/
cherrypy/_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "/usr/lib/python2.5/site-packages/CherryPy-3.1.0rc1-py2.5.egg/
cherrypy/_cpdispatch.py", line 24, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/gloriajw/fuop_edits3/f_fuop/code/FU_OP.py", line 75, in
food_requests
return cherrytemplate.renderTemplate(file = template_file)
TypeError: renderTemplate() takes at least 2 non-keyword arguments (0
given)

This is a new, odd error. CherryTemplate worked previously on this
distro. What is causing this?
Thank you,
Gloria

Robert Brewer

unread,
Jul 9, 2008, 2:03:35 PM7/9/08
to cherryp...@googlegroups.com

I guess you can see by the dearth of answers how well-supported
cherrytemplate is. :/


Robert Brewer
fuma...@aminus.org

Gloria W

unread,
Jul 9, 2008, 2:07:07 PM7/9/08
to cherrypy-users
Is it officially dead? I am writing an article, and decided to pull
all references to CherryTemplate from my sample code, because of the
dearth of answers I had received :)

But please tell me what would cause it to fail this way? The first two
parameters of the renderTemplate() method are locals and globals. What
is breaking these parameters?

Thanks again,
Gloria

Robert Brewer

unread,
Jul 9, 2008, 3:12:52 PM7/9/08
to cherryp...@googlegroups.com
Gloria W wrote:
> Is it officially dead? I am writing an article, and decided to pull
> all references to CherryTemplate from my sample code, because of the
> dearth of answers I had received :)

As far as I can tell, it's dead. Remi would have the final say, but I
think that's a safe bet.

> But please tell me what would cause it to fail this way? The first two
> parameters of the renderTemplate() method are locals and globals. What
> is breaking these parameters?

I can't even begin to answer that since I've never used cherrytemplate.
The file at
http://cherrytemplate.python-hosting.com/file/trunk/cherrytemplate.py
doesn't seem to ever have had locals and globals as args to
renderTemplate, so I'm at a loss.


Robert Brewer
fuma...@aminus.org

Reply all
Reply to author
Forward
0 new messages