<s> from django . contrib . auth . decorators import permission_required <EOL> from django . core . urlresolvers import reverse <EOL> from django . shortcuts import render_to_response <EOL> from django . template import RequestContext <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from django import forms <EOL> import lfs . caching . utils <EOL> import lfs . core . utils <EOL> import lfs . catalog . models <EOL> import lfs . marketing . utils <EOL> @ permission_required ( "<STR_LIT>" ) <EOL> def utilities ( request , template_name = "<STR_LIT>" ) : <EOL> """<STR_LIT>""" <EOL> return render_to_response ( template_name , RequestContext ( request , { } ) ) <EOL> @ permission_required ( "<STR_LIT>" ) <EOL> def reindex_topseller ( request ) : <EOL> """<STR_LIT>""" <EOL> lfs . marketing . utils . calculate_product_sales ( ) <EOL> return lfs . core . utils . set_message_cookie ( <EOL> url = reverse ( "<STR_LIT>" ) , <EOL> msg = _ ( u"<STR_LIT>" ) , <EOL> ) <EOL> @ permission_required ( "<STR_LIT>" ) <EOL> def clear_cache ( request ) : <EOL> """<STR_LIT>""" <EOL> lfs . caching . utils . clear_cache ( ) <EOL> return lfs . core . utils . set_message_cookie ( <EOL> url = reverse ( "<STR_LIT>" ) , <EOL> msg = _ ( u"<STR_LIT>" ) , <EOL> ) <EOL> @ permission_required ( "<STR_LIT>" ) <EOL> def set_category_levels ( request ) : <EOL> """<STR_LIT>""" <EOL> lfs . core . utils . set_category_levels ( ) <EOL> return lfs . core . utils . set_message_cookie ( <EOL> url = reverse ( "<STR_LIT>" ) , <EOL> msg = _ ( u"<STR_LIT>" ) , <EOL> ) <EOL> @ permission_required ( "<STR_LIT>" ) <EOL> def update_effective_price ( request ) : <EOL> """<STR_LIT>""" <EOL> for product in lfs . catalog . models . Product . objects . all ( ) : <EOL> product . save ( ) <EOL> return lfs . core . utils . set_message_cookie ( <EOL> url = reverse ( "<STR_LIT>" ) , <EOL> msg = _ ( u"<STR_LIT>" ) , <EOL> ) </s>
