Switch to unified view

a/scripts/remove-forumpost-subject.py b/scripts/remove-forumpost-subject.py
...
...
19
19
20
    forum_posts = c_forumpost.find()
20
    forum_posts = c_forumpost.find()
21
    for fp in forum_posts:
21
    for fp in forum_posts:
22
        try:
22
        try:
23
            s = fp['subject']
23
            s = fp['subject']
24
            if test or s:
24
            if test:
25
                log.info('... would remove subject "%s" from %s', s, fp['_id'])
25
                log.info('... would remove subject "%s" from %s', s, fp['_id'])
26
            else:
26
            else:
27
                log.info('... removing subject "%s" from %s', s, fp['_id'])
27
                log.info('... removing subject "%s" from %s', s, fp['_id'])
28
                del fp['subject']
28
                del fp['subject']
29
                c_forumpost.save(fp)
29
                c_forumpost.save(fp)