def get_fluff_tables(self):
     fluff_pillows = [import_pillow_string(x) for x in settings.PILLOWTOPS['fluff']]
     tables = set()
     for pillow in fluff_pillows:
         if pillow.save_direct_to_sql:
             name = pillow.indicator_class()._table.name
             tables.add((name, name))
     return tables
 def get_fluff_tables(self):
     fluff_pillows = [
         import_pillow_string(x) for x in settings.PILLOWTOPS['fluff']
     ]
     tables = set()
     for pillow in fluff_pillows:
         if pillow.save_direct_to_sql:
             name = pillow.indicator_class()._table.name
             tables.add((name, name))
     return tables
Пример #3
0
def catch_signal(app, **kwargs):
    app_name = app.__name__.rsplit('.', 1)[0]
    if app_name == 'fluff':
        from fluff import FluffPillow

        pillows = list(chain.from_iterable(settings.PILLOWTOPS.values()))
        for pillow_string in pillows:
            pillow_class = import_pillow_string(pillow_string, instantiate=False)
            if issubclass(pillow_class, FluffPillow):
                doc_class = pillow_class.indicator_class
                create_update_indicator_table(doc_class, pillow_class)
Пример #4
0
 def pillows(self):
     return [import_pillow_string(name) for name in self.pillow_names]
Пример #5
0
 def pillows(self):
     return [import_pillow_string(name) for name in self.pillow_names]