def __init__( self, ims, shift, incidents_by_activity, template_name="shift" ): BaseElement.__init__(self, ims, template_name, str(shift)) self.shift = shift self.incidents_by_activity = incidents_by_activity
def __init__(self, ims, number): BaseElement.__init__( self, ims, "incident", "Incident #{0}".format(number) ) self.incident = self.ims.storage.read_incident_with_number(number) for attr_name in ( "number", "priority", "created", "dispatched", "on_scene", "closed", "summary", ): @renderer def render_attr(request, tag, attr_name=attr_name): return tag(u"{0}".format(getattr(self.incident, attr_name))) setattr(self, attr_name, render_attr)
def __init__(self, ims): BaseElement.__init__(self, ims, "home", "Ranger Incident Management System")
def __init__(self, ims, name): BaseElement.__init__(self, ims, name, "Shift Change Report")
def __init__(self, ims, template_name="report_shift"): BaseElement.__init__(self, ims, template_name, "Shift Summary")
def __init__(self, ims, template_name="report_daily"): BaseElement.__init__(self, ims, template_name, "Daily Report")
def __init__(self, ims): BaseElement.__init__(self, ims, "queue", "Dispatch Queue")
def __init__(self, ims, name): BaseElement.__init__(self, ims, name, "Daily Report")