Exemplo n.º 1
0
 def close(self):
     if self.group:
         self.group = False  # we're done grouping, so turn it off
         for key in sorted(self.group_cache.keys()):
             # write header by mapping key index with user's group list
             self.fh.write(' '.join([
                 '%s=%s' % (self.group_fields[i], key[i])
                 for i in range(len(self.group_fields))
             ]) + "\n")
             for kw in self.group_cache[key]:
                 self.fh.write("\t")
                 Output.write(self, **kw)
             self.fh.write("\n")
     Output.close(self)
Exemplo n.º 2
0
 def close(self):
     self.fh.write(self._HTML_FOOTER)
     Output.close(self)