diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2010-09-30 18:35:18 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2010-09-30 18:35:18 +0100 |
commit | d608a0d6bc949e6d4d75af5d773cfb079f072d15 (patch) | |
tree | fe9499ff1050ba726506e984e501dbeb8a0dcf33 /tools | |
parent | 67b68de54d82908d87d94fe3319d840a6c17d482 (diff) |
specparser: Improve ofdT abbreviation handling
Previously you could only abbreviate org.freedesktop.Telepathy to ofdT
if you followed it with a period. So if you wanted to link to Account,
you couldn't abbreviate. This patch allows namespace='ofdT'.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/specparser.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/specparser.py b/tools/specparser.py index 264c2330..ec30aa92 100644 --- a/tools/specparser.py +++ b/tools/specparser.py @@ -276,8 +276,9 @@ WARNING: Key '%s' not known in namespace '%s' namespace = n.getAttribute('namespace') key = getText(n) - if namespace.startswith('ofdT.'): - namespace = 'org.freedesktop.Telepathy.' + namespace[5:] + if namespace.startswith('ofdT.') or namespace == 'ofdT': + namespace = namespace.replace('ofdT', + 'org.freedesktop.Telepathy') try: o = spec.lookup(key, namespace=namespace) |