Omaha #5700 - Fix captialization of bullets header text in Hazard_RFW.

Change-Id: I435e92bdb8bb754b4f860507d174a41fa2d697cc

Former-commit-id: 9334bdf404e24a80fee709b932afd734a11c1331
This commit is contained in:
David Gillingham 2016-06-17 11:01:06 -05:00
parent f6f519dbe9
commit 30bfc5ac91

View file

@ -1,19 +1,19 @@
##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non-U.S. persons whether in the United States or abroad requires
# an export license or other authorization.
#
# Contractor Name: Raytheon Company
# Contractor Address: 6825 Pine Street, Suite 340
# Mail Stop B8
# Omaha, NE 68106
# 402.291.0100
#
# Contractor Name: Raytheon Company
# Contractor Address: 6825 Pine Street, Suite 340
# Mail Stop B8
# Omaha, NE 68106
# 402.291.0100
#
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
# further licensing information.
##
@ -758,22 +758,21 @@ class TextProduct(GenericHazards.TextProduct):
### loop through the bullets and format the output
for b in bList:
if b == self._locationsBullet:
b = b.upper()
if b == self._locationsBullet.upper():
locations = self._getLocationsList(areaDictionary, argDict, eachHazard['seg'])
bullets = bullets + StringUtils.StringUtils().indentText(b+"..."+locations, \
indentFirstString="* ", indentNextString=" ", \
maxWidth=65,breakStrings=[" ","..."]) + "\n\n"
elif b == "Extreme grassland fire danger":
elif b == "Extreme grassland fire danger".upper():
bullets = bullets + "* " + b + "...is forecast.\n\n"
elif b == "Highest threat":
elif b == "Highest threat".upper():
bullets = bullets + "|* * " + b + "...is located (optional bullet)*|\n\n"
elif b == "Impacts":
elif b == "Impacts".upper():
bullets = bullets + "* " + b + "...any fires that develop will likely spread rapidly."
bullets = bullets + " Outdoor burning is not recommended.\n\n"
else:
bullets = bullets + "* " + b + "...|* Enter bullet text *|\n\n"