<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.python.cheetah">
    <title>gmane.comp.python.cheetah</title>
    <link>http://blog.gmane.org/gmane.comp.python.cheetah</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2859"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2856"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2854"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2853"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2850"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2848"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2847"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2846"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2845"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2843"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2838"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2835"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2831"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2828"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2825"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2822"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2815"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2814"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2806"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.cheetah/2805"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2859">
    <title>C++</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2859</link>
    <description>&lt;pre&gt;Hi

I'm trying to generate C++ output with Cheetah, and I'm having trouble with
# (hash marks) because it is used both by C++ preprocessor and by Cheetah.
I've come to believe that it is possible to reconfigure Cheetah such that
it recognizes '%' instead of '#' for example. However, I cannot find any
documentation or other specific information on how to do it.

Any help would be greatly appreciated.

Regards
Kristian
------------------------------------------------------------------------------
Virtualization &amp;amp; Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
&lt;/pre&gt;</description>
    <dc:creator>Kristian Spangsege</dc:creator>
    <dc:date>2012-03-01T14:56:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2856">
    <title>issues installing Cheetah on OS X 10.7.2</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2856</link>
    <description>&lt;pre&gt;Hi group,

two parts:

1. I installed Cheetah 2.4.4 via package download and python setup.py
install, and got this:

One or more C extensions failed to build. Performance enhancements
will not be available. Pure Python installation succeeded.

If anyone knows how to fix that, I'd love to know. (FWIW I have
XCode 4.2.1 installed.)

2. cheetah test gives me a boadload of errors and two fails.

The errors look like this:

===================================ERROR: test1
(Cheetah.Tests.NameMapper.VFFSL) string in dict lookup
---------------------------------- Traceback (most recentcall last): File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
site-packages/Cheetah-2.4.4-py2.7.egg/Cheetah/Tests/NameMapper.py",
line 510, in setUp del ns['anInt'] # will be picked up by globals
KeyError: 'anInt'

The two fails are as follows:

