Discussion:
[Erp5-dev] Silent portal_catalog, when incorrect invocation happens
Łukasz Nowak
2006-12-28 13:12:21 UTC
Permalink
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...''
Łukasz Nowak
2006-12-29 09:24:23 UTC
Permalink
Hi,
Post by Łukasz Nowak
Hello,
I'd like to share with my experince on portal_catalog - maybe someone
else will have same problem.
(...)
Ignore it, it was my fault. As always.

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...''
Loading...