<s> from django . contrib . sitemaps import GenericSitemap as DjangoGenericSitemap <EOL> from django . contrib . sitemaps import Sitemap as DjangoSitemap <EOL> from django . utils import timezone <EOL> from opps . containers . models import Container <EOL> def InfoDict ( googlenews = False ) : <EOL> containers = Container . objects . filter ( date_available__lte = timezone . now ( ) , <EOL> published = True ) <EOL> if googlenews : <EOL> containers = containers [ : <NUM_LIT:1000> ] <EOL> return { <EOL> '<STR_LIT>' : containers , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> class BaseSitemap ( DjangoSitemap ) : <EOL> priority = <NUM_LIT> <EOL> def items ( self ) : <EOL> return Container . objects . filter ( date_available__lte = timezone . now ( ) , <EOL> published = True ) <EOL> def lastmod ( self , obj ) : <EOL> return obj . date_available <EOL> class GenericSitemap ( DjangoGenericSitemap ) : <EOL> limit = <NUM_LIT:1000> <EOL> priority = <NUM_LIT> </s>
