Exemple #1
0
    def get_all_modifiers(self):
        """ Fetch modifiers from games and also add system specific ones
        """
        ms = ['dispell', # cancel all spells
              'cure',   # delete all negative spells
              'curse',  # prevent cast of positive spells, or cure and dispell
              'immunity', # prevent cast of any spells, or cure and dispell
              'steal',  # allow users to steal points, one from another
              'top-disguise', # allow showing another number of points in top
        ]
        for g in get_games():
            ms.extend(g.get_modifiers())

        from wouso.interface import get_apps
        for a in get_apps():
            ms.extend(a.get_modifiers())

        return ms
Exemple #2
0
    def get_all_modifiers(self):
        """ Fetch modifiers from games and also add system specific ones
        """
        ms = [
            'dispell',  # cancel all spells
            'cure',  # delete all negative spells
            'curse',  # prevent cast of positive spells, or cure and dispell
            'immunity',  # prevent cast of any spells, or cure and dispell
            'steal',  # allow users to steal points, one from another
            'top-disguise',  # allow showing another number of points in top
        ]
        for g in get_games():
            ms.extend(g.get_modifiers())

        from wouso.interface import get_apps
        for a in get_apps():
            ms.extend(a.get_modifiers())

        return ms
Exemple #3
0
    def handle(self, *args, **options):
        self.stdout.write('Starting at: %s\n' % datetime.now())

        # Now handle other apps
        from wouso.interface import get_apps
        apps = get_apps()

        for a in apps:
            self.stdout.write('%s ...\n' % a.name())
            a.management_task(stdout=self.stdout)

        # Now handle games
        for g in get_games():
            if g.management_task:
                self.stdout.write('%s ...\n' % g.name())
                g.management_task(stdout=self.stdout)

        now = datetime.now()
        Setting.get('wousocron_lastrun').set_value('%s' % now)
        self.stdout.write('Finished at: %s\n' % now)
Exemple #4
0
    def handle(self, *args, **options):
        self.stdout.write('Starting at: %s\n' % datetime.now())

        # Now handle other apps
        from wouso.interface import get_apps
        apps = get_apps()

        for a in apps:
            if a.management_task:
                self.stdout.write('%s ...\n' % a.name())
                a.management_task(stdout=self.stdout)

        # Now handle games
        for g in get_games():
            if g.management_task:
                self.stdout.write('%s ...\n' % g.name())
                g.management_task(stdout=self.stdout)

        now = datetime.now()
        Setting.get('wousocron_lastrun').set_value('%s' % now)
        self.stdout.write('Finished at: %s\n' % now)