Пример #1
0
 def queue(self, request, tag):
     return tag(incidents_as_table(
         (
             self.ims.storage.read_incident_with_number(number)
             for number, etag in incidents_from_query(self.ims, request)
         ),
         caption="Dispatch Queue",
         id="dispatch_queue",
     ))
Пример #2
0
 def activity(caption, incidents):
     if incidents:
         return incidents_as_table(
             incidents,
             caption=caption,
             id="activity:{0}:{1}".format(
                 hash(self.shift), hash(caption)
             ),
         )
     else:
         return ""