[Zope-dev] type() in DTML or/and in Python Method?
Evan Simpson
evan@4-am.com
Thu, 25 Nov 1999 10:01:41 -0600
Ava wrote:
> Hello,
>
> I wonder why the builtin function type() is not available, neither from DTML
> nor from products like PythonMethod ?
> Could the use of such a function be a security problem?
Yep. Beleive it or not, on certain Extension Methods type() returns an
executable object which should not be exposed in Zope.
I've suggested adding a nice safe same_type(a,b) function to the namespace, but
got no response. I'll go file it with the Collector now.
Cheers,
Evan @ 4-am