Hey Tyler and Tavis
1. I do not refuse to show steps, my goal with my reports and cookbook is to
help the cheetah community be more accessible and useful to more people.
I just ran python ./code.py
and open / url with Cheetah-2.0.1.tar.gz and then with the *Cheetah v2.2.1 *and
got the error that i reported in the earlier email. I will try to find exact
code and repro steps the problem is code has be running flawlessly for
almost 2 years in Cheetah so all the bugs have been squished and if 2.2.1
throws the errors, i m at a loss to find code with bugs?
2. That being said, I tried out the next branch
Also the next branch fixed the bug i reported, Kudos
3. OK. can you or tavis or one of the cheetah masters please show us how to
use cheetah from webpy
the only useful thing webpy cheetah.py does is replace the #include with the
content of the files
Can you share a simple snippet/cookbook example on how to hook up cheetah
from other frameworks such as django/webpy/pylons, if there is a unified way
to access the cheetah template then the problems will be easier to fix?
Thanks a lot... for trying to help...
*Mr. Gorbachev, tear down this wall.*
On 6/4/09, R. Tyler Ballance <[email protected]> wrote:
>
> On Thu, Jun 04, 2009 at 02:06:56AM -0700, [email protected] wrote:
> > Got this error on running THe latest Cheetah
>
>
> I want you to keep in mind, that despite the fact you cannot read and
> still do not provide reproduction *code* or *steps* like I continue to
> ask, I'm going to try to help.
>
> First problem, this error is coming from Cheetah.py, the WebPy
> (unnecessary) Cheetah wrapper (which does things it probably shouldn't).
>
> That all said, I think this has to do with Cheetah.py calling
> addImportedVarNames itself. Why Cheetah.py insists on manually
> hand-holding and muxing around with the import namespaces is likely why
> Webpy users like you seem to have problems with Cheetah (and the rest of
> us don't).
>
> If you check out the changes in 'next' branch in my Git repository, I
> added what I *think* will solve your problems, but I can't be sure
> because you refuse to help us help you with repro steps, code, etc.
>
>
>
>
> >
> > ibuteError: _methodBodyChunks
> >
> > 192.168.0.193:51404 - - [04/Jun/2009 02:04:22] "HTTP/1.1 GET /" - 500
> > Internal Server Error
> > 192.168.0.193:51405 - - [04/Jun/2009 02:04:25] "HTTP/1.1 GET
> /favicon.ico"
> > - 302 Found
> > Traceback (most recent call last):
> > File "/home/mark/work/common/web/application.py", line 241, in
> process
> > return self.handle()
> > File "/home/mark/work/common/web/application.py", line 232, in
> handle
> > return self._delegate(fn, self.fvars, args)
> > File "/home/mark/work/common/web/application.py", line 411, in
> _delegate
> > return handle_class(cls)
> > File "/home/mark/work/common/web/application.py", line 386, in
> > handle_class
> > return tocall(*args)
> > File "/home/mark/work/auctions/user.py", line 273, in proxyfunc
> > return func(self, *args, **kw)
> > File "/home/mark/work/auctions/app.py", line 102, in GET
> > return web.render('index.html')
> > File "/home/mark/work/common/web/cheetah.py", line 96, in render
> > compiled_tmpl = _compiletemplate(template, base=base,
> > isString=isString)
> > File "/home/mark/work/common/web/utils.py", line 338, in __call__
> > self.cache[key] = self.func(*args, **keywords)
> > File "/home/mark/work/common/web/cheetah.py", line 42, in
> > __compiletemplate
> > tmpl_compiler.addImportedVarNames(execspace.keys())
> > File "/usr/lib/python2.5/site-packages/Cheetah/Compiler.py", line
> 1712,
> > in addImportedVarNames
> > if self._methodBodyChunks and raw_statement and not
> > settings.get('useLegacyImportMode'):
> > File "/usr/lib/python2.5/site-packages/Cheetah/Compiler.py", line
> 1612,
> > in __getattr__
> > raise AttributeError, name
> > AttributeError: _methodBodyChunks
> >
> > 192.168.0.193:51405 - - [04/Jun/2009 02:04:26] "HTTP/1.1 GET /" - 500
> > Internal Server Error
> > [mark@localhost auctions]$
> >
> > On Wed, Jun 3, 2009 at 11:38 PM, Gerold Penz <[email protected]>
> wrote:
> >
> > R. Tyler Ballance schrieb:
> > > we've
> > > started to bring the Community Cheetah and "standard" Cheetah
> > resources
> > > back together.
> >
> > What a good message! :D
> > Thank you!
> >
> > --
> > Waldhart Software
> > A-6405 Pfaffenhofen, Unterdorf 145
> > Tel: +43 5262 64574, Fax: +43 5262 64514
> >
>
> --
>
> -R. Tyler Ballance
> Slide, Inc.
>
>
--
Bidegg worlds best auction site
http://bidegg.com
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Cheetahtemplate-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.