Пример #1
0
    class W(object):
        new_topic = DW.NewTopicPost(submit_text='Post')

        announcements_table = FW.AnnouncementsTable()
        add_forum = AddForumShort()
        search_results = SearchResults()
        search_help = SearchHelp(comments=False, history=False)
Пример #2
0
class WidgetConfig(object):
    # Forms
    subscription_form = DW.SubscriptionForm()
    subscribe_form = SubscribeForm()
    edit_post = DW.EditPost(show_subject=True)
    moderate_thread = FW.ModerateThread()
    post_filter = DW.PostFilter()
    moderate_posts = DW.ModeratePosts()
    # Other widgets
    discussion = FW.Forum()
    thread = FW.Thread()
    post = FW.Post()
    thread_header = FW.ThreadHeader()
    announcements_table = FW.AnnouncementsTable()
    discussion_header = FW.ForumHeader()
Пример #3
0
    class W(object):
        new_topic = DW.NewTopicPost(submit_text='Post')

        announcements_table = FW.AnnouncementsTable()
        add_forum = AddForumShort()
        search_results = SearchResults()
        search_help = SearchHelp(
            comments=False,
            history=False,
            fields={
                'author_user_name_t': 'Username',
                'text': '"Post text"',
                'timestamp_dt':
                'Date posted.  Example: timestamp_dt:[2018-01-01T00:00:00Z TO *]',
                'name_s': 'Subject'
            })
Пример #4
0
 class W(object):
     forum_subscription_form = FW.ForumSubscriptionForm()
     new_topic = DW.NewTopicPost(submit_text='Post')
     announcements_table = FW.AnnouncementsTable()
     add_forum = AddForumShort()
     search_results = SearchResults()