[Erp5-dev] Problems with customization of portal deliveries
Yoshinori Okuji
yo at nexedi.com
Thu Nov 30 14:04:44 CET 2006
BTW, your SalePackingList_setCausalityListBySimulation is not good:
# now get all SM related for ML for this SPL
sm = [r.getObject() for r in context.portal_catalog(portal_type='Simulation
Movement',)]
selm = []
for s in sm:
if s.getDelivery() in mu:
selm.append(s)
This requires that Zope reads all Simulation Movements in the system, and it
will crash some day when the number of such movements exceeds a limit. What
you should do here is to ask portal_catalog to obtain only relevant
simulation movements by specifying, for example, delivery uids.
YO
--
Yoshinori Okuji, Nexedi CTO
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Full Featured High End Open Source ERP
http://www.erp5.com
ERP5 Wiki: Developer Zone for ERP5 Community
http://www.erp5.org
More information about the Erp5-dev
mailing list