Re: how do we get psp style tags working in cheetah
[email protected] Thu, 17 Dec 2009 12:31:13 -0800
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
is there anyway to not do self.getVar('me')
and access as me
as doing self.getVar kills the purpose of elegant psp style
thanks
yes me comes from searchlist
On Wed, Dec 16, 2009 at 4:37 PM, R. Tyler Ballance <[email protected]>wrote:
>
> On Wed, 16 Dec 2009, [email protected] wrote:
>
> > *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*
>
> I'm assuming "me" is coming from the searchList, in which case you'd likely
> want to use `self.getVar('me')` in your PSP block
>
>
> Cheers,
> -R. Tyler Ballance
> --------------------------------------
> Jabber: [email protected]
> GitHub: http://github.com/rtyler
> Twitter: http://twitter.com/agentdero
> Blog: http://unethicalblogger.com
>
>
--
Bidegg worlds best auction site
http://bidegg.com
------------------------------------------------------------------------------
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