Commit 74e80a18 authored by Jérome Perrin's avatar Jérome Perrin

fix undefined name

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6857 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9224d7d1
...@@ -15,8 +15,6 @@ from Products.ZSQLCatalog.zsqlbrain import ZSQLBrain ...@@ -15,8 +15,6 @@ from Products.ZSQLCatalog.zsqlbrain import ZSQLBrain
from DateTime import DateTime from DateTime import DateTime
from ZTUtils import make_query from ZTUtils import make_query
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from zLOG import LOG
class InventoryBrain(ZSQLBrain): class InventoryBrain(ZSQLBrain):
""" """
...@@ -271,9 +269,7 @@ class InventoryListBrain(ZSQLBrain): ...@@ -271,9 +269,7 @@ class InventoryListBrain(ZSQLBrain):
else : else :
return N_("${delivery_portal_type} ${delivery_title}", return N_("${delivery_portal_type} ${delivery_title}",
mapping = mapping ) mapping = mapping )
else : return N_('Unknown')
return N_('Unknown')
return explanation_text
class DeliveryListBrain(InventoryListBrain): class DeliveryListBrain(InventoryListBrain):
""" """
...@@ -328,7 +324,6 @@ class DeliveryListBrain(InventoryListBrain): ...@@ -328,7 +324,6 @@ class DeliveryListBrain(InventoryListBrain):
Returns inventory at the date provided by the SQL method Returns inventory at the date provided by the SQL method
""" """
at_date=self.at_date at_date=self.at_date
LOG("At Date",0,str(at_date))
return self.getInventory( return self.getInventory(
at_date=at_date, ignore_variation=0, at_date=at_date, ignore_variation=0,
simulation_state= \ simulation_state= \
......
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