def render(self, context):
        try:
            obj = template.resolve_variable(self.object_name, context)
            template_name = '%s.%s.html' % (obj._meta.app_label, obj._meta.module_name)
            template_list = [
                '%s/%s' % (self.template_dir, template_name),
                '%s/default.html' % self.template_dir
            ]
            context['object'] = obj
            return render_to_string(template_list, context)
        except __HOLE__:
            if (type(obj) in (int, unicode, str)):
                return obj
            return ''
        except template.VariableDoesNotExist:
            return ''
dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tools/templatetags/objectutils.py/RenderTemplateNode.render