Generated: Wed 2013-03-13 10:33 CET
Source file: /media/Envs/Envs/filer-gallery/lib/python2.7/site-packages/cms/management/commands/cms.py
Stats: 0 executed, 12 missed, 7 excluded, 16 ignored
# -*- coding: utf-8 -*-from __future__ import absolute_importfrom cms.management.commands.subcommands.base import SubcommandsCommandfrom cms.management.commands.subcommands.list import ListCommandfrom cms.management.commands.subcommands.moderator import ModeratorCommandfrom cms.management.commands.subcommands.uninstall import UninstallCommandfrom django.core.management.base import BaseCommandfrom optparse import make_optionclass Command(SubcommandsCommand): option_list = BaseCommand.option_list + ( make_option('--noinput', action='store_false', dest='interactive', default=True, help='Tells django-cms to NOT prompt the user for input of any kind. '), ) args = '<subcommand>' command_name = 'cms' subcommands = { 'uninstall': UninstallCommand, 'list': ListCommand, 'moderator': ModeratorCommand, } @property def help(self): lines = ['django CMS command line interface.', '', 'Available subcommands:'] for subcommand in sorted(self.subcommands.keys()): lines.append(' %s' % subcommand) lines.append('') lines.append('Use `manage.py cms <subcommand> --help` for help about subcommands') return '\n'.join(lines)