Webware placeholders and the searchList
Aaron Murray <[email protected]> Wed, 22 May 2013 15:53:46 -0700
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <CADPxtWVjh8ABoXeknnOd8zymLB3fp-EoQ-7DA3kmsUAnfcceBA@mail.gmail.com> |
--===============6892878621022065407== Content-Type: multipart/alternative; boundary=001a11c2e4d035dff704dd567042 --001a11c2e4d035dff704dd567042 Content-Type: text/plain; charset=ISO-8859-1 I am upgrading to Cheetah 2.4.4. I'm getting a lot of errors relating to my $session placeholder (which is added to the searchList via a custom context object as ctx.session). After the upgrade, $session is always None. It seems like the Webware session variable from Servlet.py is sitting in the searchList above my custom placeholder. The current Cheetah docs state: "However, it is OK to put same-name variables in the searchList, because Webware does not use the searchList." I know the docs are currently out of date. It seems like this is no longer true. Is there any way I can avoid changing the name of my session placeholder in every template? I do not use Webware so I don't need any related functionality. Thanks, Aaron --001a11c2e4d035dff704dd567042 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I am upgrading to Cheetah 2.4.4. I'm getting a lot of = errors relating to my $session placeholder (which is added to the searchLis= t via a custom context object as ctx.session).<div><br></div><div style>Aft= er the upgrade, $session is always None. =A0It seems like the Webware sessi= on variable from Servlet.py is sitting in the searchList above my custom pl= aceholder. =A0The current Cheetah docs state:</div> <div style><br></div><div style>"However, it is OK to put same-name va= riables in the searchList, because Webware does not use the searchList.&quo= t;</div><div style><br></div><div style>I know the docs are currently out o= f date. =A0It seems like this is no longer true.</div> <div style><br></div><div style>Is there any way I can avoid changing the n= ame of my session placeholder in every template? =A0I do not use Webware so= I don't need any related functionality.</div><div style><br></div><div= style> Thanks,</div><div style>Aaron</div></div> --001a11c2e4d035dff704dd567042-- --===============6892878621022065407== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may --===============6892878621022065407== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Cheetahtemplate-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss --===============6892878621022065407==--