[Erp5-dev] Silent portal_catalog, when incorrect invocation happens

Łukasz Nowak lukasz.nowak at ventis.com.pl
Thu Dec 28 14:12:21 CET 2006


Hello,

I'd like to share with my experince on portal_catalog - maybe someone 
else will have same problem.

I've made script, which was selecting portal_type='Simulation Movement' 
from catalog. It was working with superuser (eg. that one, which created 
site). But for normal user it was returning nothing - and logs were 
silent. Script looks like:

context.portal_catalog(portal_type='Simulation Movement',)

Well, it is invoked in context of Sale Packing List, so I'm able to 
narrow search by giving him delivery_uids, like this:

context.portal_catalog(portal_type='Simluation 
Movement',delivery_uid=[list of uids of deliveries])

It was my fault, I know. I did not listen to Yoshinori to do it right away.

But please tell me: Why in such situation system is silent? No info 
about missed search...

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