def description(self): if self.get_items(): return _(u'The following custom listing views are available for ' u'your site.') else: return _(u'Click the "Add" button to begin creating ' u' a new listing view.')
def __init__(self, context, request): super(ListingViewControlPanel, self).__init__(context, request) # make sure that breadcrumbs will be correct self.id = None self.Title = lambda: _(u'Listing Views') #TODO: find out why this view does a write on read if IDisableCSRFProtection is not None: alsoProvides(request, IDisableCSRFProtection)
def __init__(self, context, request): super(ListingViewControlPanel, self).__init__(context, request) # make sure that breadcrumbs will be correct self.id = None self.Title = lambda: _(u'Listing Views')