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. ..
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 )
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 )
You cant access the file system from within Zope so you will have to use an External Method. Should be relatively simple if you are comfortable with python -- Andy McKay. ----- Original Message ----- From: "Jason C. Leach" <jleach@mail.ocis.net> To: <zope@zope.org> Sent: Tuesday, April 03, 2001 8:01 PM Subject: [Zope] Form to file.
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 )
participants (3)
-
ghaley@mail.venaca.com -
Jason C. Leach -
Zopista