Example #1
0
 def types_options(self, request, tag):
     return tag(
         tags.option(
             type,
             value=type
         )
         for type in self.incident.incident_types
     )
Example #2
0
 def rangers_options(self, request, tag):
     return tag(
         tags.option(
             u"{ranger.handle} ({ranger.name})".format(ranger=ranger),
             value=ranger.handle
         )
         for ranger in self.incident.rangers
     )