From 71c48b8f054c777018c62b896b951e822e898066 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 18 Aug 2008 18:11:25 -0700 Subject: [PATCH] Upgrade page now properly handles storage quota of None. --- view/Upgrade_page.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/Upgrade_page.py b/view/Upgrade_page.py index a58afc1..9ee4e95 100644 --- a/view/Upgrade_page.py +++ b/view/Upgrade_page.py @@ -81,7 +81,7 @@ class Upgrade_page( Product_page ): class_ = u"feature_name", ), [ Td( - plan[ u"storage_quota_bytes" ] // MEGABYTE, " MB", + plan[ u"storage_quota_bytes" ] and "%s MB" % ( plan[ u"storage_quota_bytes" ] // MEGABYTE ) or u"unlimited", ) for plan in rate_plans ], ), Tr( @@ -328,7 +328,7 @@ class Upgrade_page( Product_page ): ), Tr( [ Td( - plan[ u"storage_quota_bytes" ] // MEGABYTE, " MB", + plan[ u"storage_quota_bytes" ] and "%s MB" % ( plan[ u"storage_quota_bytes" ] // MEGABYTE ) or u"unlimited", ) for plan in rate_plans ], ), border = u"1",