Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        max_num_template = lambda max_items, default: ':{0}'.format(max_items if max_items else default)
        


src/d/j/django-dash-0.4.4/src/dash/contrib/plugins/rss_feed/views.py   django-dash(Download)
from dash.contrib.plugins.rss_feed.defaults import DEFAULT_SHOW_TITLE, DEFAULT_TRUNCATE_AFTER, DEFAULT_MAX_FEED_ITEMS
from dash.contrib.plugins.rss_feed.forms import ReadRSSFeedForm
from dash.contrib.plugins.rss_feed.helpers import max_num_template
 
import logging
            'show_feed_title': show_feed_title,
            'truncate_after': truncate_after,
            'max_feed_items': max_num_template(max_items, DEFAULT_MAX_FEED_ITEMS)
        }
 

src/d/j/django-dash-HEAD/src/dash/contrib/plugins/rss_feed/views.py   django-dash(Download)
from dash.contrib.plugins.rss_feed.defaults import DEFAULT_SHOW_TITLE, DEFAULT_TRUNCATE_AFTER, DEFAULT_MAX_FEED_ITEMS
from dash.contrib.plugins.rss_feed.forms import ReadRSSFeedForm
from dash.contrib.plugins.rss_feed.helpers import max_num_template
 
import logging
            'show_feed_title': show_feed_title,
            'truncate_after': truncate_after,
            'max_feed_items': max_num_template(max_items, DEFAULT_MAX_FEED_ITEMS)
        }