Upgrading from 0.9 to 2.4.4 and getting errors (natch)

Aaron Murray <[email protected]> Thu, 16 May 2013 14:13:53 -0700
Newsgroups gmane.comp.python.cheetah
Message-ID <CADPxtWWepLMndA6yYK_8F85H6M3X5i49QTNq5J56n+kYdypr9w@mail.gmail.com>
--===============5112141935202455254==
Content-Type: multipart/alternative; boundary=089e0118414cf3121204dcdc574b

--089e0118414cf3121204dcdc574b
Content-Type: text/plain; charset=ISO-8859-1

I have been tasked with upgrading my company's ancient installation of
Cheetah.

My templates are compiling, but I'm getting a number of strange errors and
I can't find the root cause.  I'm trying to figure out a systematic way to
upgrade the templates, but so far information is scarce.

Below is an example:

#set formUtil = $iLib.aquariumFactory("widget.FormUtil",
    defaults=[{"username": $session.get("username")}, $form])

This produces the following error:

NotFound: cannot find 'get' while searching for 'get'

If I refactor like so:

#set username = $session.get("username")
#set formUtil = $iLib.aquariumFactory("widget.FormUtil",
    defaults=[{"username": $username}, $form])

I get no errors. I get similar errors in other places ("Cannot find X while
searching for X"), but I'm not clear what changed in Cheetah so that I can
address it in a consistent way.

--089e0118414cf3121204dcdc574b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I have been tasked with upgrading my company&#39;s ancient=
 installation of Cheetah.<div><br></div><div style>My templates are compili=
ng, but I&#39;m getting a number of strange errors and I can&#39;t find the=
 root cause. =A0I&#39;m trying to figure out a systematic way to upgrade th=
e templates, but so far information is scarce.</div>
<div style><br></div><div style><div>Below is an example:</div><div><br></d=
iv><div>#set formUtil =3D $iLib.aquariumFactory(&quot;widget.FormUtil&quot;=
,</div><div>=A0 =A0 defaults=3D[{&quot;username&quot;: $session.get(&quot;u=
sername&quot;)}, $form])</div>
<div><br></div><div>This produces the following error:</div><div><br></div>=
<div>NotFound: cannot find &#39;get&#39; while searching for &#39;get&#39;<=
/div><div><br></div><div>If I refactor like so:</div><div><br></div><div>
#set username =3D $session.get(&quot;username&quot;)</div><div>#set formUti=
l =3D $iLib.aquariumFactory(&quot;widget.FormUtil&quot;,</div><div>=A0 =A0 =
defaults=3D[{&quot;username&quot;: $username}, $form])</div><div><br></div>=
<div>I get no errors. I get similar errors in other places (&quot;Cannot fi=
nd X while searching for X&quot;), but I&#39;m not clear what changed in Ch=
eetah so that I can address it in a consistent way.</div>
</div></div>

--089e0118414cf3121204dcdc574b--


--===============5112141935202455254==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
--===============5112141935202455254==
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

--===============5112141935202455254==--