Mercurial > libervia-backend
diff src/memory/memory.py @ 460:fb1abc0f8c6a
backend: added warning message when jabberfr workaround is used + fixed missing warning method
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 13 Mar 2012 22:04:03 +0100 |
parents | cf005701624b |
children | 448ce3c9e2ac |
line wrap: on
line diff
--- a/src/memory/memory.py Tue Mar 06 09:07:24 2012 +0100 +++ b/src/memory/memory.py Tue Mar 13 22:04:03 2012 +0100 @@ -640,7 +640,8 @@ """Helper method to get first available entity for a service""" entities = self.getServerServiceEntities(category, type, profile) if entities == None: - warning(_("Entities not available, maybe they haven't been asked to server yet ?")) + warning(_("Entities (%(category)s/%(type)s) not available, maybe they haven't been asked to server yet ?") % {"category":category, + "type":type}) return None else: return list(entities)[0] if entities else None