Hi folks! I have a strange little proble when I want to use the python module "re" in Zope. Importing it is no problem and works flawlessly. Compiling the re-expression also works fine. But I run into troubles as soon, as I try to do something with it. For example, I'd like to check for the @ character in an email-address. According to the python howtos it works like this: import re p=re.compile("@") m=p.match("walter@pleyer.com") This works fine, when I try it with a standard python interpreter. But if I try in Zope it wants my password as soon as I try the match-operation and never completes it. Any Ideas? Thanx, Walter
Zope does not allow the usage of the "re" module inside PythonScripts for security reasons. Either use an external method (no restrictions) or follow the instructions in the README in the PythonScripts directory how to enable access to other modules than the allowed ones. Andreas ----- Original Message ----- From: "Walter Pleyer" <walter.pleyer@euromarketing.at> To: <zope@zope.org> Sent: Wednesday, January 09, 2002 04:08 Subject: [Zope] regular expressions with re
Hi folks!
I have a strange little proble when I want to use the python module "re" in Zope. Importing it is no problem and works flawlessly.
Compiling the re-expression also works fine.
But I run into troubles as soon, as I try to do something with it. For example, I'd like to check for the @ character in an email-address. According to the python howtos it works like this:
import re
p=re.compile("@")
m=p.match("walter@pleyer.com")
This works fine, when I try it with a standard python interpreter. But if I try in Zope it wants my password as soon as I try the match-operation and never completes it.
Any Ideas?
Thanx, Walter
_______________________________________________ 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 )
participants (2)
-
Andreas Jung -
Walter Pleyer