Mercurial > kallithea
comparison rhodecode/model/notification.py @ 2522:17893d61792a beta
Added associated classes into child models
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 01 Jul 2012 12:44:54 +0200 |
parents | d04243e932cc |
children | 3fdf7c3be2c9 |
comparison
equal
deleted
inserted
replaced
2521:e4d2271e1193 | 2522:17893d61792a |
---|---|
37 | 37 |
38 log = logging.getLogger(__name__) | 38 log = logging.getLogger(__name__) |
39 | 39 |
40 | 40 |
41 class NotificationModel(BaseModel): | 41 class NotificationModel(BaseModel): |
42 | |
43 cls = Notification | |
42 | 44 |
43 def __get_notification(self, notification): | 45 def __get_notification(self, notification): |
44 if isinstance(notification, Notification): | 46 if isinstance(notification, Notification): |
45 return notification | 47 return notification |
46 elif isinstance(notification, (int, long)): | 48 elif isinstance(notification, (int, long)): |