[Zope] Persistent variable in Python Script? Is this a feature or a bug?

iap@y2fun.com iap@y2fun.com
Tue, 9 Apr 2002 17:09:46 +0800


Thanks.
Actually, I use A to provide some common options, and call B from some other
C with varied individual options.
I also want A to be included not only by B but also by B1, B2.....
That's why I have to set parameter list.
(A,B,C,...just for abstraction)
Current, I have a work-around:
Another version of B works:

parameter list: b=[]

======
bb=[]
if b:
   bb.extend(b)
bb.extend(container.A())
return bb
======

this is interesting, that "if b" got false value in this case.

Iap, Singuan

>
> b=[]
> b.append(container.A())
> return b
>
> greetings, maik.
>
> --
>  maik jablonski                  http://www.sachunterricht-online.de
>  universitaet bielefeld         http://www.zfl.uni-bielefeld.de
>  zentrum fuer lehrerbildung    tlph://+49.(0).521.106.4234
>