def configure_display(self, data, kwargs=None, write=False):
if settings.format != '<STR_LIT>':<EOL><INDENT>return  <EOL><DEDENT>if write:<EOL><INDENT>obj, obj_type, res, res_type = self.obj_res(kwargs)<EOL>data['<STR_LIT:type>'] = kwargs['<STR_LIT:type>']<EOL>data[obj_type] = obj<EOL>data[res_type] = res<EOL>self.set_display_columns(<EOL>set_false=['<STR_LIT>' if obj_type == '<STR_LIT:user>' else '<STR_LIT:user>'],<EOL>set_true=['<STR_LIT>' if res_type == '<STR_LIT>' else res_type])<EOL><DEDENT>else:<EOL><INDENT>self.set_display_columns(<EOL>set_false=['<STR_LIT:user>', '<STR_LIT>'],<EOL>set_true=['<STR_LIT>', '<STR_LIT>'])<EOL>if '<STR_LIT>' in data:<EOL><INDENT>for i in range(len(data['<STR_LIT>'])):<EOL><INDENT>self.populate_resource_columns(data['<STR_LIT>'][i])<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.populate_resource_columns(data)<EOL><DEDENT><DEDENT>
Populates columns and sets display attribute as needed.
        Operates on data.