|
a/ForgeDiscussion/forgediscussion/utils.py |
|
b/ForgeDiscussion/forgediscussion/utils.py |
|
... |
|
... |
22 |
description = ''
|
22 |
description = ''
|
23 |
if 'description' in new_forum:
|
23 |
if 'description' in new_forum:
|
24 |
description=new_forum['description']
|
24 |
description=new_forum['description']
|
25 |
f = DM.Forum(app_config_id=app.config._id,
|
25 |
f = DM.Forum(app_config_id=app.config._id,
|
26 |
parent_id=parent_id,
|
26 |
parent_id=parent_id,
|
27 |
name=h.really_unicode(new_forum['name']).encode('utf-8'),
|
27 |
name=h.really_unicode(new_forum['name']),
|
28 |
shortname=h.really_unicode(shortname).encode('utf-8'),
|
28 |
shortname=h.really_unicode(shortname),
|
29 |
description=h.really_unicode(description).encode('utf-8'))
|
29 |
description=h.really_unicode(description))
|
30 |
if 'icon' in new_forum and new_forum['icon'] is not None and new_forum['icon'] != '':
|
30 |
if 'icon' in new_forum and new_forum['icon'] is not None and new_forum['icon'] != '':
|
31 |
save_forum_icon(f, new_forum['icon'])
|
31 |
save_forum_icon(f, new_forum['icon'])
|
32 |
return f
|
32 |
return f
|