[Erp5-dev] date/time properites' constraint check

Mikolaj Antoszkiewicz mikolaj at erp5.pl
Fri May 16 12:28:54 CEST 2008



Mikolaj Antoszkiewicz wrote:
> Hello,
> 
> When using PropertyExistence constraint class I noticed that when date 
> properties fail the constraint check it always returns the 
> 'message_no_such_property' type of message.
> 
> It looks like that, because hasProperty tester always returns False, if 
> the date/time property is unset, just like it was non-existent property.

What I somehow missed in the last post is that all other properties 
behave similarly.
But for them the attached patch solves the problem (typo corrections 
included)
- instead of hasProperty, I propose using getProperty with additional 
parameter.

Mikolaj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PropertyExistence.py.patch
Type: text/x-patch
Size: 1245 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080516/bda6e0a6/attachment.bin>


More information about the Erp5-dev mailing list