Mercurial > kallithea
diff rhodecode/model/notification.py @ 2149:50aa7cb78cfe beta
Mysql fixes
- force INNODB engine
- set utf8 charset
- fix convert_unicode flag in .ini files
- fix constraints and FK
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 21 Mar 2012 19:19:00 +0200 |
parents | 8ecfed1d8f8b |
children | a27e4d44237e |
line wrap: on
line diff
--- a/rhodecode/model/notification.py Wed Mar 21 17:59:59 2012 +0200 +++ b/rhodecode/model/notification.py Wed Mar 21 19:19:00 2012 +0200 @@ -48,11 +48,11 @@ def __get_notification(self, notification): if isinstance(notification, Notification): return notification - elif isinstance(notification, int): + elif isinstance(notification, (int, long)): return Notification.get(notification) else: if notification: - raise Exception('notification must be int or Instance' + raise Exception('notification must be int, long or Instance' ' of Notification got %s' % type(notification)) def create(self, created_by, subject, body, recipients=None,