Class s.i.p.ProductImporter(CSVImporter):

Part of stoqlib.importers.productimporter View In Hierarchy

Undocumented
Method __init__ Create a new CSVImporter object.
Method _get_or_create Undocumented
Method process_one Processes one line in a csv file, you can access the columns

Inherited from CSVImporter:

Method feed_file Feeds csv data from filename to the importer
Method feed Feeds csv data from an iterable
Method parse_date Undocumented
Method parse_multi Undocumented
Method set_lines_per_commit Sets the number of lines which should be parsed between commits.
Method set_dry Tells the CSVImporter to run in dry mode, eg without committing
Class Method get_by_type Gets an importers class, instantiates it returns it
Method read This can be overridden by as subclass which wishes to specialize
Method before_start This is called before all the lines are parsed but
Method when_done This is called after all the lines are parsed but
def __init__(self):
Create a new CSVImporter object.
Parameterslinessee set_lines_per_commit
drysee set_dry
def _get_or_create(self, table, trans, **attributes):
Undocumented
def process_one(self, data, fields, trans):
Processes one line in a csv file, you can access the columns using attributes on the data object.
Parametersrowobject representing a row in the input
fieldsa list of fields set in data
transa database transaction
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.