[Erp5-report] r14261 - /erp5/trunk/products/ERP5SyncML/Conduit/BaobabConduit.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 26 23:21:21 CEST 2007


Author: vincent
Date: Thu Apr 26 23:21:19 2007
New Revision: 14261

URL: http://svn.erp5.org?rev=14261&view=rev
Log:
Use inventory_date value as inventory start date.
Comment out some very verbose logs.

Modified:
    erp5/trunk/products/ERP5SyncML/Conduit/BaobabConduit.py

Modified: erp5/trunk/products/ERP5SyncML/Conduit/BaobabConduit.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/Conduit/BaobabConduit.py?rev=14261&r1=14260&r2=14261&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Conduit/BaobabConduit.py (original)
+++ erp5/trunk/products/ERP5SyncML/Conduit/BaobabConduit.py Thu Apr 26 23:21:19 2007
@@ -175,6 +175,10 @@
       }],
     'inventory_title': [{
         'erp5_property': 'title'
+      , 'conditions'   : {'erp5_portal_type':'Cash Inventory Group'}
+      }],
+    'inventory_date': [{
+        'erp5_property': 'start_date'
       , 'conditions'   : {'erp5_portal_type':'Cash Inventory Group'}
       }],
     'title': [{
@@ -665,10 +669,10 @@
         # before editing an object. This is used when there is no simple
         # equivalent between sql table and ERP5.
         method_id = "edit%s%s" % (kw['type'].replace(' ', ''), convertToUpperCase(k))
-        LOG( 'BaobabConduit:'
-           , 0
-           , "try to call conduit method %s on %s" % (repr(method_id), repr(object))
-           )
+        #LOG( 'BaobabConduit:'
+        #   , 0
+        #   , "try to call conduit method %s on %s" % (repr(method_id), repr(object))
+        #   )
         if v not in ('', None):
           if hasattr(self, method_id):
             # get the method itself
@@ -676,11 +680,11 @@
             # This call the method, this exactly the same thing
             # as calling directly : self.editClientNatureEconomique(object,v)
             method(object, v)
-          else:
-            LOG( 'BaobabConduit:'
-               , 100
-               , "there is no method to handle <%s>%s</%s> data" % (k,repr(v),k)
-               )
+          #else:
+          #  LOG( 'BaobabConduit:'
+          #     , 100
+          #     , "there is no method to handle <%s>%s</%s> data" % (k,repr(v),k)
+          #     )
 
 
     if object.getPortalType() == 'Bank Account':




More information about the Erp5-report mailing list