5285: Add a blank entry on countries list
svn: r18256
This commit is contained in:
parent
d9cbb4f6cb
commit
d9a42299a2
@ -376,6 +376,10 @@ class CalendarOptions(MenuReportOptions):
|
|||||||
|
|
||||||
country = EnumeratedListOption(_("Country for holidays"), 0)
|
country = EnumeratedListOption(_("Country for holidays"), 0)
|
||||||
holiday_table = libholiday.HolidayTable()
|
holiday_table = libholiday.HolidayTable()
|
||||||
|
holiday_table.sort()
|
||||||
|
if (len(holiday_table) == 0 or
|
||||||
|
(len(holiday_table) > 0 and holiday_table[0] != '')):
|
||||||
|
holiday_table.insert(0, '')
|
||||||
count = 0
|
count = 0
|
||||||
for c in holiday_table.get_countries():
|
for c in holiday_table.get_countries():
|
||||||
country.add_item(count, c)
|
country.add_item(count, c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user