Exemple #1
0
 def render_rows(self, context):
     return [
         Link.MessageLink(self.target, self.messageId,
                          extraSegments = ('xml',),
                          text = 'Unformatted XML',
                          ),
         ]
Exemple #2
0
    def render_rows(self, context):
        parsed = []
        for id, xml in self.target.messages.getLatest(self.limit):
            m = Message.Message(xml)
            m.hyperlink = Link.MessageLink(self.target, id, text="#")
            parsed.append(m)

        if parsed:
            return self.renderMessages(context, parsed)
        else:
            return []