Пример #1
0
 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
Пример #2
0
 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