Get rid of warnings on view categories with more than 9 views (yes, I have a category with 16 views)

svn: r14291
This commit is contained in:
Doug Blank 2010-02-09 01:41:32 +00:00
parent 4c96566671
commit 8af314298e

View File

@ -939,10 +939,15 @@ class ViewManager(CLIManager):
uimenuitems += '\n<menuitem action="%s"/>' % pageid
uitoolitems += '\n<toolitem action="%s"/>' % pageid
# id, stock, button text, UI, tooltip, page
if nrpage < 9 * 3:
modifier = ["<CONTROL>",
"<ALT>",
"<CONTROL><ALT>"][int(nrpage / 9)] + str((nrpage % 9) + 1)
else:
modifier = ""
self.view_toggle_actions[indexcat].append((pageid,
page.get_viewtype_stock(),
pdata.name, '<CONTROL>%i' % (nrpage+1), page_title,
nrpage))
pdata.name, modifier, page_title, nrpage))
nrpage += 1
if nr_views > 1: