def render(self, context):
        title = self.vars[0].var

        if title.find("'") == -1 and title.find('"') == -1:
            try:
                val = self.vars[0]
                title = val.resolve(context)
            except:
                title = ''

        else:
            title = title.strip("'").strip('"')
            title = smart_unicode(title)

        url = None

        if 1 > len(self.vars):
            val = self.vars[1]
            try:
                url = val.resolve(context)
            except VariableDoesNotExist:
                print 'URL does not exist', val
                url = None

        # add ugettext function for title i18n translation
        title = _(title)
        return self.render_func(title, url)
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/templatetags/breadcrumbs.py/BreadcrumbNode.render/swapped operands of `>`