<s> from django . contrib . sites . models import Site <EOL> from django . contrib . syndication . feeds import Feed <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from snapboard . models import Post <EOL> class LatestPosts ( Feed ) : <EOL> title = _ ( '<STR_LIT>' ) % Site . objects . get_current ( ) <EOL> link = "<STR_LIT:/>" <EOL> description = _ ( "<STR_LIT>" ) <EOL> title_template = "<STR_LIT>" <EOL> description_template = "<STR_LIT>" <EOL> def items ( self ) : <EOL> return Post . objects . filter ( thread__private = False ) . order_by ( '<STR_LIT>' ) [ : <NUM_LIT:10> ] <EOL> def item_pubdate ( self , obj ) : <EOL> return obj . date <EOL> def item_author_name ( self , obj ) : <EOL> return obj . user . username </s>
