I'm trying to create a Python Method, using PythonMethod 0-1-7, that
validates a set of form values before updating a database. I planned
to return any/all errors as a dictionary keyed by the errant field
name. But statements like this in my Python Method
input_errors = {}
This is one of the shortcomings of Python Methods that Scripts eliminate.
You can work around it by writing:
x = {}
x.update({y: z})
Cheers,
Evan @ digicool 4-am
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
* Tres Seaver ([EMAIL PROTECTED]) [001130 09:06]:
Chris Withers [EMAIL PROTECTED] wrote:
'lambda' is actually a keyword, not a function, and hence works
fine in PM0.1.7. 'map()', 'filter()', et al., were deemed to
be susceptible to being used in DOS attacks, and hence are not
permitted in
Hi,
Is there any way to get access to inbuild python functions like 'filter'
and 'lambda' within pythonMethods?
terry
--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions (www.adroit.net)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381
Hi,
I'm having problems with Python methods. I've followed the instructions
for the guestbook example [1] to the letter but when I add the Python
method [2] is causes an error as follows:
Error Type: NameError
Error Value: context
TraceBack: Traceback (innermost last): File
Is there any way you can see what the results are looking like without
having to vote again?
How do you know we're only voting once? ;-)
cheers,
Chris
Michel Pelletier wrote:
Please vote folks!
-Michel
Shane Hathaway wrote:
Being Election Day in the United States, now is a good
Is there any way you can see what the results are looking like without
having to vote again?
Don't worry, there's no need actually to count the votes.
Despite the fact that this race went right down to the wire, according to my
complex computer-based prediction models (based on exit polls
I have the opposite problem.
Having voted once - early yesterday - I now can't vote again. The reason I
want to vote again is that I have changed my mind!
Now I want to _poll down_ "Python Method" and add a new alternative "ZPython
Method" or add some points to "Python Script" or "ZPY".
The
Just view the poll again. Everything but "python method" has been
getting trounced so far.
How come "python function" isn't there, again ? Isn't that what they
actually are ?
___
Zope maillist - [EMAIL PROTECTED]
Oh, another thingy:
An object called Python method is supposed to appear on
the Add list? or am I supposed to emulate it with some
kind of external method and files? If that's the case,
well, sad kludge. Please let me know.
--
To: [EMAIL PROTECTED]
Sent: Friday, September 29, 2000 10:56 PM
Subject: [Zope] python methods
Oh, another thingy:
An object called Python method is supposed to appear on
the Add list? or am I supposed to emulate it with some
kind of external method and files? If that's the case,
well, sad kludg
Working with Zope 2.2.1 (in two distinct servers), I noticed the following
behaviour with (0.1.7) Python methods (created under Manager role):
1. Apparently anyone (non-authenticated users) can successfully run the
methods even if these include operations (folder/file/user creation, etc.)
12 matches
Mail list logo