Did I find the right examples for you? yes no

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

src/d/j/django-tcms-0.1.11/tcms/sitemap.py   django-tcms(Download)
from django.contrib import sitemaps
from django.core import urlresolvers
from models import Page, LIVE
 
class TCMSSitemap(sitemaps.Sitemap):
    def items(self):
        pages = Page.objects.select_related('path').filter(state = LIVE)
 
        if self.patterns != None:
            urls = map(urlresolvers.reverse, self.patterns)

src/d/j/django-tcms-HEAD/tcms/sitemap.py   django-tcms(Download)
from django.contrib import sitemaps
from django.core import urlresolvers
from models import Page, LIVE
 
class TCMSSitemap(sitemaps.Sitemap):
    def items(self):
        pages = Page.objects.select_related('path').filter(state = LIVE)
 
        if self.patterns != None:
            urls = map(urlresolvers.reverse, self.patterns)