from __future__ import unicode_literals

from optparse import make_option

from django.core.management.base import BaseCommand, NoArgsCommand
from .sync_page_themes import Command as PageThemeCommand
from .sync_widget_themes import Command as SyncWidgetsCommand


class Command(BaseCommand):

    help = "Syncs templates and themes"
    option_list = NoArgsCommand.option_list + (
        make_option("-f", "--force",
                    action="store_true", dest="force", default=False,
                    help="overwrite existing database templates"),
    )

    def handle(self, **options):
        force = options.get('force', False)

        # sync widgets
        sync_cmd = SyncWidgetsCommand()
        sync_cmd.stdout = self.stdout
        sync_cmd.handle(**{
            'force': force,
            'verbosity': False})

        # sync page themes
        sync_cmd = PageThemeCommand()
        sync_cmd.stdout = self.stdout
        sync_cmd.handle(**{
            'force': force,
            'verbosity': False})

ef991dfbb8710a47710f0bf9870e623f41a9f276
<mask token>


class Command(BaseCommand):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Command(BaseCommand):
    <mask token>
    <mask token>

    def handle(self, **options):
        force = options.get('force', False)
        sync_cmd = SyncWidgetsCommand()
        sync_cmd.stdout = self.stdout
        sync_cmd.handle(**{'force': force, 'verbosity': False})
        sync_cmd = PageThemeCommand()
        sync_cmd.stdout = self.stdout
        sync_cmd.handle(**{'force': force, 'verbosity': False})

<mask token>


class Command(BaseCommand):
    help = 'Syncs templates and themes'
    option_list = NoArgsCommand.option_list + (make_option('-f', '--force',
        action='store_true', dest='force', default=False, help=
        'overwrite existing database templates'),)

    def handle(self, **options):
        force = options.get('force', False)
        sync_cmd = SyncWidgetsCommand()
        sync_cmd.stdout = self.stdout
        sync_cmd.handle(**{'force': force, 'verbosity': False})
        sync_cmd = PageThemeCommand()
        sync_cmd.stdout = self.stdout
        sync_cmd.handle(**{'force': force, 'verbosity': False})

from __future__ import unicode_literals
from optparse import make_option
from django.core.management.base import BaseCommand, NoArgsCommand
from .sync_page_themes import Command as PageThemeCommand
from .sync_widget_themes import Command as SyncWidgetsCommand


class Command(BaseCommand):
    help = 'Syncs templates and themes'
    option_list = NoArgsCommand.option_list + (make_option('-f', '--force',
        action='store_true', dest='force', default=False, help=
        'overwrite existing database templates'),)

    def handle(self, **options):
        force = options.get('force', False)
        sync_cmd = SyncWidgetsCommand()
        sync_cmd.stdout = self.stdout
        sync_cmd.handle(**{'force': force, 'verbosity': False})
        sync_cmd = PageThemeCommand()
        sync_cmd.stdout = self.stdout
        sync_cmd.handle(**{'force': force, 'verbosity': False})

from __future__ import unicode_literals

from optparse import make_option

from django.core.management.base import BaseCommand, NoArgsCommand
from .sync_page_themes import Command as PageThemeCommand
from .sync_widget_themes import Command as SyncWidgetsCommand


class Command(BaseCommand):

    help = "Syncs templates and themes"
    option_list = NoArgsCommand.option_list + (
        make_option("-f", "--force",
                    action="store_true", dest="force", default=False,
                    help="overwrite existing database templates"),
    )

    def handle(self, **options):
        force = options.get('force', False)

        # sync widgets
        sync_cmd = SyncWidgetsCommand()
        sync_cmd.stdout = self.stdout
        sync_cmd.handle(**{
            'force': force,
            'verbosity': False})

        # sync page themes
        sync_cmd = PageThemeCommand()
        sync_cmd.stdout = self.stdout
        sync_cmd.handle(**{
            'force': force,
            'verbosity': False})
