def build_standard_config(module, doctype_info):
 if (not frappe.db.get_value(u'Module Def', module)):
  frappe.throw(_(u'Module Not Found'))
 data = []
 add_section(data, _(u'Documents'), u'fa fa-star', [d for d in doctype_info if (d.document_type in (u'Document', u'Transaction'))])
 add_section(data, _(u'Setup'), u'fa fa-cog', [d for d in doctype_info if (d.document_type in (u'Master', u'Setup', u''))])
 add_section(data, _(u'Standard Reports'), u'fa fa-list', get_report_list(module, is_standard=u'Yes'))
 return data

def build_standard_config ( module , doctype_info ) : if ( not frappe . db . get_value ( u'Module Def' , module ) ) : frappe . throw ( _ ( u'Module Not Found' ) ) data = [ ] add_section ( data , _ ( u'Documents' ) , u'fa fa-star' , [ d for d in doctype_info if ( d . document_type in ( u'Document' , u'Transaction' ) ) ] ) add_section ( data , _ ( u'Setup' ) , u'fa fa-cog' , [ d for d in doctype_info if ( d . document_type in ( u'Master' , u'Setup' , u'' ) ) ] ) add_section ( data , _ ( u'Standard Reports' ) , u'fa fa-list' , get_report_list ( module , is_standard = u'Yes' ) ) return data
build standard module data from doctypes .