def rend(self, ctx, data):
     """
     Fill the slots the template requires to be filled in order to be
     rendered.
     """
     iq = inevow.IQ(self.docFactory)
     ctx.fillSlots('from', 'bob@example')
     ctx.fillSlots('to', '*****@*****.**')
     ctx.fillSlots('cc', '*****@*****.**')
     ctx.fillSlots('bcc', '*****@*****.**')
     ctx.fillSlots(
         'subject',
         iq.onePattern('subject').fillSlots('subject', 'Test Message'))
     ctx.fillSlots('attachments', '')
     ctx.fillSlots(
         'message-body',
         iq.onePattern('message-body').fillSlots('body',
                                                 'message body text'))
     return LiveFragment.rend(self, ctx, data)
Exemplo n.º 2
0
 def rend(self, ctx, data):
     """
     Fill the slots the template requires to be filled in order to be
     rendered.
     """
     iq = inevow.IQ(self.docFactory)
     ctx.fillSlots('from', 'bob@example')
     ctx.fillSlots('to', '*****@*****.**')
     ctx.fillSlots('cc', '*****@*****.**')
     ctx.fillSlots('bcc', '*****@*****.**')
     ctx.fillSlots(
         'subject',
         iq.onePattern('subject').fillSlots('subject', 'Test Message'))
     ctx.fillSlots('attachments', '')
     ctx.fillSlots(
         'message-body',
         iq.onePattern('message-body').fillSlots(
             'body', 'message body text'))
     return LiveFragment.rend(self, ctx, data)