Commit 3a7d7880 authored by Jérome Perrin's avatar Jérome Perrin

minor update to docstring and fix some typos


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28728 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c115a559
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
# Łukasz Nowak <luke@nexedi.com> # Łukasz Nowak <luke@nexedi.com>
# #
# WARNING: This program as such is intended to be used by professional # 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 # consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial # 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 # Service Company
# #
# This program is Free Software; you can redistribute it and/or # This program is Free Software; you can redistribute it and/or
...@@ -43,15 +43,16 @@ class BusinessPath(Path): ...@@ -43,15 +43,16 @@ class BusinessPath(Path):
process. process.
BusinessPath are also used as helper to build deliveries from BusinessPath are also used as helper to build deliveries from
buildable movements. Here is the typical code of an alarm buildable movements.
in charge of the building process.
The idea is to invoke isBuildable() on the collected simulation The idea is to invoke isBuildable() on the collected simulation
movements (which are orphan) during build "after select" process movements (which are orphan) during build "after select" process
builder = portal_deliveries.default_order_builder Here is the typical code of an alarm in charge of the building process::
for path in builder.getSpecialiseRelatedValueList() # or wharever category
builder.build(causality_uid=path.getUid(),) # Select movemenents 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 Pros: global select is possible by not providing a causality_uid
Cons: global select retrieves long lists of orphan movements which Cons: global select retrieves long lists of orphan movements which
...@@ -115,7 +116,7 @@ class BusinessPath(Path): ...@@ -115,7 +116,7 @@ class BusinessPath(Path):
'destination_administration', 'destination_project', 'destination_function', 'destination_administration', 'destination_project', 'destination_function',
'destination_payment', 'destination_account') 'destination_payment', 'destination_account')
# ICategoryAccessProvider overriden methods # ICategoryAccessProvider overridden methods
def _getCategoryMembershipList(self, category, **kw): def _getCategoryMembershipList(self, category, **kw):
""" """
Overridden in order to take into account dynamic arrow categories in case if no static Overridden in order to take into account dynamic arrow categories in case if no static
...@@ -146,7 +147,8 @@ class BusinessPath(Path): ...@@ -146,7 +147,8 @@ class BusinessPath(Path):
result = dynamic_category_list result = dynamic_category_list
return result return result
def _filterCategoryList(self, category_list, category, spec=(), filter=None, portal_type=(), base=0, def _filterCategoryList(self, category_list, category, spec=(),
filter=None, portal_type=(), base=0,
keep_default=1, checked_permission=None): keep_default=1, checked_permission=None):
""" """
XXX - implementation missing XXX - implementation missing
...@@ -492,3 +494,4 @@ class BusinessPath(Path): ...@@ -492,3 +494,4 @@ class BusinessPath(Path):
return predecessor_expected_date return predecessor_expected_date
else: else:
return successor_expected_date return successor_expected_date
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment