Re: #def woes

[email protected]
Newsgroups gmane.comp.python.cheetah
Message-ID <[email protected]>
 diff src/Compiler.py /home/mark/cheetah/src/Compiler.py
52c52
<     ('prioritizeSearchListOverSelf', False, 'When iterating the
searchList, look into the searchList passed into the initializer instead of
Template members first'),
---
*>     ('prioritizeSearchListOverSelf', True, 'When iterating the
searchList, look into the searchList passed into the initializer instead of
Template members first'),*

This should be the default usage case to keep backward compatibiltiy
On 5/21/09, R. Tyler Ballance <[email protected]> wrote:
>
> On Thu, May 21, 2009 at 02:49:52PM -0700, [email protected] wrote:
> >    http://rtyler.github.com/cheetah/recipes.html
> >    Cheetah Cookbook?
>
> Fork the repository, switch to the gh-pages branch, and you can start
> enumerating recipies in Markdown.
>
>
> :D
>
> I've not had the time to address this need more than that at the moment
>
>
> >    On Wed, May 20, 2009 at 1:52 PM, <[email protected]> wrote:
> >
> >      Mike
> >      Can you suggest what we can put in Cheetah Cookbook.
> >      Can you share some of your sample templates
> >      i m trying to compile some so i can submit to tyler and get it on
> the
> >      cheetah community website as a cookbook feature?
> >      Thanks a lot
> >
> >      On Wed, May 20, 2009 at 1:16 PM, Michael Higgins <
> [email protected]>
> >      wrote:
> >
> >        #def foo($a)
> >        <b>$a</b>
> >        #end def
> >
> >        #set $faa = $getVar('foo', autoCall=False)
> >        $faa('hi')
> >
> >        does what you want, I think.  I'm not sure if there's a more
> elegant
> >        approach directly in Cheetah, though of course you could write a
> >        convenience function so you don't have to type getVar blah blah
> blah
> >        all the time if you need to do this a lot.
> >
> >        Mike
> >
> >        On May 20, 2009, at 4:03 PM, [email protected] wrote:
> >
> >          oops forgot autocalling
> >          so how do we give a function another name
> >
> >          On Wed, May 20, 2009 at 10:36 AM, R. Tyler Ballance
> >          <[email protected]> wrote:
> >          On Wed, May 20, 2009 at 03:46:57AM -0700,
> [email protected]
> >          wrote:
> >          >    #def foo($a)
> >          >    <b>$a</b>
> >          >    #end def
> >          >
> >          >    #set faa = $foo
> >          >    $faa()
> >          >    this doesnt work?
> >          >    why not
> >
> >          What do you expect this to do? Refer to the documentation for
> >          "autocalling"
> >
> >          >    --
> >          >    Bidegg worlds best auction site
> >          >    http://bidegg.com
> >
> >          >
>
> >          ------------------------------------------------------------------------------
> >          > Crystal Reports - New Free Runtime and 30 Day Trial
> >          > Check out the new simplified licensing option that enables
> >          > unlimited royalty-free distribution of the report engine
> >          > for externally facing server and web deployment.
> >          > http://p.sf.net/sfu/businessobjects
> >          > _______________________________________________
> >          > Cheetahtemplate-discuss mailing list
> >          > [email protected]
> >          >
> >
> https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
> >
> >          --
> >          -R. Tyler Ballance
> >          Slide, Inc.
> >
> >          --
> >          Bidegg worlds best auction site
> >          http://bidegg.com
>
> >          ------------------------------------------------------------------------------
> >          Crystal Reports - New Free Runtime and 30 Day Trial
> >          Check out the new simplified licensing option that enables
> >          unlimited royalty-free distribution of the report engine
> >          for externally facing server and web deployment.
> >
> http://p.sf.net/sfu/businessobjects_______________________________________________
> >          Cheetahtemplate-discuss mailing list
> >          [email protected]
> >
> https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
> >
> >      --
> >      Bidegg worlds best auction site
> >      http://bidegg.com
> >
> >    --
> >    Bidegg worlds best auction site
> >    http://bidegg.com
>
> --
> -R. Tyler Ballance
> Slide, Inc.
>
>


-- 
Bidegg worlds best auction site
http://bidegg.com

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com

_______________________________________________
Cheetahtemplate-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.