====================================FAIL:
test_compilationCache (Cheetah.Tests.Template.ClassMethods_compile)
---------------------------------- Traceback (most recent call &lt;/pre&gt;</description>
    <dc:creator>Kerry Kurian</dc:creator>
    <dc:date>2012-01-17T21:20:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2854">
    <title>Compiling _namemapper.c on win32 withMinGW</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2854</link>
    <description>&lt;pre&gt;Hi group,

since I don't have (and like) VC+, I would like to build _namemapper.c,
which is not available in binary form for Python 2.7, with MinGW.

I created a simple compile script:

======
from distutils.core import setup, Extension

module1 = Extension('namemapper', sources = ['cheetah/c/_namemapper.c'])

setup (name = 'namemapper',
        version = '1.0',
        description = 'Namemapper C Version',
        ext_modules = [module1])
======

When trying to compile with

python nm.py build -cmingw32

I get the following output:

======
$ python nm.py build -cmingw32
running build
running build_ext
building 'namemapper' extension
d:\MinGW\bin\gcc.exe -mdll -O -Wall -Id:\tools2\python\include
-Id:\tools2\python\PC -c cheetah/c/_namemapper.c -o
build\temp.win32-2.7\Release\cheetah\c\_namemapper.o
writing build\temp.win32-2.7\Release\cheetah\c\namemapper.def
d:\MinGW\bin\gcc.exe -shared -s
build\temp.win32-2.7\Release\cheetah\c\_namemapper.o
build\temp.win32-2.7\Release\cheetah\c\namemapper.def
-Ld:\tools2\&lt;/pre&gt;</description>
    <dc:creator>Jan Werner</dc:creator>
    <dc:date>2011-12-06T21:22:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2853">
    <title>Placement of "self" in searchList during#include</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2853</link>
    <description>&lt;pre&gt;Hi Cheetah folks,

For some reason when you #include a file, Cheetah adds the new
Template instance's "self" to the end of the searchList, instead of at
the beginning (or at least above the calling template's self). This
causes rather non-intuitive behaviour when you're #def-ining a
function in an included template that's already been #def-ined in a
calling template.

This code for this is:
https://github.com/tavisrudd/cheetah/blob/master/cheetah/Template.py#L1478

As an example of when this is an issue, consider these templates:

main.tmpl
-----
#def greet(name)
Hello, $name.
#end def
$greet('Ben')
#include 'included.tmpl'
-----

included.tmpl
-----
#def greet(name)
Bye bye, $name!
#end def
$greet('Ben')
-----

You'd expect this to print out "Hello, Ben.\n\nBye bye, Ben!" but
instead it prints out "Hello, Ben.\n\nHello, Ben.", because
main.tmpl's "self" is above included.tmpl's "self" in the searchList,
so the $greet() in included.tmpl is still calling main.tmpl's greet
function.

You can work around this b&lt;/pre&gt;</description>
    <dc:creator>Ben Hoyt</dc:creator>
    <dc:date>2011-11-30T22:48:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2850">
    <title>Filter isn't played for None value</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2850</link>
    <description>&lt;pre&gt;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 Cheetah.Filters import Filter

class MyFilter(Filter):

    def filter(self, val, **kw):

        return "tit"


if __name__ == '__main__':

    print "test01"

    searchList=[{'myvar1': u'test'}, {'myvar2': None}]

    t = Cheetah.Template.Template('''
        1. -${getVar('myvar1', '456')}-
        2. -${getVar('myvar2', ''), maxlen=2}-
        3. -${getVar('myvar3', None), maxlen=2}-
        ''', searchList,
        filter=MyFilter
        )
    print t

The output is as follow :

1. -tit-
2. --
3. --

Is there any way to apply filter to None value ?

Thanks a lot.

Thibaud
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss&amp;lt; at &amp;gt;lists.so&lt;/pre&gt;</description>
    <dc:creator>Thibaud Roussillat</dc:creator>
    <dc:date>2011-11-09T12:59:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2848">
    <title>Using a variable inside another variablename</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2848</link>
    <description>&lt;pre&gt;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 working for a company which edit websites all over the world so lots of
our configuration keys are overriden by country.
With Cheetah, I'm storing my configuration into a YAML data storage files
and I use a Python script combined with some Bash scripts to find, fill and
replace all *.cheetah files.
Please find below an example of my test configuration file, my YAML data
storage and the expected result file

--------------- CONF FILE -------------------
prod:
  sso:
    hosts:
#for myLanguage in $cultures
      sso_$myLanguage:
        host:   $eval("sso_host_" + myLanguage)
        port:   $eval("sso_port_" + myLanguage)
#end for

--------------- YAML DATA STORAGE -------------------
# Global
cultures:
  - de
  - en
  - fr

# DE
sso_host_de:         sso-de.example.com
sso_port_de:         8081
[...]

# EN
sso_host_en:         sso-en.example.com
sso_port_en&lt;/pre&gt;</description>
    <dc:creator>Rémi ALVADO</dc:creator>
    <dc:date>2011-09-19T17:04:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2847">
    <title>Templates, inheritance, etc….</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2847</link>
    <description>&lt;pre&gt;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 pages for a search, and as such have a table. There are two things I'm trying to do.

1) I:mplement clickable rows by implementing a click handler on all rows. I've determined that you can't put a block inside a loop, or else cheetah chokes. A def statement seems to cause the same problem, even though I can display the text of the click handler (eg, in a header).

2) Is there anyway in the abstract class to have a conditional block
#if $do_this
Thing to do
#end if
and set $do_this in the ineherited class or in the server url call? It seems to choke for me unless I set $do_this to a value in the abstract class. But then it's not reset in the inherited classs.

Sure part of it is that  I must be mucking up basic python inheritance.

