I've spent a little time trying to track this down, and while I
haven't quite pinned it down, I do have some more information. I've only
looked into the __dict__ errors.
* The problem seems to be with specifying a base class (changing
{'baseclass': dict} to {'baseclass': "Template"} in SyntaxAndOutput.py
fixes those tests).
* Changing the base class to the following in that same file also fixes
the problem:
class MyClass(object):
def __init__(*args, **kwargs):
pass
def shutdown(self):
pass
extraCompileKwArgsForDiffBaseclass = {'baseclass': MyClass}
Any class with a shutdown method seems to work, otherwise the shutdown
method from Template is called. I can't actually see how Template's
shutdown method is
being called. Someone who knows this might be able to see what's wrong here.
It doesn't look like it would be too hard to fix for someone who knows
the codebase.
Has anyone else got any further with this?
Thanks
Jon
On 04/10/10 21:26, Mike Bonnet wrote:
> I just built Cheetah and ran the unit tests under python 2.7 (Fedora 14
> Beta) and it spewed a ton of errors. I haven't had a chance to look
> into them yet, but they look pretty concerning. Has anyone seen these
> problems yet? Are we going to need serious refactoring to make Cheetah
> work under python 2.7?
>
> The log is available here:
>
>
http://people.redhat.com/mikeb/cheetah-2.4.3-python27-tests.log>
> I'll start looking into possible fixes when I can.
>
> Thanks,
> Mike
>
> ------------------------------------------------------------------------------
> Virtualization is moving to the mainstream and overtaking non-virtualized
> environment for deploying applications. Does it make network security
> easier or more difficult to achieve? Read this whitepaper to separate the
> two and get a better understanding.
>
http://p.sf.net/sfu/hp-phase2-d2d> _______________________________________________
> Cheetahtemplate-discuss mailing list
>
Cheetahtemplate-discuss@...
>
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss@...
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss