[web2py] Re: Multiple forms grouped as one (django formset equivalent) with jquery plugin allowing clients to add and remove forms on the client-side
Thank you everyone for your help and suggestions. I realize Massimo must have like a million other things in his head right know and I don't hold it against him for not coming up with a recipe for this. :-) Again thank you Massimo for all the hard work you have put in to this great framework. As I mentioned on my first post I was evaluating web2py and Django to select which I would use for my project. I am sorry to say that I went the other way. At first web2py was looking more attractive and easy to learn and much more to my liking. I was convinced I would get things done faster and better than Django, but as I started digging deeper and deeper I realized this would not be the case. The main reasons for choosing Django are: * Better documentation * More mature * and just recently, a heck of a good IDE (PyCharm). [I hated having to write imports in every single file in django, with PyCharm its a bliss. ] Please don't get me wrong I am not trying to start a flame-war or anything. I still like web2py and I will continue to play with it. I even believe it helped me better understand some concepts about web programming in general. Thanks and keep up the good work. On Mar 9, 9:58 am, Tom Atkins minkto...@gmail.com wrote: The SheepIt jQuery plugin looks excellent - thanks for the link. I'll need to make this work with web2py sometime in the next couple of months. Hopefully someone else (not mentioning any names ;-) ) will provide some example code before then! On 9 March 2011 04:18, Dr Schmulge dr.schmu...@gmail.com wrote: Hi, Chris This is a briljant Jquery plugin, to clone form elements dynamically. http://www.mdelrosso.com/sheepit/index.php?lng=en_GBsec=home I hope it's useful to you. Regards, Janis
[web2py] Re: Multiple forms grouped as one (django formset equivalent) with jquery plugin allowing clients to add and remove forms on the client-side
Hello ChrisT, it is possible but I am not sure I have seen a recipe posted for this. I will try write one next week and post it, perhaps sooner. Massimo On Mar 4, 3:30 am, ChrisT christostopou...@gmail.com wrote: Hello everyone, I am in the process of evaluating web2py and django to decide which one I am going to use for a project of mine. I am new to both frameworks and web frameworks in general (although I did experiment with Ruby on Rails a while back) I must say I am learning web2py much faster than Django which has a much steeper learning curve I think. For the past few days however I am trying to figure out the best way to do a (relatively) simple thing with both frameworks that I guess many people did before me. I wanted to have multiple forms grouped as one on a sigle page and a jquery plugin allowing clients to add and remove forms on the client- side. This would be very useful in many situations in my application. One example would be: * Creating an invoice (table invoice with fields such as reference_no , issue_date, customer_name, etc.) with multiple invoice lines (table invoice_line with fields such as description, amount, etc.) So I need to create a single form for the invoice creation and the client must be able to add or remove from the form as many invoice_lines as needed each time. The fact is that I was able to figure the best way to do it in Django would be using formsets:http://docs.djangoproject.com/en/dev/topics/forms/formsets/ and this:http://code.google.com/p/django-dynamic-formset/jQuery pluging I am troubled I didn't find anything similar implemented in web2py, I am sure many people before me did the same thing using both frameworks. I found some pieces of code here and there that enabled me to come close to doing it using web2py but I consider my efforts a hack (and an incomplete one so far :-)) I would like to know your opinions on how this should be done in web2py or how someone already did this. Please forgive my ignorance if I am missing the obvious here as I am new to all this. In fact this is my first post so go easy on me... Regards, ChrisT
[web2py] Re: Multiple forms grouped as one (django formset equivalent) with jquery plugin allowing clients to add and remove forms on the client-side
Wow, a response from the man himself :-) I must admit I was secretly hoping for this and that this is another reason web2py seems like a better choice to me. I have been lurking at discussions for quite some time and I am constantly amazed by the amount of responses you give, always with a friendly tone. A big Thank You Massimo is in order, not just for this, but for everything you have done. For this great present called web2py. ChrisT On Mar 4, 4:42 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Hello ChrisT, it is possible but I am not sure I have seen a recipe posted for this. I will try write one next week and post it, perhaps sooner. Massimo On Mar 4, 3:30 am, ChrisT christostopou...@gmail.com wrote: Hello everyone, I am in the process of evaluating web2py and django to decide which one I am going to use for a project of mine. I am new to both frameworks and web frameworks in general (although I did experiment with Ruby on Rails a while back) I must say I am learning web2py much faster than Django which has a much steeper learning curve I think. For the past few days however I am trying to figure out the best way to do a (relatively) simple thing with both frameworks that I guess many people did before me. I wanted to have multiple forms grouped as one on a sigle page and a jquery plugin allowing clients to add and remove forms on the client- side. This would be very useful in many situations in my application. One example would be: * Creating an invoice (table invoice with fields such as reference_no , issue_date, customer_name, etc.) with multiple invoice lines (table invoice_line with fields such as description, amount, etc.) So I need to create a single form for the invoice creation and the client must be able to add or remove from the form as many invoice_lines as needed each time. The fact is that I was able to figure the best way to do it in Django would be using formsets:http://docs.djangoproject.com/en/dev/topics/forms/formsets/ and this:http://code.google.com/p/django-dynamic-formset/jQuery pluging I am troubled I didn't find anything similar implemented in web2py, I am sure many people before me did the same thing using both frameworks. I found some pieces of code here and there that enabled me to come close to doing it using web2py but I consider my efforts a hack (and an incomplete one so far :-)) I would like to know your opinions on how this should be done in web2py or how someone already did this. Please forgive my ignorance if I am missing the obvious here as I am new to all this. In fact this is my first post so go easy on me... Regards, ChrisT
[web2py] Re: Multiple forms grouped as one (django formset equivalent) with jquery plugin allowing clients to add and remove forms on the client-side
wait I actually do it before you thank me.. ;-) On Mar 4, 11:00 am, ChrisT christostopou...@gmail.com wrote: Wow, a response from the man himself :-) I must admit I was secretly hoping for this and that this is another reason web2py seems like a better choice to me. I have been lurking at discussions for quite some time and I am constantly amazed by the amount of responses you give, always with a friendly tone. A big Thank You Massimo is in order, not just for this, but for everything you have done. For this great present called web2py. ChrisT On Mar 4, 4:42 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Hello ChrisT, it is possible but I am not sure I have seen a recipe posted for this. I will try write one next week and post it, perhaps sooner. Massimo On Mar 4, 3:30 am, ChrisT christostopou...@gmail.com wrote: Hello everyone, I am in the process of evaluating web2py and django to decide which one I am going to use for a project of mine. I am new to both frameworks and web frameworks in general (although I did experiment with Ruby on Rails a while back) I must say I am learning web2py much faster than Django which has a much steeper learning curve I think. For the past few days however I am trying to figure out the best way to do a (relatively) simple thing with both frameworks that I guess many people did before me. I wanted to have multiple forms grouped as one on a sigle page and a jquery plugin allowing clients to add and remove forms on the client- side. This would be very useful in many situations in my application. One example would be: * Creating an invoice (table invoice with fields such as reference_no , issue_date, customer_name, etc.) with multiple invoice lines (table invoice_line with fields such as description, amount, etc.) So I need to create a single form for the invoice creation and the client must be able to add or remove from the form as many invoice_lines as needed each time. The fact is that I was able to figure the best way to do it in Django would be using formsets:http://docs.djangoproject.com/en/dev/topics/forms/formsets/ and this:http://code.google.com/p/django-dynamic-formset/jQuery pluging I am troubled I didn't find anything similar implemented in web2py, I am sure many people before me did the same thing using both frameworks. I found some pieces of code here and there that enabled me to come close to doing it using web2py but I consider my efforts a hack (and an incomplete one so far :-)) I would like to know your opinions on how this should be done in web2py or how someone already did this. Please forgive my ignorance if I am missing the obvious here as I am new to all this. In fact this is my first post so go easy on me... Regards, ChrisT