Thanks,
--Marko
------------------------------------------------------------------------------
Doing More with Less: The &lt;/pre&gt;</description>
    <dc:creator>Markos Kapes</dc:creator>
    <dc:date>2011-09-15T18:29:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2846">
    <title>indentation</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2846</link>
    <description>&lt;pre&gt;Hi!

Say I have the following template:

void foo(int a)
{
    int i = 0;
    $do_something
    for (i = 0; i &amp;lt; 10; i++) {
        $do_something
    }
}

This works just fine if $do_something consists of a single line;
however, if $do_something consists of multiple lines, then I have a
problem with the indentation, depending on what exactly the
placeholder itself looks like:

1) if the placeholder does not include any indentation itself, then
the first line is indented correctly (because the indentation appears
outside of the placeholder), but the rest are not;
2) so, I could have the placeholder already include the indentation,
but this has two problems:
  (a) the placeholder would have to appear unindented in the template,
which is not pretty; and
  (b) more importantly, the placeholder may appear in multiple places,
each requiring different indentation.

I'm aware of the "undocumented" #indent function (as documented in the
TODO), and by playing around with it (using cheetah 2.4.4) I see that
some of the &lt;/pre&gt;</description>
    <dc:creator>Dov Feldstern</dc:creator>
    <dc:date>2011-08-23T09:37:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2845">
    <title>How to test Cheetah templates</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2845</link>
    <description>&lt;pre&gt;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 generation and etc
How can I verify what my template is going to do without relaunching
the cobbler-based reinstallation of the server?

Cheers,
Alexander

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
&lt;/pre&gt;</description>
    <dc:creator>Alexander Egorov</dc:creator>
    <dc:date>2011-07-24T08:38:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2843">
    <title>Unicode issue - historical and probablytrivial</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2843</link>
    <description>&lt;pre&gt;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 almost forgotten there were Cheetah
templates in there.

The Ubuntu box has been upgraded as per the normal cycles. The latest
upgrade (10.10 to 11.04 which included Python 2.7 and Cheetah 2.4.3)
led to the system sending utf-8 to the web browser, rather than 8859-1
as previously. I've attempted to isolate the problem, and I think it's
Cheetah (the last link before mod_python sends the stuff to the
browser) that's now receiving 8859-1 and outputting utf-8 (something
it presumably didn't do in the version that was packaged in Ubuntu
10.10).

Is this correct, and if so is there a simple way to get Cheetah to
output 8859-1 (can't find anything in the documentation)?

pm

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive rec&lt;/pre&gt;</description>
    <dc:creator>Paul Mothersdill</dc:creator>
    <dc:date>2011-07-05T08:56:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2838">
    <title>help on loop variables</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2838</link>
    <description>&lt;pre&gt;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 will not work in Cheetah. varExists is always false:
#for $row in $here
  &amp;lt;tr&amp;gt;
  #for $cell in $row
    #if $varExists('cell.isHeader') and $cell.isHeader
    &amp;lt;th style="$cell.style.inline"&amp;gt;${cell}&amp;lt;/th&amp;gt;

Second, here is a similar template, but written in SimpleTal that does work:
&amp;lt;metal:block tal:repeat="cell row"&amp;gt;
    &amp;lt;th tal:condition="cell/isHeader"
           tal:attributes="style cell/style/inline;
           tal:content="cell"&amp;gt;&amp;lt;/th&amp;gt;
&amp;lt;/metal:block&amp;gt;

I have some table cells with a varying suite of attributes; where
those attributes exist I want to use them, and of course I don’t want
to get an error when trying to use a non-existent attribute.

Finally, my question:
is there any way to accomplish this with a Cheetah template?

thanks,
--Tim Arnold

------------------------------------------------------------------------------
All of the data gene&lt;/pre&gt;</description>
    <dc:creator>Tim Arnold</dc:creator>
    <dc:date>2011-06-28T18:53:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2835">
    <title>Problem with Templating ... I'm new....</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2835</link>
    <description>&lt;pre&gt;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 let's say 5 characters,
and this doesn't seem to work..

          &amp;lt;TD&amp;gt;${idevice_list[$idevice]["battery"], maxlen=5}&amp;lt;/td&amp;gt;

2) the $insert_map_js needs to be unfiltered, it appears to be changed
inside of cheetah's tempting to be "web safe".  I have tried :

                          ${insert_map_js, raw)

