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

Jean-Paul Smets jp at nexedi.com
Fri May 16 16:44:21 CEST 2008


hasProperty returns False in 2 cases
	- the property does not exist in the schema defined by propertysheets
	- the property exists in the schema defined by propertysheets but was never defined

Regards,

JPS. 


Mikolaj Antoszkiewicz a écrit :
> 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.
>
> Maybe it's a matter of treating the date properties differently here. 
> But in such a generic class I guess it's not good to test for property's 
> type.
>
> Any ideas?
>
> Mikolaj
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-dev
>   


-- 
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
ERP5 Enterprise: Free / Open Source ERP for Critical Applications
http://www.erp5.com
ERP5 Express: Hosted Open Source ERP for small companies
http://www.myerp5.com
Nexedi: Consulting and Development of Free / Open Source Software 
http://www.nexedi.com




More information about the Erp5-dev mailing list