Łukasz Nowak
2007-01-16 16:18:30 UTC
Hello,
I was doing some conversion in my ERP5 site. Many scripts looks like:
for o in [x.getObject() for x in \
context.portal_catalog(portal_type=pt)]:
o.activate().something()
I know, that catalog results are cut to 1000 objects. Well, there are my
questions:
- how to know from script, that data result is cut to 1000, is any
exception raised somewhere?
- are there any guides to write generic conversion scripts, which
shall be invoked on objects, for example to create window of 500 objects
and then move this window to next 500 and so on until end of object list?
Thanks,
Luke
I was doing some conversion in my ERP5 site. Many scripts looks like:
for o in [x.getObject() for x in \
context.portal_catalog(portal_type=pt)]:
o.activate().something()
I know, that catalog results are cut to 1000 objects. Well, there are my
questions:
- how to know from script, that data result is cut to 1000, is any
exception raised somewhere?
- are there any guides to write generic conversion scripts, which
shall be invoked on objects, for example to create window of 500 objects
and then move this window to next 500 and so on until end of object list?
Thanks,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''