Class s.i.s.SaleImporter(CSVImporter):

Part of stoqlib.importers.saleimporter View In Hierarchy

Undocumented
Method process_one Processes one line in a csv file, you can access the columns
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

Inherited from CSVImporter:

Method __init__ Create a new CSVImporter object.
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
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
def before_start(self, trans):
This is called before all the lines are parsed but after creating a transaction.
def when_done(self, trans):
This is called after all the lines are parsed but before committing.
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.