[Zope] Python Methods can't construct literal dictionaries?

2001-01-28 Thread Fred Yankowski
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 = {}

Re: [Zope] Python Methods can't construct literal dictionaries?

2001-01-28 Thread Evan Simpson
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

Re: [Zope] python methods

2000-11-30 Thread The Doctor What
* 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

[Zope] python methods

2000-11-29 Thread Terry Kerr
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

[Zope] python methods

2000-11-23 Thread Lee Reilly CS1997
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

[Zope] Python Methods Vote

2000-11-08 Thread Chris Withers
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

RE: [Zope] Python Methods Vote

2000-11-08 Thread Seb Bacon
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

Re: [Zope] Python Methods Vote

2000-11-08 Thread peter bengtson
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

Re: [Zope] Python Methods Vote

2000-11-08 Thread Simon Michael
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]

[Zope] python methods

2000-09-29 Thread Rudd-O
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. --

Re: [Zope] python methods

2000-09-29 Thread Phil Harris
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

[Zope] Python Methods 0.1.7 under Zope 2.2.1

2000-09-17 Thread J M Cerqueira Esteves
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.)