'build map of special doctype properties'

def build_doctype_map(self):

    self.doctype_map = {}
    for r in frappe.db.sql(u'select    name,    in_create,    issingle,    istable,\n DCTB  DCTB  DCTB read_only,    module    from    tabDocType', as_dict=1):
        self.doctype_map[r[u'name']] = r
