Hi all I have the following error: *<type 'exceptions.UnicodeEncodeError'>*: 'ascii39; codec can't encode character u'\xe439; in position 107216: ordinal not in...
4954
Pasithee Jupiter
pasithee@...
Apr 9, 2011 6:17 pm
I wrote the simplejson object in a file values = simplejson.load(urllib.urlopen(urlvalue)) file.write(str(values)) and get some strange characters. here an...
4955
R. Tyler Croy
tyler@...
Apr 9, 2011 6:23 pm
... What kind of object are you getting back from this simplejson call? If you're not getting a proper unicode object, you may need to do some decoding first...
4956
Maciej Bliziński
maciej@...
Apr 22, 2011 2:44 pm
I have a question about using the #include directive. For example, the following example works as expected: echo "foo" > foo.tmpl echo "#include \"foo.tmpl\""...
4957
R. Tyler Croy
tyler@...
Apr 23, 2011 12:15 am
... For what it's worth, I've gone ahead and applied and tested this patch (against 2.7 at least). I've got some other Cheetah related fixes in a long backlog...
4958
Arnaud Fontaine
arnau@...
Apr 23, 2011 4:14 am
Hi, ... Thanks. It might be a stupid question, but on which git repository/branch have you applied this patch? (because I cannot find it ...
4959
David Webb
daverwebb@...
May 7, 2011 1:03 am
Operations: Windows 7 Python 2.7 Cheetah 2.4.4 didn't make any changes to the application, tried running setup.py install, setup.py config then setup.py,...
4960
Aahz
aahz@...
May 7, 2011 4:13 pm
... What is "the application"? I'm finding it difficult to understand what the problem context is; your writing style implies that you upgraded from...
4961
David Webb
daverwebb@...
May 8, 2011 12:44 pm
sorry for the confusion, application = cheetah.py or any other files associated with cheetah 2.4.4 running cheeta tests gave me 47 failures and 238 errors, ...
4962
Tim Arnold
jtim.arnold@...
May 13, 2011 1:47 pm
hi, I seem to be unable to test for nested variables in a searchlist from within a loop: The following snippet loops over the rows, but the if statement always...
4963
James Abbatiello
abbeyj@...
May 16, 2011 3:51 am
The errors from the tests may indicate that you have a path that is "too long" in sys.path. What does running ... print out? -- James Abbatiello ... Achieve...
4964
David Webb
daverwebb@...
May 17, 2011 12:12 am
... You're very likely correct in your assessment. I have 38 entries for sys.path, 19 of them point to an egg, some of them are directed to python27 directory...
4965
Tim Arnold
jtim.arnold@...
May 19, 2011 7:13 pm
Replying to my own question: The variables *are* available inside the loop, but $varExists doesn't work on them. My conclusion is that the problem lies inside...
4966
Benjamin Schollnick
benjamin@...
Jun 21, 2011 6:39 pm
Folks, I'm starting out with Cheetah, and while I have had some success... I'm having an issue with Filters... 1) I need to be able to restrict the output to...
4967
James Abbatiello
abbeyj@...
Jun 22, 2011 5:18 am
Have you tried ${idevice_list[$idevice]["battery"][0:5]} ? I don't know what might be causing your other problem. Are you sure that something else isn't...
4968
Benjamin Schollnick
benjamin@...
Jun 22, 2011 9:51 am
... No I didn't. Thank you, I believe that should work, I keep forgetting that Cheetah is a Python based tagging system, so it respects the Python rules... ...
4969
Tim Arnold
jtim.arnold@...
Jun 28, 2011 6:53 pm
As far as I can tell, it is impossible to use $varExists() inside a loop variable. So I'm asking for help on how to re-think my situation. First, here's what...
4970
James Abbatiello
abbeyj@...
Jun 29, 2011 1:55 am
Try #if $cell.get(39;isHeader39;, False) or #if $cell.has_key('isHeader39;) and $cell.isHeader -- James Abbatiello ... Try #if $cell.get(39;isHeader39;, False) or #if...
4971
Tim Arnold
jtim.arnold@...
Jun 30, 2011 7:55 pm
thanks for the help, but that doesn't work either. (not even getVar). I think it's impossible to do this with Cheetah. I'm rewriting this particular template...
4972
James Abbatiello
abbeyj@...
Jun 30, 2011 11:21 pm
Odd, it worked for me in my tests. What is the type of $cell in your template? Can you provide a minimal complete example? -- James Abbatiello ... Odd, it...
4973
James Abbatiello
abbeyj@...
Jul 2, 2011 4:49 am
Ah, I thought your object was like a dictionary and you were looking for a key in it. But I think what you want to do is look for an attribute on your object...
4974
Paul Mothersdill
paul@...
Jul 5, 2011 8:57 am
I have a number of templates written many years ago as part of a Python/MySQL/mod_python setup on a Ubuntu server. No problems, no further development and I'd...
4975
R. Tyler Croy
tyler@...
Jul 5, 2011 5:41 pm
... By default, now at least, Cheetah should be generating unicode objects, so what's being handled by the application or mod_python might be encoding it in ...
4976
Alexander Egorov
alex.yegorov@...
Jul 24, 2011 8:38 am
Hi, What I am trying to do is to write up the series of kickstart snippets, based on cheetah, for e.g. for : fstab generation, network-interfaces info...
4977
Dov Feldstern
dovdevel@...
Aug 23, 2011 9:37 am
Hi! Say I have the following template: void foo(int a) { int i = 0; $do_something for (i = 0; i < 10; i++) { $do_something } } This works just fine if...
4978
Markos Kapes
mkapes@...
Sep 15, 2011 6:30 pm
I've got an abstract base template, and Im trying to do a few things, but I'm not sure of the cheetah way to do it. First, the pages in question are results...
Hi, I'm new with Cheetah and I'm trying to use it to build a deployment tool and replace my old configuration files with brand new cheetah templates. I'm...
4980
Oliver Nicholas
bigo@...
Sep 19, 2011 5:15 pm
$getVar("sso_host_%s" % $myLanguage) ... -- oliver phillip nicholas *computer whisperer* http://bigo.yelp.com/ $getVar("sso_host_%s" % $myLanguage) On Mon, Sep...
4981
Thibaud Roussillat
thibaud.roussillat@...
Nov 9, 2011 12:59 pm
Hello, I have to apply filter to placeholders which can have None value. However, the filter isn't apply. For example : import Cheetah.Template from...
4982
Buck Golemon
buck@...
Nov 22, 2011 3:21 am
If I define a macro in one template, and #extend that template elsewhere, the macro is not available in the extended template, as expected. When looking at the...