bug in 2.6.2, 2.6.1 , and probably others.
Yo, I just stumbled on a bug in the python scripting parameter passing. It seems that under certain conditions, the actual parameters are ignored, and the default parameters are always used. It is best shown by the following example: 0) create a python script with the following source: ## Script (Python) "buggy" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=a = 'default_a', b = 'default_b', c = 'default_c' ##title=exposes a bug in 2.6.1 and 2.6.2 ## print a print b print c return printed 1) in the ZMI click on the "test" tab and fill in the values: parameter value a a b b c c 2) click on "run script" 3) the result page is: default_a default_b default_c that's not what it should be. I quickly browsed the bug collector and did not found a related issue, but before I file a bug report, I'd like to know what versions are affected. I don't have the time nor the desire to install all versions and test this. So if you guys could take a minute to test it on your version. tia, Romain Slootmaekers.
Romain Slootmaekers wrote:
I just stumbled on a bug in the python scripting parameter passing.
Actually, it's a bug in the "test" tab support code. The parameter fields in the form are set to "a ", "b ", and "c " instead of "a", "b", and "c". I'm fixing it in CVS for 2.7. Normal parameter passing is unaffected. Cheers, Evan @ 4-am
On Tue, Feb 03, 2004 at 01:16:48PM -0600, Evan Simpson wrote:
Romain Slootmaekers wrote:
I just stumbled on a bug in the python scripting parameter passing.
Actually, it's a bug in the "test" tab support code. The parameter fields in the form are set to "a ", "b ", and "c " instead of "a", "b", and "c". I'm fixing it in CVS for 2.7.
Will this get into 2.6.4-final too? -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's HARVESTER GUTS SCREEN! (random hero from isometric.spaceninja.com)
Am Dienstag, 3. Februar 2004 23:16 schrieb Paul Winkler:
On Tue, Feb 03, 2004 at 01:16:48PM -0600, Evan Simpson wrote:
Romain Slootmaekers wrote:
I just stumbled on a bug in the python scripting parameter passing.
Actually, it's a bug in the "test" tab support code. The parameter fields in the form are set to "a ", "b ", and "c " instead of "a", "b", and "c". I'm fixing it in CVS for 2.7.
Will this get into 2.6.4-final too?
I tried the example with zope 2.6.4-rc2. I got the right output and can't see a bug. Regards, Dirk
Paul Winkler wrote:
On Tue, Feb 03, 2004 at 01:16:48PM -0600, Evan Simpson wrote:
Romain Slootmaekers wrote:
I just stumbled on a bug in the python scripting parameter passing.
Actually, it's a bug in the "test" tab support code. The parameter fields in the form are set to "a ", "b ", and "c " instead of "a", "b", and "c". I'm fixing it in CVS for 2.7.
Will this get into 2.6.4-final too?
-1. In fact, it shouldn't even make 2.7.0 final. I don't think it is a "showstopper" bug, and would prefer to stick by our process ("*no* non-packaging changes between the last RC and the release.") Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
I just stumbled on a bug in the python scripting parameter passing.
Actually, it's a bug in the "test" tab support code. The parameter fields in the form are set to "a ", "b ", and "c " instead of "a", "b", and "c". I'm fixing it in CVS for 2.7.
Will this get into 2.6.4-final too?
-1. In fact, it shouldn't even make 2.7.0 final. I don't think it is a "showstopper" bug, and would prefer to stick by our process ("*no* non-packaging changes between the last RC and the release.")
Tres.
I agree. There is *always* "one more bug" that is important to someone, but for sanity's sake I too want to avoid any changes between the final rc & final, especially given that I'd like to make finals on Friday. Brian Lloyd brian@zope.com V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com
Am Dienstag, 3. Februar 2004 23:16 schrieb Paul Winkler:
On Tue, Feb 03, 2004 at 01:16:48PM -0600, Evan Simpson wrote:
Romain Slootmaekers wrote:
I just stumbled on a bug in the python scripting parameter passing.
Actually, it's a bug in the "test" tab support code. The parameter fields in the form are set to "a ", "b ", and "c " instead of "a", "b", and "c". I'm fixing it in CVS for 2.7.
Will this get into 2.6.4-final too?
Sorry, I build my example script with wrong pararmeter (the space between 'a' and '=' is important) The bug is in Zope 2.6.4-rc2 too ! Dirk
participants (6)
-
Brian Lloyd -
Dirk Datzert -
Evan Simpson -
Paul Winkler -
Romain Slootmaekers -
Tres Seaver