--- a/Allura/allura/model/neighborhood.py
+++ b/Allura/allura/model/neighborhood.py
@@ -64,13 +64,15 @@
else:
return url
- def register_project(self, shortname, user=None, user_project=False, private_project=False):
+ def register_project(self, shortname, user=None, project_name=None, user_project=False, private_project=False):
'''Register a new project in the neighborhood. The given user will
become the project's superuser. If no user is specified, c.user is used.
'''
provider = plugin.ProjectRegistrationProvider.get()
+ if project_name is None:
+ project_name = shortname
return provider.register_project(
- self, shortname, user or getattr(c,'user',None), user_project, private_project)
+ self, shortname, project_name, user or getattr(c,'user',None), user_project, private_project)
def bind_controller(self, controller):
from allura.controllers.project import NeighborhoodController