Example #1
0
 def render(self, context):
     agent = context.get('agent', None)
     output = self.nodelist.render(context)
     output = utils.convert_emoji(
         output, agent, self.removevar, lambda src, alt: self.image_tag %
         (src, alt))
     return output
Example #2
0
 def render(self, context):
     agent = context.get('agent', None)
     output = utils.convert_emoji(
         utils.uni_name2docomo(self.code),
         agent,
         image_tag_callback=lambda src, alt: self.image_tag % src)
     return output
Example #3
0
 def render(self, context):
     agent = context.get('agent', None)
     output = self.nodelist.render(context)
     output = utils.convert_emoji(output, agent, self.removevar, lambda src, alt: self.image_tag % (src, alt))
     return output
Example #4
0
 def render(self, context):
     agent = context.get('agent', None)
     output = utils.convert_emoji(utils.uni_name2docomo(self.code), agent, image_tag_callback=lambda src, alt: self.image_tag % src)
     return output