Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/b/o/boar-HEAD/boar/articles/templatetags/articles.py   boar(Download)
    def render(self, context):
        sections = Section.objects.menu_items()
        if self.section:
            section = self.section.resolve(context)
            # We are in a section
    def render(self, context):
        sections = Section.objects.menu_items()
        context['sections'] = (
            sections[0:int(len(sections)/2)],
            sections[int(len(sections)/2):]
    else:
        section = None
    sections = Section.objects.menu_items()
    if section:
        for s in sections: