|
a/Allura/allura/lib/plugin.py |
|
b/Allura/allura/lib/plugin.py |
|
... |
|
... |
306 |
try:
|
306 |
try:
|
307 |
p.configure_project(
|
307 |
p.configure_project(
|
308 |
users=users,
|
308 |
users=users,
|
309 |
is_user_project=False,
|
309 |
is_user_project=False,
|
310 |
apps=[
|
310 |
apps=[
|
311 |
('wiki', 'home'),
|
311 |
('Wiki', 'home', 'Home'),
|
312 |
('admin', 'admin')])
|
312 |
('admin', 'admin', 'Admin')])
|
313 |
except:
|
313 |
except:
|
314 |
ThreadLocalORMSession.close_all()
|
314 |
ThreadLocalORMSession.close_all()
|
315 |
log.exception('Error registering project %s' % p)
|
315 |
log.exception('Error registering project %s' % p)
|
316 |
raise
|
316 |
raise
|
317 |
if allow_register:
|
317 |
if allow_register:
|
|
... |
|
... |
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 |
sp.install_app('home', 'home')
|
374 |
home_app = sp.install_app('Wiki', 'home', 'Home')
|
|
|
375 |
if home_app:
|
|
|
376 |
home_app.show_discussion = False
|
|
|
377 |
home_app.show_left_bar = False
|
375 |
sp.install_app('admin', 'admin')
|
378 |
sp.install_app('admin', 'admin')
|
376 |
sp.install_app('search', 'search')
|
379 |
sp.install_app('search', 'search')
|
377 |
g.post_event('project_created')
|
380 |
g.post_event('project_created')
|
378 |
return sp
|
381 |
return sp
|
379 |
|
382 |
|