<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> __copyright__ = '<STR_LIT>' <EOL> __licence__ = '<STR_LIT>' <EOL> __email__ = '<STR_LIT>' <EOL> from django . core . management import BaseCommand <EOL> from django . core . cache import caches <EOL> from django . core . mail import mail_admins <EOL> from django . template import loader <EOL> from django . utils . translation import ugettext as _ <EOL> from ninecms . utils . status import Capturing <EOL> import pip <EOL> class Command ( BaseCommand ) : <EOL> help = "<STR_LIT>" <EOL> def handle ( self , * args , ** options ) : <EOL> """<STR_LIT>""" <EOL> with Capturing ( ) as updates : <EOL> pip . main ( [ '<STR_LIT:list>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:1>' ] ) <EOL> cache = caches [ '<STR_LIT:default>' ] <EOL> if not updates : <EOL> cache . delete ( '<STR_LIT>' ) <EOL> else : <EOL> cache . set ( '<STR_LIT>' , updates , <NUM_LIT:7> * <NUM_LIT> * <NUM_LIT> * <NUM_LIT> ) <EOL> t = loader . get_template ( '<STR_LIT>' ) <EOL> mail_admins ( _ ( "<STR_LIT>" ) , t . render ( { '<STR_LIT>' : updates } ) ) </s>
