[Zope] Form to file.
Jason C. Leach
jleach@mail.ocis.net
Wed, 4 Apr 2001 10:52:42 -0700 (PDT)
hi,
Probably disk.
j.
......................
..... Jason C. Leach
... University College of the Cariboo.
..
On Tue, 3 Apr 2001 ghaley@mail.venaca.com wrote:
>
> hi jason,
>
> where would you store the coma separated file? would it be stored on
> disk, in a database, or . . .?
>
> one idea would be to set up a list via a dtml-call, sort of like:
>
> <dtml-call "REQUEST.set('answers',[])>
> . . . iterate through the answers . . .
> <dtml-call "REQUEST.set('answers', answers+[var1])">
> etc., through
> <dtml-call "REQUEST.set('answers', answers+[varN])">
>
> this would build a python list, which you could then take and strip the
> leading [ and trailing ] off, and store as you wished.
>
> ciao!
> greg.
>
> DBA/Web Programmer
> Venaca, LLC
>
> > hi,
> >
> > I have a form and I need the contents, when filled out, to be appended to
> > a coma separated list (line) in a file. What's the best way to do that?
> >
> > Can I do it in the DTML or should it be an External method?
> >
> > j.
> >
> > ......................
> > ..... Jason C. Leach
> > ... University College of the Cariboo.
> > ..
> >
> >
> > _______________________________________________
> > 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 )
> >
> >
>
>
>