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') 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 fields(ew_core.NameList): page_list = ffw.PageList() page_size = ffw.PageSize() # Careful! using the same name as the prop on the model will invoke the RelationalProperty, # causing all related entities to be (re)fetched. _threads = _ThreadsTable()
class W: resize_editor = ffw.AutoResizeTextarea() project_summary = plw.ProjectSummary() add_project = plugin.ProjectRegistrationProvider.get().add_project_widget(antispam=True) page_list = ffw.PageList() page_size = ffw.PageSize() neighborhood_overview_form = ff.NeighborhoodOverviewForm() award_grant_form = ff.AwardGrantForm
class ThreadHeader(HierWidget): template = 'jinja:allura:templates/widgets/thread_header.html' defaults = dict(HierWidget.defaults, value=None, page=None, limit=None, count=None, show_moderate=False) widgets = dict(page_list=ffw.PageList(), page_size=ffw.PageSize(), moderate_thread=ModerateThread(), tag_post=TagPost())
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 prepare_context(self, context): page = 0 limit = 25 page_string = context['c'].form_values.get('page') limit_string = context['c'].form_values.get('limit') if page_string is not None: page = int(page_string) if limit_string is not None: limit = int(limit_string) result = self.query_tickets(page, limit) context['page_size'] = ffw.PageSize() context['page_list'] = ffw.PageList() context['page'] = page context['limit'] = limit context['tickets'] = result.get('tickets') context['count'] = result.get('count') context['solr_error'] = result.get('solr_error') return context
class W: page_list = ffw.PageList() page_size = ffw.PageSize()
class fields(ew_core.NameList): page_list = ffw.PageList() page_size = ffw.PageSize()
class W: page_list = ffw.PageList() page_size = ffw.PageSize() audit = AuditLog() admin_search_form = forms.AdminSearchForm
class fields(ew_core.NameList): page_list = ffw.PageList() page_size = ffw.PageSize() threads = _ThreadsTable()
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 fields(ew_core.NameList): page_list = ffw.PageList() page_size = ffw.PageSize() lightbox = ffw.Lightbox(name='col_list', trigger='#col_menu')