def createReader(clazz, readername): """Static method to create a reader from a reader clazz. @param clazz: the reader class name @param readername: the reader name """ if not clazz in ReaderFactory.factories: ReaderFactory.factories[clazz] = get_class(clazz).Factory() return ReaderFactory.factories[clazz].create(readername)
def createReader(clazz, readername): """Static method to create a reader from a reader clazz. @param module: the python module that contains the reader class @param clazz: the reader class name @param readername: the reader name """ if not ReaderFactory.factories.has_key(clazz): ReaderFactory.factories[clazz] = get_class(clazz).Factory() return ReaderFactory.factories[clazz].create(readername)