[POS-commit] r6361 - stoqlib/trunk/stoqlib/importers

Johan Dahlin jdahlin at async.com.br
Thu Apr 12 10:50:37 BRT 2007


Author: jdahlin
Date: Thu Apr 12 10:50:37 2007
New Revision: 6361

Modified:
   stoqlib/trunk/stoqlib/importers/clientimporter.py
   stoqlib/trunk/stoqlib/importers/csvimporter.py
   stoqlib/trunk/stoqlib/importers/employeeimporter.py
   stoqlib/trunk/stoqlib/importers/productimporter.py
   stoqlib/trunk/stoqlib/importers/serviceimporter.py
   stoqlib/trunk/stoqlib/importers/supplierimporter.py
   stoqlib/trunk/stoqlib/importers/transporterimporter.py

Log:
Remove empty constructor overrides and call the parent constructor now when it does something interesting

Modified: stoqlib/trunk/stoqlib/importers/clientimporter.py
==============================================================================
--- stoqlib/trunk/stoqlib/importers/clientimporter.py	(original)
+++ stoqlib/trunk/stoqlib/importers/clientimporter.py	Thu Apr 12 10:50:37 2007
@@ -42,9 +42,6 @@
               'street_number',
               'district']
 
-    def __init__(self):
-        pass
-
     def process_one(self, data, fields, trans):
         person = Person(
             connection=trans,

Modified: stoqlib/trunk/stoqlib/importers/csvimporter.py
==============================================================================
--- stoqlib/trunk/stoqlib/importers/csvimporter.py	(original)
+++ stoqlib/trunk/stoqlib/importers/csvimporter.py	Thu Apr 12 10:50:37 2007
@@ -26,6 +26,7 @@
 """
 CSV import classes
 """
+
 import csv
 import datetime
 import time

Modified: stoqlib/trunk/stoqlib/importers/employeeimporter.py
==============================================================================
--- stoqlib/trunk/stoqlib/importers/employeeimporter.py	(original)
+++ stoqlib/trunk/stoqlib/importers/employeeimporter.py	Thu Apr 12 10:50:37 2007
@@ -51,9 +51,6 @@
               'username',
               'password']
 
-    def __init__(self):
-        pass
-
     def process_one(self, data, fields, trans):
         person = Person(
             connection=trans,

Modified: stoqlib/trunk/stoqlib/importers/productimporter.py
==============================================================================
--- stoqlib/trunk/stoqlib/importers/productimporter.py	(original)
+++ stoqlib/trunk/stoqlib/importers/productimporter.py	Thu Apr 12 10:50:37 2007
@@ -52,6 +52,7 @@
         ]
 
     def __init__(self):
+        super(ProductImporter, self).__init__()
         conn = get_connection()
         suppliers = Person.iselect(ISupplier, connection=conn)
         if not suppliers.count():

Modified: stoqlib/trunk/stoqlib/importers/serviceimporter.py
==============================================================================
--- stoqlib/trunk/stoqlib/importers/serviceimporter.py	(original)
+++ stoqlib/trunk/stoqlib/importers/serviceimporter.py	Thu Apr 12 10:50:37 2007
@@ -39,6 +39,7 @@
               ]
 
     def __init__(self):
+        super(ServiceImporter, self).__init__()
         conn = get_connection()
         self.tax_constant = SellableTaxConstant.get_by_type(
             TaxType.SERVICE, conn)

Modified: stoqlib/trunk/stoqlib/importers/supplierimporter.py
==============================================================================
--- stoqlib/trunk/stoqlib/importers/supplierimporter.py	(original)
+++ stoqlib/trunk/stoqlib/importers/supplierimporter.py	Thu Apr 12 10:50:37 2007
@@ -42,9 +42,6 @@
               'street_number',
               'district']
 
-    def __init__(self):
-        pass
-
     def process_one(self, data, fields, trans):
         person = Person(
             connection=trans,

Modified: stoqlib/trunk/stoqlib/importers/transporterimporter.py
==============================================================================
--- stoqlib/trunk/stoqlib/importers/transporterimporter.py	(original)
+++ stoqlib/trunk/stoqlib/importers/transporterimporter.py	Thu Apr 12 10:50:37 2007
@@ -44,9 +44,6 @@
               'open_contract',
               'freight_percentage']
 
-    def __init__(self):
-        pass
-
     def process_one(self, data, fields, trans):
         person = Person(
             connection=trans,


More information about the POS-commit mailing list