useStackFrames and namemapper
seehart_ken <[email protected]> Mon, 11 Jul 2016 15:08:27 -0700
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
Big picture: This namemapper thing is a rather unfortunate blemish on an
otherwise excellent tool. Being that Cheetah is a pure text only tool,
straightforward platform-agnostic installation without extra steps is a
reasonable hope IMO. I know the warning message can be ignored, but the
consumer just wants to get directly to the business of implementing
templates. The warning message is seen by the end user, and is not very
helpful.
The following patch would mostly remove the blemish:
< if not NameMapper.C_VERSION:
> if not NameMapper.C_VERSION and self.getSetting('useStackFrames'):
This would be backward-compatible workaround, and has no downside. The
consumer would just do this:
t = Template(compilerSettings={'useStackFrames': False}, ...)
Thereby avoiding the message by explicitly disabling useStackFrames.
Little picture: I'm using Python 2.7 on Windows. There doesn't appear to
be a _namemapper.pyd_2.7, and the 2.5 version depends on Python25.dll.
Adding a compilation step would be really painful because I'm not just
using this on my workstation. I need to ask IT to auto-install and
support tools like this, and I know they will be reluctant. So this
makes it really hard for me to sell it to management.
--
- Ken Seehart
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape