On Sep 12, 2005, at 9:32 AM, Sokolov Yura wrote:
YES. When you use only object_list and object_detail generics there no
problems. But it does not conform DRY principe.
Huh? The entire point of generics is DRY... I'm not sure I follow.
I wish to use create_object, update_object and delete_object generics.
And I wish write one simple (or complex) validator (or generator of
validators), which I could use with many tables, which has different
name of 'value' field. And I wish not to write many 'vote' procedures.
Am I wishing too much?
(Yes, I'm wishing too much. But I think I'm not alone in wishing this
functionality. And I need just a place to place my code. One
definitive
place.)
Now I'm a little lost... you want to validate that no two objects
have the same "value" and the same time interval, is that right? In
that case, the "one definitive place" to put that functionality is in
the object's validators.
Or am I missing something?
Jacob