On 8/23/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > Thoughts/comments/suggestions on Joseph's plan below, and on Brant's > plan in Trac?
I think Brant's rocking the sexiness; the concept of validation behaving as a try/except block feels nice to me. And bidding good-bye to 'if errors', FormWrapper and friends will be a huge win. The exact details could use a little fine-tuning, though; a couple things in particular jump out at me: 1. I'm not sure I like the idea of manipulators having a 'process' method which does everything; it would feel more natural to just try 'manipulator.save()', have that save if all is well, and catch any validation errors. 2. Since we're already striving hard to get rid of 'get_absolute_url' I'm not sure how I feel about introducing a 'get_update_url'. 3. Doing 'manipulator.process(request)' is probably unacceptable, since there are tons of common use cases where you'll want to fiddle with the soon-to-be-validated data before you let the manipulator get involved. I can live with 'new_data' in this case. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---