Hi! I'm using Cheetah template 2.0 rc6 in embedded python 2.4 and in attached template i get: UnicodeDecodeError: 'ascii39; codec can't decode byte 0xc5 in...
3645
Stephane Bortzmeyer
bortzmeyer@...
Apr 3, 2006 12:47 pm
On Mon, Apr 03, 2006 at 12:10:27PM +0100, Miha Vrhovnik <mvrhov@...> wrote ... I use Cheetah with Unicode files: your subject is highly...
3646
Mike Orr
sluggoster@...
Apr 3, 2006 4:11 pm
... .__str__() doesn't work if the unicode contains non-ASCII characters. That's not a Cheetah problem, it's Python-wide. To get a unicode result: unicode(t) ...
3647
Miha Vrhovnik
mvrhov@...
Apr 5, 2006 8:51 am
... #encoding UFT-8 is in new line. File uses windows line ending. Regards, Miha ... This SF.Net email is sponsored by xPML, a groundbreaking scripting...
3648
Miha Vrhovnik
mvrhov@...
Apr 5, 2006 9:06 am
... I think that you are not right. At least I get properly encoded unicode from that in other cases. I pass every string variable as unicode, but other html...
3649
Shannon -jj Behrens
jjinux@...
Apr 5, 2006 9:51 am
... Make sure you guys are talking about the same version. -jj ... This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends...
3650
Mike Orr
sluggoster@...
Apr 10, 2006 1:06 am
There's a preview of chapters 1-4 of the new Users' Guide at http://cheetahtemplate.sourceforge.net/docs-2.0-unfinished/ -- Mike Orr <sluggoster@...> ...
You can get that effect by having: templ1 = r"$P1$s$P2" and adding t.s = "\92;" Peter ... This SF.Net email is sponsored by xPML, a groundbreaking scripting...
3653
Mike Krell
mbk.lists@...
Apr 17, 2006 8:31 pm
... Indeed, I've worked around the problem this way, but it definitely feels like a workaround for a bug -- there should be a way of specifiying the backslash...
3654
Peter Mott
peter@...
Apr 17, 2006 9:01 pm
Yes - agreed Peter...
3655
Mike Krell
mbk.lists@...
Apr 17, 2006 11:57 pm
[Sending to the discussion list in case others have feedback] ... It's true that changing r"\\$P2" to expand the placeholder would be a change from the current...
3656
Mike Orr
sluggoster@...
Apr 18, 2006 2:06 am
... Sorry, I meant to send it to the list. I forgot that cheetahtemplate-discuss doesn't automatically reply to the list like some other lists do. -- Mike Orr...
3657
Peter Mott
peter@...
Apr 18, 2006 4:50 pm
You can tell Cheetah to use, for example @ and % for variables and directives instead of $ and #. I would like to be able to tell Cheetah what escaped the...
3658
Brian Bird
brian.bird@...
Apr 19, 2006 8:29 am
Did anything further come of this idea? It seems to me to be one of the main problems I have with Cheetah with HTML templates, (assuming I understand you ...
3659
Miha Vrhovnik
mvrhov@...
Apr 19, 2006 8:58 am
... .... cut ... Why not using syntax like that. $varname:h or $varname:html ... Regards, Miha ... This SF.Net email is sponsored by xPML, a groundbreaking...
3660
Shannon -jj Behrens
jjinux@...
Apr 20, 2006 11:08 pm
Hmm, Tavis hasn't replied to this thread yet. He's the guy to reply. Give him a few days. If he doesn't reply, raise up the issue again, and either Mike or I...
3661
Brian Bird
brian.bird@...
Apr 21, 2006 9:48 am
I've come across an example where the behaviour of Cheetah (2.0rc6) isn't as I expected. I haven't tried it with other versions of Cheetah yet (sourceforge...
3662
Jose Galvez
jose@...
Apr 21, 2006 11:25 pm
That's really odd, I'll have to give this a try, I would have expected it to crash at #1 not #3 because name is not defined with #1 in your second test. I'll...
3663
Mike Orr
sluggoster@...
Apr 22, 2006 12:08 am
... When in doubt, compile a template with "cheetah compile" and look at the Python code. With "$var", Cheetah puts a try/except block around the lookup....
3664
Tavis Rudd
tavis@...
Apr 22, 2006 3:06 pm
Hi All, sorry for the silence. I'm in Bejing for work at the moment. I agree with Peter's proposal, but won't have time to look at it for another 2 weeks. Go...
3665
Mike Dewhirst
miked@...
Apr 23, 2006 2:06 am
I decided to install Cheetah to try it out. It passes all its tests under Linux but fails under Windows XP with a NameMapper warning. It wants a compiled C...
3666
Peter Mott
peter@...
Apr 23, 2006 2:51 pm
There certainly is a C-version name-mapper for Windows. It's advertised at http://www.cheetahtemplate.org/download.html. If there are problems I can email you...
3667
Ani H. Manjikian
m7csat@...
Apr 23, 2006 5:54 pm
Hi: I'm a web designer /programmer who is learning Python and found that Cheetah is the most natural templating system that I could find. However, when I've...
3668
Mike Dewhirst
miked@...
Apr 23, 2006 11:59 pm
... Peter I neglected to mention that I had already downloaded _namemapper.pyd and put it in C:\usr92;bin\Lib\site-packages92;Cheetah I had assumed it was ignored...
3669
Mike Dewhirst
miked@...
Apr 24, 2006 12:40 am
... As mentioned below the NameMapper warnings have gone :) but 51 Cheetah.Tests.CheetahWrapper.* unit tests are failing I don't know why. There are also 4...
3670
Mike Orr
sluggoster@...
Apr 24, 2006 1:06 am
... See section 3.6 of the Cheetah Users' Guide. Anything that says "AssertionError: subcommand" can be ignored. These tests run the "cheetah" program as a...
3671
Mike Dewhirst
miked@...
Apr 24, 2006 6:45 am
... Mike Thanks for that. I think I had seen that but I must have forgotten. ... Rebooting didn't help so I changed the temp var to point to a fresh directory,...
3672
Mike Dewhirst
miked@...
Apr 24, 2006 8:00 am
I'm trying to work through the 3.7 Quickstart tutorial on pages 14 and 15 of the manual. Windows XP. It works up to a point but falls over with a...
3673
Mike Dewhirst
miked@...
Apr 24, 2006 8:13 am
... It behaves identically on Linux. I must be making the same mistake. Mike ... Using Tomcat but need to do more? Need to support web services, security? Get...