[Erp5-dev] Differnt uid types for Image
Łukasz Nowak
lukasz.nowak at ventis.com.pl
Mon Aug 21 17:47:49 CEST 2006
Hello,
I've added to portal_type Product allowed portal type Image. Then, I had
ability to add images to Products.
Everything went fine, since validation was made on Product.
Error Type: ValidationFailed
Error Value: product_module/2/1,PropertyTypeValidity
inconsistency,104,Attribute uid should be of type long but is of type
<type 'int'>,Type Validity Check Error,;
(Error Value was changed by me, to have full info)
Well, after some test there is something strange.
Eg:
organisation_module/1/1 - its Image portal_type
product_module/2/1 - its also Image portal_type
But:
For type(product_module/1/1.getUid()) is <type 'int'>, and
type(organisation_module/1/1.getUid()) is <type 'long'> (I've made
ExtMeth to got this results. Same result for uid property.)
Why Image portal type have uid type int in Resource and long type in
Organisation? Do I have to change something in Document or PropertySheet
connected with Resource? I haven't seen any special tweaks for
Document/Organisation to have portal_type Image in it...
Bye,
Luke
--
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 392 10 60 int 37 fax: +48 32 392 10 61
https://ssl.ventis.com.pl/keys/lukasz.nowak.pub.asc
``Use the source, Luke...''
More information about the Erp5-dev
mailing list