and receive an error, that raw is unknown.  I've tried #raw &amp;amp; #end raw,
but that doesn't seem to work...  Any suggestions?  I believe I have
the syntax right...  Any assistance would be appreciated.

         - Benjamin


---Template ---
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta http-equiv="content-type" content="text/html; charset=utf-8"/&amp;gt;
&amp;lt;link rel="stylesheet" type="text/css" href="css/Find-my-iDevices.css"&amp;gt;
&amp;lt;title&amp;gt;Fi&lt;/pre&gt;</description>
    <dc:creator>Benjamin Schollnick</dc:creator>
    <dc:date>2011-06-21T18:39:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2831">
    <title>searchlist scope inside loop</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2831</link>
    <description>&lt;pre&gt;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 false.

#for $row in $here
  &amp;lt;tr&amp;gt;
  #for $cell in $row
    #if $varExists('cell.isHeader') and $cell.isHeader


Is it impossible to use $varExists('loopvar.subvar') or is there any
way to test variables from within a loop?

thanks,
--Tim Arnold

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
&lt;/pre&gt;</description>
    <dc:creator>Tim Arnold</dc:creator>
    <dc:date>2011-05-13T13:47:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2828">
    <title>cheetah test failure</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2828</link>
    <description>&lt;pre&gt;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, SetupConfig.py. Then returned to 
cheetah test and ran it. Oh, did somehow find the _namemapper.c, which 
was missing originally during this process.

failed with 47 failures, 228 errors. (I have attached a faitest.txt file 
with the last 4 or 5 failures, but dos is refusing to send the results 
to file, using cheetah test &amp;gt; cheetahfail.txt just gives a blank file).

Cheetah manages to work with the very most basic non-compiled templates, 
but when compiling and trying to run under WebWare 1.02 the test.tmpl 
compiles and throws assertion error, won't display. Also attached is the 
html output file for that.

Any ideas, would be appreciated -- hate to go to mako or jinja

.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 405, in testFill
    self.go("cheetah fill -R")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4&lt;/pre&gt;</description>
    <dc:creator>David Webb</dc:creator>
    <dc:date>2011-05-07T01:02:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2825">
    <title>#include directive and search paths</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2825</link>
    <description>&lt;pre&gt;I have a question about using the #include directive.  For example,
the following example works as expected:

echo "foo" &amp;gt; foo.tmpl
echo "#include \"foo.tmpl\"" &amp;gt; bar.tmpl
python -c "from Cheetah.Template import Template; \
  t = Template(file='bar.tmpl'); \
  print unicode(t)"

However, if the template files are moved to a subdirectory, an
exception is thrown:

mkdir -p subdir
mv *.tmpl subdir
python -c "from Cheetah.Template import Template; \
  t = Template(file='subdir/bar.tmpl'); \
  print unicode(t)"

Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
  File "/usr/lib/pymodules/python2.6/Cheetah/Template.py", line 981, in __str__
    def __str__(self): return getattr(self, mainMethName)()
  File "_home_maciej_src_cheetah_test_subdir_bar_tmpl.py", line 86, in respond
  File "/usr/lib/pymodules/python2.6/Cheetah/Template.py", line 1511,
in _handleCheetahInclude
    nestedTemplateClass = compiler.compile(source=source,file=file)
  File "/usr/lib/pymodules/python2.6/Cheetah/Template.&lt;/pre&gt;</description>
    <dc:creator>Maciej Bliziński</dc:creator>
    <dc:date>2011-04-22T14:43:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2822">
    <title>Non-ASCII character</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2822</link>
    <description>&lt;pre&gt;Hi all

