# HG changeset patch # User Laure Bourgois # Date 1237558009 -3600 # Node ID 9b586c6415aea4a32dbbdeee5faf6cf565cca78d # Parent 1fbeb11a27a3edd1785a873b49b8a4fc93b5c66f fixing context. diff -r 1fbeb11a27a3 -r 9b586c6415ae sobjects/notification.py --- a/sobjects/notification.py Fri Mar 20 14:52:33 2009 +0100 +++ b/sobjects/notification.py Fri Mar 20 15:06:49 2009 +0100 @@ -160,8 +160,8 @@ def context(self, **kwargs): entity = self.entity(0, 0) for key, val in kwargs.iteritems(): - if val and val.strip(): - kwargs[key] = self.req._(val) + if val and isinstance(val, unicode) and val.strip(): + kwargs[key] = self.req._(val) kwargs.update({'user': self.user_login(), 'eid': entity.eid, 'etype': entity.dc_type(),