<s> from django . contrib . syndication . feeds import Feed , FeedDoesNotExist <EOL> from brainstorm . models import Subsite <EOL> class SubsiteFeed ( Feed ) : <EOL> title_template = '<STR_LIT>' <EOL> description_template = '<STR_LIT>' <EOL> def get_object ( self , bits ) : <EOL> return Subsite . objects . get ( slug__exact = bits [ <NUM_LIT:0> ] ) <EOL> def title ( self , obj ) : <EOL> return '<STR_LIT>' % obj . name <EOL> def description ( self , obj ) : <EOL> return '<STR_LIT>' % obj . name <EOL> def link ( self , obj ) : <EOL> if not obj : <EOL> raise FeedDoesNotExist <EOL> return obj . get_absolute_url ( ) <EOL> def items ( self , obj ) : <EOL> return obj . ideas . order_by ( '<STR_LIT>' ) [ : <NUM_LIT:30> ] <EOL> def item_link ( self , item ) : <EOL> return item . get_absolute_url ( ) <EOL> def item_author_name ( self , item ) : <EOL> return item . user <EOL> def item_pubdate ( self , item ) : <EOL> return item . submit_date </s>