I have the following error:
*&amp;lt;type 'exceptions.UnicodeEncodeError'&amp;gt;*: 'ascii' codec can't encode
character u'\xe4' in position 107216: ordinal not in range(128)
      args = ('ascii', u'&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Tra...&amp;lt;/tbody&amp;gt;\n\t\t\t&amp;lt;/table&amp;gt;\n\t\t&amp;lt;/footer&amp;gt;\n\t&amp;lt;/body&amp;gt;\n&amp;lt;/html&amp;gt;', 107216,
107217, 'ordinal not in range(128)')
      encoding = 'ascii'
      end = 107217
      message = ''
      object = u'&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Tra...&amp;lt;/tbody&amp;gt;
\n\t\t\t&amp;lt;/table&amp;gt;\n\t\t&amp;lt;/footer&amp;gt;\n\t&amp;lt;/body&amp;gt;\n&amp;lt;/html&amp;gt;'
      reason = 'ordinal not in range(128)'
      start = 107216


In my Python script I call a json url and get back a bunch of data:

resultlist = simplejson.load(urllib.urlopen(urlvalue))

The url is the following:
http://taginfo.openstreetmap.de/api/2/search/values?q=restaurant&amp;amp;sortname=count_all&amp;amp;sortorder=desc

As you can see when you open the url, the response includes a lot of special
characters
In my template I try to display these data which are in the resultlist
va&lt;/pre&gt;</description>
    <dc:creator>Pasithee Jupiter</dc:creator>
    <dc:date>2011-04-09T14:51:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2815">
    <title>Does Cheetah count line numbers itswritten?</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2815</link>
    <description>&lt;pre&gt;
I'm writing a source generator using Cheetah templates for C++ and would like to add #line directives into the generated source.  Without delving deep into the Cheetah source code, I was wondering if anyone on the list knew if Cheetah keeps track of how many lines are written so I can easily query the current line number in the template and use that in the template output itself for inserting #line directives into the generated source code.
Thanks!
-Nate
       ------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
&lt;/pre&gt;</description>
    <dc:creator>Nate Reid</dc:creator>
    <dc:date>2011-03-08T18:45:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2814">
    <title>Does cheetah look at superclasses ofplaceholder objects?</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2814</link>
    <description>&lt;pre&gt;Howdy,

I've been using Cheetah for a few weeks and am pretty happy with it (I have been 
and still am a Velocity user too, so very familiar).  However, I'm running into 
a problem trying to invoke a method off a placeholder that makes me wonder if 
Cheetah is able to understand the placeholder objects might have superclasses 
and is able find methods in them.

NOTE: To be clear, I am NOT subclassing the cheetah Template class.  This is 
regarding an object that is added to my path which has a super class.

What is happening is that when I attempt to iterate over a list of objects, the 
individual objects appear to be complete (they are not None and a $type($xxx) 
returns the correct/expected type).  But any attempt to invoke a method on the 
placeholder that would in fact be a method in the placeholder objects super 
class fail with a

-------------------
   File "/usr/lib/python2.6/socket.py", line 292, in write
     data = str(data) # XXX Should really reject non-string non-buffers
   File "/usr/local/lib&lt;/pre&gt;</description>
    <dc:creator>Gerry Duprey</dc:creator>
    <dc:date>2011-03-07T20:28:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2806">
    <title>Internationalization with gettext</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2806</link>
    <description>&lt;pre&gt;We're trying to translate our templates using Python's gettext module.

http://www.cheetahtemplate.org/docs/users_guide_html_multipage/tips.gettext.
html
it appears that I need to mark text for translation like this:

$_("This text will be translated")
or like this
$ngettext("This text will be translated")

The templates with marked text compile. Running xgettext (or pygettext.py )
on the compiled template successfully creates the .pot files, but the files
does not contain the marked strings.

