[Zope] Formulator override method does not work
cgreen
cgreen@ttsg.com
Mon, 14 Jan 2002 14:38:10 -0500
Dieter;
Dude!!! You totally f---in' ROCK, man!!!
That was completely it..... my non-programming 'self' would have *never*
figured that out --
"container" instead of "context". That's what happens when you (I)
cut-and-paste code
instead of understanding it....
Thank you, thank you THANK YOU! If you are ever in the New York City
area, I owe you dinner!
peace
> cgreen writes:
> > ...
> > The override method (for "Formulator") is a python script:
> >
> > for object in context.objectValues('STX_Document'):
> > ....
> >
> > The script works in the "Python Script" manage window when I select the
> > "test" tab. But when I actually run the DTML
> > file that calls the form, I get an empty multi-list field.
> I expect, "context" is different when the script is used
> inside the Formulator. Maybe, the use of "container" (instead of
> "context") solves your problem.
>
>
> Dieter
>
> _______________________________________________
> 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 )
>
>
>