Re: Feedback Needed! Changing how Cheetah handles imports
"R. Tyler Ballance" <[email protected]>
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Apr 16, 2009 at 11:50:10PM +0200, Jean-Baptiste Quenot wrote: > 2009/4/16 R. Tyler Ballance <[email protected]>: > > > > The decision to be made between "us" as the community is which we want > > to be the *default* behavior: > > 1: Non-scoping import behavior (2.0.1 and earlier) > > 2: Scoping/inline import behavior.(2.1.0 and later) > > > > > > My personal vote is for #2 being the default behavior since it follows > > Python importing semantics closely (we also have updated our templates > > at Slide to avoid the issue Martin Skott describes). > > > > > > What say ye all? :) > > I don't care we don't use inline imports at my site, so I can say 2) > I'm not impacted by any incompatible change in this area :-) You might! Because of the writeBody() method lumping everything into itself, unless you put your global imports at the top of the template, the compiler will presume that you're meaning to import into writeBody instead of the module's global namespace > -- > Jean-Baptiste Quenot > http://jbq.caraldi.com/ > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Cheetahtemplate-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss -- -R. Tyler Ballance Slide, Inc. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Cheetahtemplate-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAknnqNQACgkQFCbH3D9R4W8TYwCfVRJ6SJukQlJbj+adX0nHHEwC /rgAoKNHP3nNBXi0wvViGCaZiFgS3DXM =lPKQ -----END PGP SIGNATURE-----