Run setup when reloading a module.

This commit is contained in:
Sean B. Palmer
2009-06-18 14:20:12 +01:00
parent b35681c759
commit 5d48dd8ca7
3 changed files with 10 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ def mappings(uri):
if not ' ' in item: continue
command, template = item.split(' ', 1)
if not command.isalpha(): continue
if not command.isalnum(): continue
if not template.startswith('http://'): continue
result[command] = template.replace('&', '&')
return result