[Zope] Form to file.

ghaley@mail.venaca.com ghaley@mail.venaca.com
Tue, 3 Apr 2001 23:20:42 -0400 (EDT)


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 )
> 
>