<s> from oscar . core . loading import get_class , get_classes <EOL> OrderReportGenerator = get_class ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> ProductReportGenerator , UserReportGenerator = get_classes ( '<STR_LIT>' , [ '<STR_LIT>' , <EOL> '<STR_LIT>' ] ) <EOL> OpenBasketReportGenerator , SubmittedBasketReportGenerator = get_classes ( '<STR_LIT>' , [ '<STR_LIT>' , <EOL> '<STR_LIT>' ] ) <EOL> OfferReportGenerator = get_class ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> VoucherReportGenerator = get_class ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> class GeneratorRepository ( object ) : <EOL> generators = [ OrderReportGenerator , <EOL> ProductReportGenerator , <EOL> UserReportGenerator , <EOL> OpenBasketReportGenerator , <EOL> SubmittedBasketReportGenerator , <EOL> VoucherReportGenerator , <EOL> OfferReportGenerator ] <EOL> def get_report_generators ( self ) : <EOL> return self . generators <EOL> def get_generator ( self , code ) : <EOL> for generator in self . generators : <EOL> if generator . code == code : <EOL> return generator <EOL> return None </s>
