<?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 last): File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
site-packages/Cheetah-2.4.4-py2.7.egg/Cheetah/Tests/Template.py",
line 158, in test_compilationCache assert not
klass._CHEETAH_isInCompilationCache AssertionError

====================================FAIL:
test_keepRefToGeneratedCodeArg (Cheetah.Tests.Template.ClassMethods_compile)
---------------------------------- Traceback (most recent call last): File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
site-packages/Cheetah-2.4.4-py2.7.egg/Cheetah/Tests/Template.py", line 133,
in test_keepRefToGeneratedCodeArg assert not t.generatedModuleCode()
AssertionError

----------------------------------------------------------------------

Any ideas? Safe to ignore those? If not, what's the fix?


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
&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\python\libs -Ld:\tools2\python\PCbuild -lpython27 -lmsvcr90 -o
build\lib.win32-2.7\namema
pper.pyd
Cannot export initnamemapper: symbol not defined
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1


Could someone give me a hint as to what I'm doing wrong?

Thanks
Jan
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/_______________________________________________
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>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 by explicitly calling $self.greet() in the
included template, but it's rare to use "self." in Cheetah templates
and so is easy to forget, leading to potential bugs.

So my question is, why doesn't #include add the included template's
"self" to the searchList before the calling template's "self", to give
the more natural search order? I'm tempted to change this behaviour,
but there's probably a good reason for it, so I'm hesitant.

To change it, you can replace these two lines in Template.py:

            self._CHEETAH__searchList = list(_preBuiltSearchList)
            self._CHEETAH__searchList.append(self)

with:

            self._CHEETAH__searchList = []
            selfAdded = False
            for item in _preBuiltSearchList:
                if not selfAdded and isinstance(item, Template):
                    self._CHEETAH__searchList.append(self)
                    selfAdded = True
                self._CHEETAH__searchList.append(item)

This will place the #include template's "self" above the caller's, as
(at least we) expected.

Thanks,
Ben.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
&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.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
&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:         8082
[...]

# FR
sso_host_fr:         sso-fr.example.com
sso_port_fr:         8083
[...]

--------------- YAML DATA STORAGE -------------------
prod:
  sso:
    hosts:
      sso_de:
        host:   sso-de.example.com
        port:   8081
      sso_en:
        host:   sso-en.example.com
        port:   8082
      sso_fr:
        host:   sso-fr.example.com
        port:   8083

-------------------------------------

I know using "eval" is not a good idea (eval = evil :) ) but I've tried
several other  solutions ("$sso_public_host_$myLanguage",
"$(sso_public_host_$myLanguage)", ...) and none of them work.
I've also tried to change my data storage file to have something like :
de:
   sso_host_public: ...
but I've got the exact same issue with
$self[$myLanguage]['sso_host_public']and I don't like this
representation since it's less natural than a list of
&amp;lt;key,value&amp;gt; tuples.

Do you have any idea how I can use a variable inside another variable name ?
It seems to be a bit odd but it would be very convenient in a production
environnement to have a very simple data storage file with only &amp;lt;key,value&amp;gt;
tuples : easy to read and easy to share with a simple copy/paste into
release note on a mail, a twiki, ...

Thanks and congratulations this templating engine : despite this little
issue, it's really great and I might consider using it on another projects,
more web oriented :)

Rémi
------------------------------------------------------------------------------
BlackBerry&amp;amp;reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&amp;amp;reg; mobile platform with sessions, labs &amp;amp; more.
See new tools and technologies. Register for BlackBerry&amp;amp;reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________
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>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 Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
&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 options work, and am able to get the indentation correct.
However, I'm a little wary of using undocumented features which may be
in flux; and also, the resulting templates are much more verbose than
I would like (too many #indent commands).

Ideally --- what seems to me like the natural solution (without having
considered use-cases that are different than mine, and without having
looked at the implementation at all ;) ) --- I would like the
indentation of a placeholder to be added to each line of the
placeholder's contents. Is that possible / difficult to implement /
inappropriate for other use-cases? Does anyone have any other
suggestions for achieving what I want?

Thanks!
Dov

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
&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 record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
&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 generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
&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;Find my iDevices&amp;lt;/title&amp;gt;
$insert_map_js
&amp;lt;/Head&amp;gt;

  &amp;lt;body onload="load()" onunload="GUnload()"&amp;gt;
