Re: how do we get psp style tags working in cheetah
"R. Tyler Ballance" <[email protected]> Wed, 16 Dec 2009 16:37:23 -0800
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------------ 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
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEYEARECAAYFAkspfUMACgkQFCbH3D9R4W/B3wCfZvHWMCVdXc0BDduWB52WbxNp AfUAn0hGvZKsRxC6YkttlwGBa/B1GARf =z2N8 -----END PGP SIGNATURE-----