Mercurial > libervia-backend
comparison src/memory/memory.py @ 909:fab49a1d5ea2
core: minor docstring fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 21 Mar 2014 15:03:51 +0100 |
parents | 57c32d8ec847 |
children | 1a3ba959f0ab |
comparison
equal
deleted
inserted
replaced
908:2ef523f0b5c3 | 909:fab49a1d5ea2 |
---|---|
973 | 973 |
974 def hasServerFeature(self, feature, jid_=None, profile_key="@NONE@"): | 974 def hasServerFeature(self, feature, jid_=None, profile_key="@NONE@"): |
975 """Tell if the specified server has the required feature | 975 """Tell if the specified server has the required feature |
976 @param feature: requested feature | 976 @param feature: requested feature |
977 @param jid_: the jid of the target server (None for profile's server) | 977 @param jid_: the jid of the target server (None for profile's server) |
978 @param profile: which profile is asking this server? | 978 @param profile_key: %(doc_profile_key)s |
979 """ | 979 """ |
980 profile = self.getProfileName(profile_key) | 980 profile = self.getProfileName(profile_key) |
981 if not profile: | 981 if not profile: |
982 error(_('Trying find server feature for a non-existant profile')) | 982 error(_('Trying find server feature for a non-existant profile')) |
983 return None | 983 return None |