[Erp5-report] r28728 - /erp5/trunk/products/ERP5/Document/BusinessPath.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 1 17:06:52 CEST 2009
Author: jerome
Date: Tue Sep 1 17:06:50 2009
New Revision: 28728
URL: http://svn.erp5.org?rev=28728&view=rev
Log:
minor update to docstring and fix some typos
Modified:
erp5/trunk/products/ERP5/Document/BusinessPath.py
Modified: erp5/trunk/products/ERP5/Document/BusinessPath.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessPath.py?rev=28728&r1=28727&r2=28728&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessPath.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessPath.py [utf8] Tue Sep 1 17:06:50 2009
@@ -7,10 +7,10 @@
# Łukasz Nowak <luke at nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
+# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
+# guarantees and support are strongly advised to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
@@ -43,15 +43,16 @@
process.
BusinessPath are also used as helper to build deliveries from
- buildable movements. Here is the typical code of an alarm
- in charge of the building process.
-
+ buildable movements.
+
The idea is to invoke isBuildable() on the collected simulation
movements (which are orphan) during build "after select" process
- builder = portal_deliveries.default_order_builder
- for path in builder.getSpecialiseRelatedValueList() # or wharever category
- builder.build(causality_uid=path.getUid(),) # Select movemenents
+ Here is the typical code of an alarm in charge of the building process::
+
+ builder = portal_deliveries.a_delivery_builder
+ for business_path in builder.getDeliveryBuilderRelatedValueList():
+ builder.build(causality_uid=business_path.getUid(),) # Select movements
Pros: global select is possible by not providing a causality_uid
Cons: global select retrieves long lists of orphan movements which
@@ -115,7 +116,7 @@
'destination_administration', 'destination_project', 'destination_function',
'destination_payment', 'destination_account')
- # ICategoryAccessProvider overriden methods
+ # ICategoryAccessProvider overridden methods
def _getCategoryMembershipList(self, category, **kw):
"""
Overridden in order to take into account dynamic arrow categories in case if no static
@@ -146,8 +147,9 @@
result = dynamic_category_list
return result
- def _filterCategoryList(self, category_list, category, spec=(), filter=None, portal_type=(), base=0,
- keep_default=1, checked_permission=None):
+ def _filterCategoryList(self, category_list, category, spec=(),
+ filter=None, portal_type=(), base=0,
+ keep_default=1, checked_permission=None):
"""
XXX - implementation missing
TBD - look at CategoryTool._buildFilter for inspiration
@@ -492,3 +494,4 @@
return predecessor_expected_date
else:
return successor_expected_date
+
More information about the Erp5-report
mailing list