how do we get psp style tags working in cheetah

[email protected] Wed, 16 Dec 2009 12:50:35 -0800
Newsgroups gmane.comp.python.cheetah
Message-ID <[email protected]>
*This doesnt work*
<%
tmpsave = False
if  me.health<0:
    me.health = 10
    tmpsave = True
if me.bucks<=0:
    me.bucks=100
    tmpsave = True
if tmpsave:me.save()

%>

*error global variable me not found*
*
*
*
*
*This works*

#set tmpsave = False
#if  $me.health<0
   #set $me.health = 10
   #set tmpsave = True
   #end if
if me.bucks<=0
    #set me.bucks=100
#set     tmpsave = True
    #end if
#if tmpsave
$me.save()
    #end if

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev

_______________________________________________
Cheetahtemplate-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss