[code lang="python"] def importCls(self,model,action,params): obj = __import_(model) entrance = getattr(obj,action) if params == '': entrance() else: entrance(params) [/code]