|
a/Allura/allura/lib/plugin.py |
|
b/Allura/allura/lib/plugin.py |
|
... |
|
... |
369 |
last_updated = datetime.utcnow(),
|
369 |
last_updated = datetime.utcnow(),
|
370 |
is_root=False)
|
370 |
is_root=False)
|
371 |
with h.push_config(c, project=sp):
|
371 |
with h.push_config(c, project=sp):
|
372 |
M.AppConfig.query.remove(dict(project_id=c.project._id))
|
372 |
M.AppConfig.query.remove(dict(project_id=c.project._id))
|
373 |
if install_apps:
|
373 |
if install_apps:
|
374 |
home_app = sp.install_app('Wiki', 'home', 'Home')
|
374 |
home_app = sp.install_app('Wiki', 'home', 'Home', ordinal=0)
|
375 |
if home_app:
|
375 |
if home_app:
|
376 |
home_app.show_discussion = False
|
376 |
home_app.show_discussion = False
|
377 |
home_app.show_left_bar = False
|
377 |
home_app.show_left_bar = False
|
378 |
sp.install_app('admin', 'admin')
|
378 |
sp.install_app('admin', 'admin', ordinal=1)
|
379 |
sp.install_app('search', 'search')
|
379 |
sp.install_app('search', 'search', ordinal=2)
|
380 |
g.post_event('project_created')
|
380 |
g.post_event('project_created')
|
381 |
return sp
|
381 |
return sp
|
382 |
|
382 |
|
383 |
def delete_project(self, project, user):
|
383 |
def delete_project(self, project, user):
|
384 |
for sp in project.subprojects:
|
384 |
for sp in project.subprojects:
|