def handle(self, *args, **options):
        level = {'0': logging.WARN, '1': logging.INFO, '2': logging.DEBUG}[options['verbosity']]
        logging.basicConfig(level=level, format="%(name)s: %(levelname)s: %(message)s")

        stylesheet = Stylesheet()

        if options['generate_packed_css']:
            stylesheet.new_production_stylesheet()
        if options['list_packed_css']:
            print "Current packed CSS file: ", stylesheet.get_filename()

        return 0
 def render(self, context):
     if not self.context_var:
         return Stylesheet.render()
     else:
         context[self.context_var] = Stylesheet.render(False)
         return ''