From a3ac177b50b270348f45c01fa51712bb68f8ca87 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 6 Feb 2006 10:43:00 +0000
Subject: [PATCH] wrap to 80 chars

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5571 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Delivery.py | 42 ++++++++++++++++++++-----------
 1 file changed, 27 insertions(+), 15 deletions(-)

diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py
index d5dc438938..0805dd0157 100755
--- a/product/ERP5/Document/Delivery.py
+++ b/product/ERP5/Document/Delivery.py
@@ -156,18 +156,21 @@ class Delivery(XMLObject):
       aggregate = self.Delivery_zGetTotal(**kw)[0]
       return aggregate.total_quantity or 0
 
-    security.declareProtected(Permissions.AccessContentsInformation, 'getDeliveryUid')
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'getDeliveryUid')
     def getDeliveryUid(self):
       return self.getUid()
 
-    security.declareProtected(Permissions.AccessContentsInformation, 'getDeliveryValue')
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'getDeliveryValue')
     def getDeliveryValue(self):
       """
       Deprecated, we should use getRootDeliveryValue instead
       """
       return self
 
-    security.declareProtected(Permissions.AccessContentsInformation, 'getRootDeliveryValue')
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'getRootDeliveryValue')
     def getRootDeliveryValue(self):
       """
       This method returns the delivery, it is usefull to retrieve the delivery
@@ -175,7 +178,8 @@ class Delivery(XMLObject):
       """
       return self
 
-    security.declareProtected(Permissions.AccessContentsInformation, 'getDelivery')
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'getDelivery')
     def getDelivery(self):
       return self.getRelativeUrl()
 
@@ -196,48 +200,56 @@ class Delivery(XMLObject):
           movement_list.append(m)
       return movement_list
 
-    security.declareProtected(Permissions.AccessContentsInformation, 'getSimulatedMovementList')
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'getSimulatedMovementList')
     def getSimulatedMovementList(self):
       """
         Return a list of simulated movements.
         This does not contain Container Line or Container Cell.
       """
-      return self.getMovementList(portal_type=self.getPortalSimulatedMovementTypeList())
+      return self.getMovementList(portal_type=
+                          self.getPortalSimulatedMovementTypeList())
 
-    security.declareProtected(Permissions.AccessContentsInformation, 'getInvoiceMovementList')
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'getInvoiceMovementList')
     def getInvoiceMovementList(self):
       """
         Return a list of simulated movements.
         This does not contain Container Line or Container Cell.
       """
-      return self.getMovementList(portal_type=self.getPortalInvoiceMovementTypeList())
+      return self.getMovementList(portal_type=
+                            self.getPortalInvoiceMovementTypeList())
 
-    security.declareProtected(Permissions.AccessContentsInformation, 'getContainerList')
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'getContainerList')
     def getContainerList(self):
       """
         Return a list of root containers.
         This does not contain sub-containers.
       """
       container_list = []
-      for m in self.contentValues(filter={'portal_type': self.getPortalContainerTypeList()}):
+      for m in self.contentValues(filter={'portal_type':
+                                  self.getPortalContainerTypeList()}):
         container_list.append(m)
       return container_list
 
     def applyToDeliveryRelatedMovement(self, portal_type='Simulation Movement',
         method_id = 'expand',**kw):
       for my_simulation_movement in self.getDeliveryRelatedValueList(
-                                                portal_type = 'Simulation Movement'):
+                                      portal_type = 'Simulation Movement'):
           # And apply
           getattr(my_simulation_movement.getObject(), method_id)(**kw)
-      for m in self.contentValues(filter={'portal_type': self.getPortalMovementTypeList()}):
+      for m in self.contentValues(filter={'portal_type':
+                                      self.getPortalMovementTypeList()}):
         # Find related in simulation
         for my_simulation_movement in m.getDeliveryRelatedValueList(
-                                                portal_type = 'Simulation Movement'):
+                                  portal_type = 'Simulation Movement'):
           # And apply
           getattr(my_simulation_movement.getObject(), method_id)(**kw)
-        for c in m.contentValues(filter={'portal_type': self.getPortalMovementTypeList()}):
+        for c in m.contentValues(filter={'portal_type':
+                                        self.getPortalMovementTypeList()}):
           for my_simulation_movement in c.getDeliveryRelatedValueList(
-                                                portal_type = 'Simulation Movement'):
+                                  portal_type = 'Simulation Movement'):
             # And apply
             getattr(my_simulation_movement.getObject(), method_id)(**kw)
 
-- 
2.30.9