Re: [Zope] REQUEST.form variables order

2006-04-21 Thread Gaute Amundsen
On Thursday 20 April 2006 20:11, Dieter Maurer wrote: Gaute Amundsen wrote at 2006-4-19 19:03 +0200: I want to retrieve the form fields in the order that they where submitted in the http POST. I know this has been brought up before, and that the answer is You cant. You might be able to do

Re: [Zope] REQUEST.form variables order

2006-04-21 Thread Gaute Amundsen
On Friday 21 April 2006 21:04, Dieter Maurer wrote: Gaute Amundsen wrote at 2006-4-21 11:01 +0200: On Thursday 20 April 2006 20:11, Dieter Maurer wrote: Gaute Amundsen wrote at 2006-4-19 19:03 +0200: I want to retrieve the form fields in the order that they where submitted in the http

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Wednesday 19 April 2006 21:47, Tino Wildenhain wrote: Gaute Amundsen wrote: I want to retrieve the form fields in the order that they where submitted I'd say blaming zope for not reading the docs is somewhat arrogant .-) I have been reading the docs for thee last 3 years my friend. Could

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Tino Wildenhain
Gaute Amundsen schrieb: On Wednesday 19 April 2006 21:47, Tino Wildenhain wrote: Gaute Amundsen wrote: I want to retrieve the form fields in the order that they where submitted I'd say blaming zope for not reading the docs is somewhat arrogant .-) I have been reading the docs for thee

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Andrew Milton
+---[ Gaute Amundsen ]-- | | Hm.. ok. | I have these 100 forms, all over the place. They live in user editable html. | To have to track down and alter them all is out of the question. | Yet the users expect the form fields to appear in their emails in the order | that they

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 12:09, Tino Wildenhain wrote: Gaute Amundsen schrieb: On Wednesday 19 April 2006 21:47, Tino Wildenhain wrote: Gaute Amundsen wrote: I want to retrieve the form fields in the order that they where submitted I'd say blaming zope for not reading the docs is

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 12:15, Andrew Milton wrote: +---[ Gaute Amundsen ]-- | Hm.. ok. | I have these 100 forms, all over the place. They live in user editable | html. To have to track down and alter them all is out of the question. | Yet the users expect the form

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Andrew Milton
+---[ Gaute Amundsen ]-- | On Thursday 20 April 2006 12:15, Andrew Milton wrote: | +---[ Gaute Amundsen ]-- | | | Hm.. ok. | | I have these 100 forms, all over the place. They live in user editable | | html. To have to track down and alter them

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 13:23, Andrew Milton wrote: +---[ Gaute Amundsen ]-- | On Thursday 20 April 2006 12:15, Andrew Milton wrote: | +---[ Gaute Amundsen ]-- snip | But, why render the page, when I could just parse it to get the field |

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Andrew Milton
+---[ Gaute Amundsen ]-- | On Thursday 20 April 2006 13:23, Andrew Milton wrote: | +---[ Gaute Amundsen ]-- | | | On Thursday 20 April 2006 12:15, Andrew Milton wrote: | | +---[ Gaute Amundsen ]-- | snip | | But, why

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 14:01, Andrew Milton wrote: +---[ Gaute Amundsen ]-- | On Thursday 20 April 2006 13:23, Andrew Milton wrote: | +---[ Gaute Amundsen ]-- | | | On Thursday 20 April 2006 12:15, Andrew Milton wrote: | | +---[

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Tino Wildenhain
Gaute Amundsen schrieb: ... The order of the form elements that goes into mail headers is ofcourse irelevant. I'ts the rest of the form, you know name, adress, street, etc. that are the problem. It's a purely visual thing, but when you have a form with perhaps 50 fields, that the client has

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Tino Wildenhain
Gaute Amundsen schrieb: On Thursday 20 April 2006 13:23, Andrew Milton wrote: +---[ Gaute Amundsen ]-- | On Thursday 20 April 2006 12:15, Andrew Milton wrote: | +---[ Gaute Amundsen ]-- snip | But, why render the page, when I could just

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 15:46, Tino Wildenhain wrote: Gaute Amundsen schrieb: ... The order of the form elements that goes into mail headers is ofcourse irelevant. I'ts the rest of the form, you know name, adress, street, etc. that are the problem. It's a purely visual thing, but when

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Gaute Amundsen
On Thursday 20 April 2006 17:16, Tino Wildenhain wrote: Any hints to get me statred on the zpt version? No, you would not do this in ZPT. ZPT is the templating engine. You write your logic in python. External Method for example if you dont want to write a complete product. I have the

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread David H
Gaute Amundsen wrote: On Thursday 20 April 2006 15:46, Tino Wildenhain wrote: Gaute Amundsen schrieb: ... The order of the form elements that goes into mail headers is ofcourse irelevant. I'ts the rest of the form, you know name, adress, street, etc. that are the

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread Dieter Maurer
Gaute Amundsen wrote at 2006-4-19 19:03 +0200: I want to retrieve the form fields in the order that they where submitted in the http POST. I know this has been brought up before, and that the answer is You cant. You might be able to do it. Try REQUEST['BODY']. For a POST request, it should

[Zope] REQUEST.form variables order

2006-04-19 Thread Gaute Amundsen
I want to retrieve the form fields in the order that they where submitted in the http POST. I know this has been brought up before, and that the answer is You cant. http://mail.zope.org/pipermail/zope/2005-October/162460.html For zope to refuse to expose this information to me is really quite

Re: [Zope] REQUEST.form variables order

2006-04-19 Thread Tino Wildenhain
Gaute Amundsen wrote: I want to retrieve the form fields in the order that they where submitted in the http POST. I know this has been brought up before, and that the answer is You cant. http://mail.zope.org/pipermail/zope/2005-October/162460.html For zope to refuse to expose this

Re: [Zope] REQUEST.form variables order

2005-10-26 Thread Krzysztof Kubacki
Krzysztof Kubacki schrieb: On 24 Oct 2005, at 14:03, Krzysztof Kubacki wrote: How to change it? I would like to have variables in the same order as I put them into internet form. You can't. REQUEST.form is a dictionary. They are, by definition, unordered. Why do you need them

Re: [Zope] REQUEST.form variables order

2005-10-26 Thread Tino Wildenhain
... And how exactly would that help if your script isnt expecting the new fields anyway? I'd use the :list and :records modifier accordingly for keeping ordering where that matters. The thing is that there is possibility to change fields order by the mean of WYSIWYG editor by the user. If

[Zope] REQUEST.form variables order

2005-10-24 Thread Krzysztof Kubacki
 Hi my friends :) I've noticed the following situation. When I send internet form onto PythonScript the variables in the REQUEST.formare in the different order that they were asfieldsin theinternet form. I see when I send internet form by GET method that variables are placed in the right

