Re: How to populate a form with multiple values

2006-03-17 Thread limodou
On 3/17/06, PythonistL <[EMAIL PROTECTED]> wrote: > > Limodou, > I have the custom manipulator, see the beginning of this thread. > But I do not know how to populate data from that manipulator to the form > the data passed to FormWrapper should match the name of FormField's field_name. I checked

Re: How to populate a form with multiple values

2006-03-17 Thread PythonistL
Limodou, I have the custom manipulator, see the beginning of this thread. But I do not know how to populate data from that manipulator to the form --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: How to populate a form with multiple values

2006-03-17 Thread PythonistL
Kenneth,Thank you for your idea.It can be really better to use sessions. But now the biggest problem for me is that I can not display multiple values from the shopping cart in input fields of my form. Any idea? Thanks --~--~-~--~~~---~--~~ You received this messag

Re: How to populate a form with multiple values

2006-03-17 Thread [EMAIL PROTECTED]
limodou wrote: > On 3/17/06, PythonistL <[EMAIL PROTECTED]> wrote: > > > > Kenneth, > > > > I think ChangeManipulator is concerned to a single object, but what > you will deal with are many objects, so you should create a custom > manipulator yourself. My concern with a custom manipulator would

Re: How to populate a form with multiple values

2006-03-17 Thread PythonistL
Limodou, Thanks for your reply and your comments. But still I do not know how to transfer data from the shopping cart into a form Can you advise? Thanks L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: How to populate a form with multiple values

2006-03-17 Thread limodou
On 3/17/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On Friday 17 Mar 2006 3:32 pm, PythonistL wrote: > > I have a table that stores a shopping cart. But do you think that > > storing the shopping cart in a dictionary in the session would be > > a better solution? > > yes - then, when all

Re: How to populate a form with multiple values

2006-03-17 Thread Kenneth Gonsalves
On Friday 17 Mar 2006 3:32 pm, PythonistL wrote: > I have a table that stores a shopping cart. But do you think that > storing the shopping cart in a dictionary in the session would be > a better solution? yes - then, when all is done, you can save it into one or more tables. At least that is th

Re: How to populate a form with multiple values

2006-03-17 Thread limodou
On 3/17/06, PythonistL <[EMAIL PROTECTED]> wrote: > > Kenneth, > Thank you for your reply. > I have a table that stores a shopping cart. But do you think that > storing the shopping cart in a dictionary in the session would be a > better solution? > > Thank you for the reply > I think ChangeManip

Re: How to populate a form with multiple values

2006-03-17 Thread PythonistL
Kenneth, Thank you for your reply. I have a table that stores a shopping cart. But do you think that storing the shopping cart in a dictionary in the session would be a better solution? Thank you for the reply --~--~-~--~~~---~--~~ You received this message becau

Re: How to populate a form with multiple values

2006-03-17 Thread limodou
On 3/17/06, PythonistL <[EMAIL PROTECTED]> wrote: > > Limodou, > Thank you for your reply. > And do you have any idea how FormWrapper should be used? > In my shop project I need to provide a feature to a user , when he > does/finish shopping to be able to check all items in his basket.In > other w

Re: How to populate a form with multiple values

2006-03-17 Thread Kenneth Gonsalves
On Friday 17 Mar 2006 2:49 pm, PythonistL wrote: > Item1               Quantity1(input field so that the user can > change that) > Item2               Quantity2(input field so that the user can > change that) > Item3               Quantity3(input field so that the user can > change that) > ... > .

Re: How to populate a form with multiple values

2006-03-17 Thread PythonistL
Limodou, Thank you for your reply. And do you have any idea how FormWrapper should be used? In my shop project I need to provide a feature to a user , when he does/finish shopping to be able to check all items in his basket.In other words, he will see all items he has put into the basket so far. T

Re: How to populate a form with multiple values

2006-03-16 Thread limodou
I think manipulator only deal with validation and saving. If you want to fill the data to the input fields, you should pass the data to FormWrapper. So manipulator isn't data-sensitive, it's FormWrapper do these things. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: ht

Re: How to populate a form with multiple values

2006-03-16 Thread [EMAIL PROTECTED]
Here's my simplified take on L's problem. Maybe someone can offer some advice. Suppose one would like users to edit multiple records on one screen; set a BooleanField for multiple records, say. What would be the best way to go about passing the form fields to the template? One could create a c