def get_domain(domain):
 data = {u'Manufacturing': {u'desktop_icons': [u'Item', u'BOM', u'Customer', u'Supplier', u'Sales Order', u'Production Order', u'Stock Entry', u'Purchase Order', u'Task', u'Buying', u'Selling', u'Accounts', u'HR', u'ToDo'], u'remove_roles': [u'Academics User'], u'properties': [{u'doctype': u'Item', u'fieldname': u'manufacturing', u'property': u'collapsible_depends_on', u'value': u'is_stock_item'}], u'set_value': [[u'Stock Settings', None, u'show_barcode_field', 1]], u'default_portal_role': u'Customer'}, u'Retail': {u'desktop_icons': [u'POS', u'Item', u'Customer', u'Sales Invoice', u'Purchase Order', u'Warranty Claim', u'Accounts', u'Buying', u'ToDo'], u'remove_roles': [u'Manufacturing User', u'Manufacturing Manager', u'Academics User'], u'properties': [{u'doctype': u'Item', u'fieldname': u'manufacturing', u'property': u'hidden', u'value': 1}, {u'doctype': u'Customer', u'fieldname': u'credit_limit_section', u'property': u'hidden', u'value': 1}], u'set_value': [[u'Stock Settings', None, u'show_barcode_field', 1]], u'default_portal_role': u'Customer'}, u'Distribution': {u'desktop_icons': [u'Item', u'Customer', u'Supplier', u'Lead', u'Sales Order', u'Sales Invoice', u'CRM', u'Selling', u'Buying', u'Stock', u'Accounts', u'HR', u'ToDo'], u'remove_roles': [u'Manufacturing User', u'Manufacturing Manager', u'Academics User'], u'set_value': [[u'Stock Settings', None, u'show_barcode_field', 1]], u'default_portal_role': u'Customer'}, u'Services': {u'desktop_icons': [u'Project', u'Timesheet', u'Customer', u'Sales Order', u'Sales Invoice', u'Lead', u'Opportunity', u'Expense Claim', u'Employee', u'HR', u'ToDo'], u'remove_roles': [u'Manufacturing User', u'Manufacturing Manager', u'Academics User'], u'properties': [{u'doctype': u'Item', u'fieldname': u'is_stock_item', u'property': u'default', u'value': 0}], u'set_value': [[u'Stock Settings', None, u'show_barcode_field', 0]], u'default_portal_role': u'Customer'}, u'Education': {u'desktop_icons': [u'Student', u'Program', u'Course', u'Student Group', u'Instructor', u'Fees', u'ToDo', u'Schools'], u'allow_roles': [u'Academics User', u'Accounts User', u'Accounts Manager', u'Item Manager', u'Website Manager', u'HR User', u'HR Manager', u'Purchase User', u'Purchase Manager', u'Student'], u'default_portal_role': u'Student'}}
 if (not (domain in data)):
  raise u'Invalid Domain {0}'.format(domain)
 return frappe._dict(data[domain])

def get_domain ( domain ) : data = { u'Manufacturing' : { u'desktop_icons' : [ u'Item' , u'BOM' , u'Customer' , u'Supplier' , u'Sales Order' , u'Production Order' , u'Stock Entry' , u'Purchase Order' , u'Task' , u'Buying' , u'Selling' , u'Accounts' , u'HR' , u'ToDo' ] , u'remove_roles' : [ u'Academics User' ] , u'properties' : [ { u'doctype' : u'Item' , u'fieldname' : u'manufacturing' , u'property' : u'collapsible_depends_on' , u'value' : u'is_stock_item' } ] , u'set_value' : [ [ u'Stock Settings' , None , u'show_barcode_field' , 1 ] ] , u'default_portal_role' : u'Customer' } , u'Retail' : { u'desktop_icons' : [ u'POS' , u'Item' , u'Customer' , u'Sales Invoice' , u'Purchase Order' , u'Warranty Claim' , u'Accounts' , u'Buying' , u'ToDo' ] , u'remove_roles' : [ u'Manufacturing User' , u'Manufacturing Manager' , u'Academics User' ] , u'properties' : [ { u'doctype' : u'Item' , u'fieldname' : u'manufacturing' , u'property' : u'hidden' , u'value' : 1 } , { u'doctype' : u'Customer' , u'fieldname' : u'credit_limit_section' , u'property' : u'hidden' , u'value' : 1 } ] , u'set_value' : [ [ u'Stock Settings' , None , u'show_barcode_field' , 1 ] ] , u'default_portal_role' : u'Customer' } , u'Distribution' : { u'desktop_icons' : [ u'Item' , u'Customer' , u'Supplier' , u'Lead' , u'Sales Order' , u'Sales Invoice' , u'CRM' , u'Selling' , u'Buying' , u'Stock' , u'Accounts' , u'HR' , u'ToDo' ] , u'remove_roles' : [ u'Manufacturing User' , u'Manufacturing Manager' , u'Academics User' ] , u'set_value' : [ [ u'Stock Settings' , None , u'show_barcode_field' , 1 ] ] , u'default_portal_role' : u'Customer' } , u'Services' : { u'desktop_icons' : [ u'Project' , u'Timesheet' , u'Customer' , u'Sales Order' , u'Sales Invoice' , u'Lead' , u'Opportunity' , u'Expense Claim' , u'Employee' , u'HR' , u'ToDo' ] , u'remove_roles' : [ u'Manufacturing User' , u'Manufacturing Manager' , u'Academics User' ] , u'properties' : [ { u'doctype' : u'Item' , u'fieldname' : u'is_stock_item' , u'property' : u'default' , u'value' : 0 } ] , u'set_value' : [ [ u'Stock Settings' , None , u'show_barcode_field' , 0 ] ] , u'default_portal_role' : u'Customer' } , u'Education' : { u'desktop_icons' : [ u'Student' , u'Program' , u'Course' , u'Student Group' , u'Instructor' , u'Fees' , u'ToDo' , u'Schools' ] , u'allow_roles' : [ u'Academics User' , u'Accounts User' , u'Accounts Manager' , u'Item Manager' , u'Website Manager' , u'HR User' , u'HR Manager' , u'Purchase User' , u'Purchase Manager' , u'Student' ] , u'default_portal_role' : u'Student' } } if ( not ( domain in data ) ) : raise u'Invalid Domain {0}' . format ( domain ) return frappe . _dict ( data [ domain ] )
returns the domain on the current subreddit .