|
a/scripts/migrations/024-migrate-custom-profile-text.py |
|
b/scripts/migrations/024-migrate-custom-profile-text.py |
|
... |
|
... |
31 |
if description is None or re.match(default_description, description):
|
31 |
if description is None or re.match(default_description, description):
|
32 |
continue
|
32 |
continue
|
33 |
|
33 |
|
34 |
app = p.app_instance('wiki')
|
34 |
app = p.app_instance('wiki')
|
35 |
if app is None:
|
35 |
if app is None:
|
|
|
36 |
try:
|
36 |
p.install_app('wiki')
|
37 |
app = p.install_app('wiki')
|
|
|
38 |
except Exception as e:
|
|
|
39 |
log.error("Unable to install wiki for user %s: %s" % (user.username, str(e)))
|
|
|
40 |
continue
|
37 |
|
41 |
|
38 |
page = WM.Page.query.get(app_config_id=app.config._id, title='Home')
|
42 |
page = WM.Page.query.get(app_config_id=app.config._id, title='Home')
|
39 |
if page is None:
|
43 |
if page is None:
|
40 |
continue
|
44 |
continue
|
41 |
|
45 |
|