|
a/Allura/allura/command/create_neighborhood.py |
|
b/Allura/allura/command/create_neighborhood.py |
|
... |
|
... |
14 |
self.basic_setup()
|
14 |
self.basic_setup()
|
15 |
admins = [ M.User.by_username(un) for un in self.args[2:] ]
|
15 |
admins = [ M.User.by_username(un) for un in self.args[2:] ]
|
16 |
shortname = self.args[1]
|
16 |
shortname = self.args[1]
|
17 |
n = M.Neighborhood(
|
17 |
n = M.Neighborhood(
|
18 |
name=shortname,
|
18 |
name=shortname,
|
19 |
url_prefix='/' + shortname + '/')
|
19 |
url_prefix='/' + shortname + '/',
|
|
|
20 |
features=dict(private_projects = False,
|
|
|
21 |
max_projects = 500,
|
|
|
22 |
css = 'none',
|
|
|
23 |
google_analytics = False))
|
20 |
project_reg = plugin.ProjectRegistrationProvider.get()
|
24 |
project_reg = plugin.ProjectRegistrationProvider.get()
|
21 |
project_reg.register_neighborhood_project(n, admins)
|
25 |
project_reg.register_neighborhood_project(n, admins)
|