Get rid of default type from the activity definition.

Modify code to use activity type id instead, except
from mapping service to activity.
This commit is contained in:
Marco Pesenti Gritti
2006-09-02 10:54:34 +02:00
parent 8ffff18bc3
commit 58a79eb123
10 changed files with 48 additions and 56 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class ActivityItem(IconItem):
def __init__(self, activity, size):
icon_name = activity.get_icon()
if not icon_name:
act_type = activity.get_default_type()
act_type = activity.get_type()
raise RuntimeError("Activity %s did not have an icon!" % act_type)
IconItem.__init__(self, icon_name=icon_name,
color=IconColor('white'), size=size)