def load_doctype_module(doctype, module=None, prefix=u'', suffix=u''):
 if (not module):
  module = get_doctype_module(doctype)
 app = get_module_app(module)
 key = (app, doctype, prefix, suffix)
 module_name = get_module_name(doctype, module, prefix, suffix)
 try:
  if (key not in doctype_python_modules):
   doctype_python_modules[key] = frappe.get_module(module_name)
 except ImportError:
  raise ImportError, u'Module import failed for {0} ({1})'.format(doctype, module_name)
 return doctype_python_modules[key]

def load_doctype_module ( doctype , module = None , prefix = u'' , suffix = u'' ) : if ( not module ) : module = get_doctype_module ( doctype ) app = get_module_app ( module ) key = ( app , doctype , prefix , suffix ) module_name = get_module_name ( doctype , module , prefix , suffix ) try : if ( key not in doctype_python_modules ) : doctype_python_modules [ key ] = frappe . get_module ( module_name ) except ImportError : raise ImportError , u'Module import failed for {0} ({1})' . format ( doctype , module_name ) return doctype_python_modules [ key ]
returns the module object for given doctype .