def get_value(self, context, bind_data): value = super(TemplatedBinding, self).get_value(context, bind_data) try: return render_in_context(context, value) except TemplateError: # Return the unrendered value if there was template trouble. return value
def get_value(self, context, bind_data): value = super(TemplatedBinding, self).get_value(context, bind_data) try: return render_in_context(context, value) except TemplateError: # Return the unrendered value if there was template trouble. return value