get_list( this.value_eq=other.value, this.time_from_lt=other.time_to, this.time_to_gt=other.time_from) ?
On 9/12/05, Sokolov Yura <[EMAIL PROTECTED]> wrote:
I have following (repeating) table structure:
value=meta.TextField() (for example)
time_from=meta.DateTimeField()
time_to=meta.DateTimeField()
How can I make a validator (called at object change or addition by
generic views)
to check that there isn't any other object, having:
this.value=other.value and this.time_from<other.time_to and
this.time_to>other.time_from
(they hav the same value and overlapping time intervals)
?