@click.command(u'export-csv')
@click.argument(u'doctype')
@click.argument(u'path')
@pass_context
def export_csv(context, doctype, path):
 from frappe.core.page.data_import_tool import data_import_tool
 for site in context.sites:
  try:
   frappe.init(site=site)
   frappe.connect()
   data_import_tool.export_csv(doctype, path)
  finally:
   frappe.destroy()

@ click . command ( u'export-csv' ) @ click . argument ( u'doctype' ) @ click . argument ( u'path' ) @ pass_context def export_csv ( context , doctype , path ) : from frappe . core . page . data_import_tool import data_import_tool for site in context . sites : try : frappe . init ( site = site ) frappe . connect ( ) data_import_tool . export_csv ( doctype , path ) finally : frappe . destroy ( )
export data import template with data for doctype .