|
a/Allura/allura/lib/plugin.py |
|
b/Allura/allura/lib/plugin.py |
|
... |
|
... |
400 |
raise
|
400 |
raise
|
401 |
except:
|
401 |
except:
|
402 |
ThreadLocalORMSession.close_all()
|
402 |
ThreadLocalORMSession.close_all()
|
403 |
log.exception('Error registering project %s' % p)
|
403 |
log.exception('Error registering project %s' % p)
|
404 |
raise
|
404 |
raise
|
405 |
ThreadLocalORMSession.flush_all()
|
|
|
406 |
with h.push_config(c, project=p, user=user):
|
405 |
with h.push_config(c, project=p, user=user):
|
|
|
406 |
ThreadLocalORMSession.flush_all()
|
407 |
# have to add user to context, since this may occur inside auth code
|
407 |
# have to add user to context, since this may occur inside auth code
|
408 |
# for user-project reg, and c.user isn't set yet
|
408 |
# for user-project reg, and c.user isn't set yet
|
409 |
g.post_event('project_created')
|
409 |
g.post_event('project_created')
|
410 |
return p
|
410 |
return p
|
411 |
|
411 |
|