&amp;lt;table Border=1&amp;gt;
&amp;lt;TD&amp;gt;&amp;lt;B&amp;gt;Name of iDevice&amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;&amp;lt;B&amp;gt;iDevice Type&amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;&amp;lt;B&amp;gt;Revision&amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;&amp;lt;B&amp;gt;Charging Status&amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;&amp;lt;B&amp;gt;Battery Level&amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;&amp;lt;B&amp;gt;Latitude&amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;&amp;lt;B&amp;gt;Longitude&amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;&amp;lt;B&amp;gt;Accuracy&amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;&amp;lt;TR&amp;gt;
#for $idevice in $idevice_list
&amp;lt;tr&amp;gt;&amp;lt;TD&amp;gt;$idevice&amp;lt;/TD&amp;gt;
&amp;lt;TD&amp;gt;$idevice_list[$idevice]["class"]&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;$idevice_list[$idevice]["deviceModel"]&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;$idevice_list[$idevice]["charging"]&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;${idevice_list[$idevice]["battery"], maxlen=5}&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;$idevice_list[$idevice]["location"]["latitude"]&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;$idevice_list[$idevice]["location"]["longitude"]&amp;lt;/td&amp;gt;
&amp;lt;TD&amp;gt;$idevice_list[$idevice]["location"]["accuracy"]&amp;lt;/td&amp;gt;
&amp;lt;/TR&amp;gt;
#end for
&amp;lt;/table&amp;gt;
&amp;lt;hr&amp;gt;
    &amp;lt;div id="map" style="width: 1000px; height: 600px"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev_______________________________________________
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>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.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testText (Cheetah.Tests.CheetahWrapper.RecurseImplicit)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 411, in testText
    self.go("cheetah fill -R --oext txt")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testCompile (Cheetah.Tests.CheetahWrapper.SplatTmpl)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 272, in testCompile
    self.go("cheetah compile *.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testFill (Cheetah.Tests.CheetahWrapper.SplatTmpl)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 276, in testFill
    self.go("cheetah fill *.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testText (Cheetah.Tests.CheetahWrapper.SplatTmpl)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 280, in testText
    self.go("cheetah fill --oext txt *.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testCompile (Cheetah.Tests.CheetahWrapper.SplatTmplWithSubdirectories)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 325, in testCompile
    self.go("cheetah compile *.tmpl child/*.tmpl child/grandkid/*.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testFill (Cheetah.Tests.CheetahWrapper.SplatTmplWithSubdirectories)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 331, in testFill
    self.go("cheetah fill *.tmpl child/*.tmpl child/grandkid/*.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testText (Cheetah.Tests.CheetahWrapper.SplatTmplWithSubdirectories)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 337, in testText
    self.go("cheetah fill --oext txt *.tmpl child/*.tmpl child/grandkid/*.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testCompile (Cheetah.Tests.CheetahWrapper.ThreeFilesWithSubdirectories)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 285, in testCompile
    self.go("cheetah compile a.tmpl child/a.tmpl child/grandkid/a.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testFill (Cheetah.Tests.CheetahWrapper.ThreeFilesWithSubdirectories)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 291, in testFill
    self.go("cheetah fill a.tmpl child/a.tmpl child/grandkid/a.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testText (Cheetah.Tests.CheetahWrapper.ThreeFilesWithSubdirectories)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 297, in testText
    self.go("cheetah fill --oext txt a.tmpl child/a.tmpl child/grandkid/a.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testCompile (Cheetah.Tests.CheetahWrapper.ThreeFilesWithSubdirectoriesNoExtension)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 305, in testCompile
    self.go("cheetah compile a child/a child/grandkid/a")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testFill (Cheetah.Tests.CheetahWrapper.ThreeFilesWithSubdirectoriesNoExtension)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 311, in testFill
    self.go("cheetah fill a child/a child/grandkid/a")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testText (Cheetah.Tests.CheetahWrapper.ThreeFilesWithSubdirectoriesNoExtension)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 317, in testText
    self.go("cheetah fill --oext txt a child/a child/grandkid/a")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testCompile (Cheetah.Tests.CheetahWrapper.VarietyWithOdir)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 360, in testCompile
    self.go("cheetah compile --odir DEST a.tmpl child/a child/grandkid/*.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testFill (Cheetah.Tests.CheetahWrapper.VarietyWithOdir)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 369, in testFill
    self.go("cheetah fill --odir DEST a.tmpl child/a child/grandkid/*.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


======================================================================
FAIL: testText (Cheetah.Tests.CheetahWrapper.VarietyWithOdir)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 375, in testText
    self.go("cheetah fill --odir DEST --oext txt a.tmpl child/a child/grandkid/*.tmpl")
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 222, in go
    output = self.assertSubprocess(cmd)
  File "C:\Users\Daveo\AppData\Roaming\Python\Python27\site-packages\cheetah-2.4.4-py2.7-win32.egg\Cheetah\Tests\CheetahWrapper.py", line 205, in assertSubprocess
    %s''' % (status, output))
AssertionError: Subprocess exited with a non-zero status (1)
                            Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 562, in &amp;lt;module&amp;gt;
    main()
  File "C:\Python27\lib\site.py", line 538, in main
    known_paths = removeduppaths()
  File "C:\Python27\lib\site.py", line 109, in removeduppaths
    dir, dircase = makepath(dir)
  File "C:\Python27\lib\site.py", line 81, in makepath
    dir = os.path.abspath(dir)
  File "C:\Python27\lib\ntpath.py", line 471, in abspath
    path = _getfullpathname(path)
TypeError: must be (buffer overflow), not str


----------------------------------------------------------------------
Ran 2138 tests in 6.435s

FAILED (failures=47, errors=228)
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd_______________________________________________
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>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.py", line 692, in compile
    fileHash = str(hash(file))+str(os.path.getmtime(file))
  File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory:
'/home/maciej/src/cheetah-test/foo.tmpl'

It looks like Cheetah looks for the template to include in the
process' cwd, instead of the directory containing the original
template.  If the template were created from a string or a unicode
object, that would understandable. But Cheetah does know the path to
the template ("subdir") and it's reasonable to assume that this is the
place to look for other templates too.

If there a workaround for this problem?

Maciej

------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
&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
variable

#for $result in $resultlist

&amp;lt;tr&amp;gt;

&amp;lt;td&amp;gt;$result['count']&amp;lt;/td&amp;gt;

&amp;lt;td&amp;gt;$result['key']&amp;lt;/td&amp;gt;

&amp;lt;/tr&amp;gt;

#end for


But it does not work.


Any hint?

Thanks a lot

Pasithee
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev_______________________________________________
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>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/python2.6/dist-packages/Cheetah/Template.py", line 997, 
in __str__
     rc = getattr(self, mainMethName)()
   File 
"_home_gerry_Dropbox_develop_shiftBrite_pyDriver_www_templates_editScript_tmpl.py", 
line 160, in respond
TypeError: 'NoneType' object is not callable
------------------

The fragment of the template file that is causing this is:
---------------------
#for $anEffect in $handler.getEffectList():
   $anEffect.getName()
#end for
---------------------

I can confirm, via debugging and copious print statements, that the object 
represented by $handler is returning a series of objects via the getEffectList() 
method.

Each "effect" instance can be a different class instance, but all the class 
instances have a common (and single) superclass that contains the getName() 
method.  For example, there could be a class of "effects.effects.ColorWasher", 
"effects.effects.ColorPulser" and "effects.effects.TwinkleColor".  All classes 
have the same base class of "BaseEffect" (which defined getName() and is not 
overridden by the sub-classes).

If I fire up the python shell and run all the same code by hand, the 
getEffectList() call correctly returns a list of effects instances which work 
fine (I can call the getName() and other methods no problem).  This code has 
been working for a long time, so I'm pretty confident of it.  I install the 
$handler value directly, so there are no intermediate classes that could 
hide/mask things.

The odd thing, to me, is that if I do
#for $anEffect in $handler.getEffectList():
   $type($anEffect)
#end for

I get an expected list of different class names, so it must see part of this, 
but an attempt to invoke any method (even methods I know do NOT exist -- just 
testing), gives the NoneType.  Doing a $dir($anEffect) shows all methods, 
including the getName() method, fine, so it's there in some way.

I have a ton of other placeholder activity including calls for other 
classes/lists of instances in the same template that work fine.

So, hoping I've provided enough to at least start the dialog, I'm wondering if:
1) Could there be issues because the method I'm trying to invoke belongs to a 
superclass of the instance that is being used?

2) Could there be an issue with packages/modules/importing that has to be 
resolved (i.e. while the class is intact, Cheetah can't parse the info/find 
things because the classes are from a different package/module)?

3) If none of the above, any suggestions on how to further track this down?

I really appreciate it.  I've spend nearly 2 days testing and trying different 
approaches and other than now being sure the underlying code (the handler, 
effects list manage and effects) are working reliably.

Much Thanks in advance!

Gerry
&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 for translation?

I am using Cheetah 2.4.4 for these tests. We have Cheetah 0.9.15 in
production, but I believe that 0.9.15 does not have gettext functionality at
all- is that correct?


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
&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 underscore is not what I want. 

 

 

How I can solve this problem?

 

 

Best regard,

Saranakom Cheecharoen

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________
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>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 underscore is not what I want. 

 

 

How I can solve this problem?

 

 

Best regard,

Saranakom Cheecharoen

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________
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>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>

