well, external methods are python scripts with no safety measures at all, so are potentially much more unsafe than any use of regexps in a python script. So I'd say it's better to allow the re module in your python scripts (see my previous post) than resort to external methods. but I also haven't come across a reason to consider regexps unsafe. I'm sure it's been discussed here before - could someone point us to a post on this subject, pls ? Jorge O. Martinez wrote:
Hi:
Thanks for clarifying. I know it's not gone, and I've seen several threads debating that. Just wonder if someone could expand how enabling regexes can be unsafe for python scripts on Zope as Ben was suggesting. I feel regexes ARE an incredibly useful tool, and wish they were available for DTML and python scripts by default.
I feel doing it via an external method complicates things unnecessarily IMHO (I am a Zope newbie, so don't know the reasoning behind this, but if PHP, for example, allows its use and makes developers life easier, I don't see why Zope restricts it).
Thanks,
Jorge M.
Chris McDonough wrote:
Just to clarify: DTML is not "gone". This scares people when they hear it. DTML will be around probably forever. It's just not the right tool for this particular job.
----- Original Message ----- From: "Bo M. Maryniuck" <b.maryniuk@forbis.lt> To: "Jorge O. Martinez" <jmartinez@eMediaMillWorks.com>; <zope@zope.org> Sent: Tuesday, July 09, 2002 12:31 PM Subject: Re: [Zope] DTML, Zope and Regex
On Tuesday 09 July 2002 17:15, Jorge O. Martinez wrote:
Yes I know that is not 'real' code that does not exist, I was just
saying
if something like it could be done with DTML. Guess not, I had
seen the
external method solution from Runyaga, but was hoping something
could be
done with DTML only.
You want do this via External Method, not via DTML. DTML is gone.
-- Sincerely yours, Bogdan M. Maryniuck
Fatal Error: Found [MS-Windows] System -> Repartitioning Disk for Linux... (By cbbrown@io.org, Christopher Browne)
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )