class W: search_results = SearchResults() page_list = ffw.PageList() page_size = ffw.PageSize() create_short_url_lightbox = suw.CreateShortUrlWidget( name='create_short_url', trigger='#sidebar a.add_short_url') update_short_url_lightbox = suw.UpdateShortUrlWidget()
class W: thread = w.Thread(page=None, limit=None, page_size=None, count=None, style='linear') markdown_editor = ffw.MarkdownEdit() confirmation = ffw.Lightbox( name='confirm', trigger='a.post-link', options="{ modalCSS: { minHeight: 0, width: 'inherit', top: '150px'}}") label_edit = ffw.LabelEdit() attachment_add = ffw.AttachmentAdd() attachment_list = ffw.AttachmentList() subscribe_form = SubscribeForm() page_subscribe_form = SubscribeForm(thing='page') page_list = ffw.PageList() page_size = ffw.PageSize() search_results = SearchResults() help_modal = SearchHelp() icons = { 24: 'images/wiki_24.png', 32: 'images/wiki_32.png', 48: 'images/wiki_48.png' }
class W: thread = w.Thread(page=None, limit=None, page_size=None, count=None, style='linear') pager = widgets.BlogPager() new_post_form = widgets.NewPostForm() edit_post_form = widgets.EditPostForm() view_post_form = widgets.ViewPostForm() attachment_list = ffw.AttachmentList() confirmation = ffw.Lightbox( name='confirm', trigger='a.post-link', options="{ modalCSS: { minHeight: 0, width: 'inherit', top: '150px'}}") preview_post_form = widgets.PreviewPostForm() subscribe_form = SubscribeForm(thing='post') search_results = SearchResults() help_modal = SearchHelp( fields={ 'title': 'Title', 'text': '"Post text"', 'labels_t': 'Labels', 'mod_date_dt': 'Last modified. Example: mod_date_dt:[2018-01-01T00:00:00Z TO *]', 'author_user_name_t': 'username (for comments only)', })
class W: thread = w.Thread(page=None, limit=None, page_size=None, count=None, style='linear') pager = widgets.BlogPager() new_post_form = widgets.NewPostForm() edit_post_form = widgets.EditPostForm() view_post_form = widgets.ViewPostForm() label_edit = ffw.LabelEdit() attachment_add = ffw.AttachmentAdd() attachment_list = ffw.AttachmentList() preview_post_form = widgets.PreviewPostForm() subscribe_form = SubscribeForm(thing='post') search_results = SearchResults() help_modal = SearchHelp( fields={ 'title': 'Title', 'text': '"Post text"', 'labels_t': 'Labels', 'mod_date_dt': 'Last modified. Example: mod_date_dt:[2018-01-01T00:00:00Z TO *]', 'author_user_name_t': 'username (for comments only)', })
class W: thread = w.Thread( page=None, limit=None, page_size=None, count=None, style='linear') markdown_editor = ffw.MarkdownEdit() confirmation = ffw.Lightbox(name='confirm', trigger='a.post-link', options="{ modalCSS: { minHeight: 0, width: 'inherit', top: '150px'}}") label_edit = ffw.LabelEdit() attachment_add = ffw.AttachmentAdd() attachment_list = ffw.AttachmentList() subscribe_form = SubscribeForm() page_subscribe_form = SubscribeForm(thing='page') page_list = ffw.PageList() page_size = ffw.PageSize() search_results = SearchResults() help_modal = SearchHelp(fields={'title': 'title', 'text': '"Page text"', 'mod_date_dt': 'Last modified. Example: mod_date_dt:[2018-01-01T00:00:00Z TO *]', 'labels_t': 'labels', 'author_user_name_t': 'username (for comments only)', }) icons = { 24: 'images/wiki_24.png', 32: 'images/wiki_32.png', 48: 'images/wiki_48.png' }
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)
class W: thread=w.Thread( page=None, limit=None, page_size=None, count=None, style='linear') create_page_lightbox = CreatePageWidget(name='create_wiki_page', trigger='#sidebar a.add_wiki_page') markdown_editor = ffw.MarkdownEdit() label_edit = ffw.LabelEdit() attachment_add = ffw.AttachmentAdd() attachment_list = ffw.AttachmentList() subscribe_form = SubscribeForm() page_subscribe_form = SubscribeForm(thing='page') page_list = ffw.PageList() page_size = ffw.PageSize() search_results = SearchResults()
def search(self, q=None, project=None, limit=None, page=0, **kw): c.search_results = SearchResults() c.help_modal = SearchHelp(comments=False, history=False) search_params = kw search_params.update({ 'q': q or '', 'project': project, 'limit': limit, 'page': page, 'allowed_types': ['Chat Message'], }) d = search_app(**search_params) d['search_comments_disable'] = True d['search_history_disable'] = True return d
class W: thread = w.Thread( page=None, limit=None, page_size=None, count=None, style='linear') pager = widgets.BlogPager() new_post_form = widgets.NewPostForm() edit_post_form = widgets.EditPostForm() view_post_form = widgets.ViewPostForm() label_edit = ffw.LabelEdit() attachment_add = ffw.AttachmentAdd() attachment_list = ffw.AttachmentList() preview_post_form = widgets.PreviewPostForm() subscribe_form = SubscribeForm(thing='post') search_results = SearchResults() help_modal = SearchHelp()
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' })
def index(self, q=None, history=None, **kw): c.search_results = SearchResults() c.help_modal = SearchHelp(comments=False) pids = [c.project._id] + [p._id for p in c.project.subprojects] project_match = ' OR '.join(map(str, pids)) search_params = kw search_params.update({ 'q': q, 'history': history, 'app': False, 'fq': [ 'project_id_s:(%s)' % project_match, '-deleted_b:true', ], }) d = search_app(**search_params) d['search_comments_disable'] = True d['hide_app_project_switcher'] = True return d
class W: search_results = SearchResults() search_help = SearchHelp(comments=False, history=False) page_list = ffw.PageList() page_size = ffw.PageSize() short_url_lightbox = suw.ShortUrlFormWidget()
class W: project_summary = plw.ProjectSummary() search_results = SearchResults()
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()