rename API add_owner -> addowner

This commit is contained in:
gwen
2013-08-27 16:12:53 +02:00
parent b341844450
commit a894a5e27b
4 changed files with 8 additions and 8 deletions

View File

@ -132,12 +132,12 @@ def populate_owners():
setattr(owners, 'default', owners.DefaultOwner('default'))
setattr(owners, 'user', owners.Owner('user'))
def add_owner(name):
def addowner(name):
"""
:param name: the name of the new owner
"""
setattr(owners, name, owners.Owner(name))
setattr(owners, 'add_owner', add_owner)
setattr(owners, 'addowner', addowner)
# names are in the module now
populate_owners()