Also, running the template produces the following error:

  File
"/usr/local/lib/python2.4/site-packages/Cheetah-2.4.4-py2.4-linux-i686.egg/C
heetah/NameMapper.py", line 246, in valueFromSearchList
    _raiseNotFoundException(key, searchList)
  File
"/usr/local/lib/python2.4/site-packages/Cheetah-2.4.4-py2.4-linux-i686.egg/C
heetah/NameMapper.py", line 167, in _raiseNotFoundException
    raise NotFound(excString)
NotFound: cannot find '_'

which means it cannot find _() function.
Can anybody show me how to mark text fo&lt;/pre&gt;</description>
    <dc:creator>Alec Matusis</dc:creator>
    <dc:date>2011-01-19T22:57:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2805">
    <title>Escape character problem</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2805</link>
    <description>&lt;pre&gt;Dear All,

 

I use cheetahtemplate to generate file path. Its code look like this:

---Test 1---

Temp_FileName = "${COMM_BUS}\\Pass through\\${eDME}_max.pkg"

t_FileName = Template(Temp_FileName,searchList = [dobj])

 

Output:

 

A_CAN\Pass through${eDME}_max.pkg 

----End---

 

Why not they replace for ${eDME}? I think coz backslash is an escape
character so cheetah ignore ${eDME} replacement.

Then I solve it by put more blackslash .

 

---Test2---

Temp_FileName = "${COMM_BUS}\\Pass through\\\${eDME}_max.pkg"

t_FileName = Template(Temp_FileName,searchList = [dobj])

 

Output:

 

A_CAN\Pass through\${eDME}_max.pkg 

---End---

 

But it doesn't work. Just got only backslash output not ${eDME} replacement.


 

---Test3---

Temp_FileName = "${COMM_BUS}\\Pass through\\_${eDME}_max.pkg"

t_FileName = Template(Temp_FileName,searchList = [dobj])

Output:

A_CAN\Pass through\_AgeDegHvsto_min.pkg

---End---

 

For Test3, just to prove that if I put underscore before ${eDME}, it work
(replacement) but un&lt;/pre&gt;</description>
    <dc:creator>Saranakom Cheecharoen</dc:creator>
    <dc:date>2011-01-18T01:22:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.cheetah/2804">
    <title>Escape character problem</title>
    <link>http://comments.gmane.org/gmane.comp.python.cheetah/2804</link>
    <description>&lt;pre&gt;Dear All,

 

I use cheetahtemplate to generate file path. Its code look like this:

---Test 1---

Temp_FileName = "${COMM_BUS}\\Pass through\\${eDME}_max.pkg"

t_FileName = Template(Temp_FileName,searchList = [dobj])

 

Output:

 

A_CAN\Pass through${eDME}_max.pkg 

----End---

 

Why not they replace for ${eDME}? I think coz backslash is an escape
character so cheetah ignore ${eDME} replacement.

Then I solve it by put more blackslash .

 

---Test2---

Temp_FileName = "${COMM_BUS}\\Pass through\\\${eDME}_max.pkg"

t_FileName = Template(Temp_FileName,searchList = [dobj])

 

Output:

 

A_CAN\Pass through\${eDME}_max.pkg 

---End---

 

But it doesn't work. Just got only backslash output not ${eDME} replacement.


 

---Test3---

Temp_FileName = "${COMM_BUS}\\Pass through\\_${eDME}_max.pkg"

t_FileName = Template(Temp_FileName,searchList = [dobj])

Output:

A_CAN\Pass through\_AgeDegHvsto_min.pkg

---End---

 

For Test3, just to prove that if I put underscore before ${eDME}, it work
(replacement) but un&lt;/pre&gt;</description>
    <dc:creator>Saranakom Cheecharoen</dc:creator>
    <dc:date>2011-01-17T12:58:53</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.cheetah">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.cheetah</link>
  </textinput>
</rdf:RDF>