Re: [Zope] REQUEST.form variables order

2005-10-24 Thread Jens Vagelpohl
On 24 Oct 2005, at 13:54, Krzysztof Kubacki wrote: Hi my friends :) I've noticed the following situation. When I send internet form onto PythonScript the variables in the REQUEST.form are in the different order that they were as fields in the internet form. I see when I send internet form

Re: [Zope] REQUEST.form variables order

2005-10-24 Thread Krzysztof Kubacki
On 24 Oct 2005, at 14:03, Krzysztof Kubacki wrote: How to change it? I would like to have variables in the same order as I put them into internet form. You can't. REQUEST.form is a dictionary. They are, by definition, unordered. Why do you need them ordered? What is the use

Re: [Zope] REQUEST.form variables order

2005-10-24 Thread Andreas Jung
--On 24. Oktober 2005 15:19:45 +0200 Krzysztof Kubacki [EMAIL PROTECTED] wrote: But the thing is that I don't have guarantee that user will not replace fields in the internet form(there is a possibility). AFAIK there is no specification that requires form parameters to be submitted in

Re: [Zope] REQUEST.form variables order

2005-10-24 Thread Tino Wildenhain
Krzysztof Kubacki schrieb: On 24 Oct 2005, at 14:03, Krzysztof Kubacki wrote: How to change it? I would like to have variables in the same order as I put them into internet form. You can't. REQUEST.form is a dictionary. They are, by definition, unordered. Why do you need them ordered? What