[Zope] python ignorance shining through...

Evan Simpson evan@4-am.com
Tue, 14 Sep 1999 08:59:58 -0500


Tony McDonald wrote:
[snippage]

> >   template_str = eval("self.RENDER.%s.read_raw()" % tagclass)

[bobbit]

This will certainly work, but here's a non-eval solution (I really dislike
exec-ing and eval-ing):

template_str = getattr(self.RENDER, tagclass).read_raw()