<s> import os <EOL> import logging <EOL> from django . conf import settings <EOL> from bakery . views import BuildableMixin <EOL> from django . test . client import RequestFactory <EOL> from django . contrib . syndication . views import Feed <EOL> logger = logging . getLogger ( __name__ ) <EOL> class BuildableFeed ( Feed , BuildableMixin ) : <EOL> """<STR_LIT>""" <EOL> build_path = '<STR_LIT>' <EOL> def get_content ( self ) : <EOL> return self ( self . request ) . content <EOL> @ property <EOL> def build_method ( self ) : <EOL> return self . build_queryset <EOL> def build_queryset ( self ) : <EOL> logger . debug ( "<STR_LIT>" % self . build_path ) <EOL> self . request = RequestFactory ( ) . get ( self . build_path ) <EOL> self . prep_directory ( self . build_path ) <EOL> path = os . path . join ( settings . BUILD_DIR , self . build_path ) <EOL> self . build_file ( path , self . get_content ( ) ) </s>
