예제 #1
0
 def _get_designs(self):
     return [
         DesignInfo(app_label=self.app_label,
                    db=db,
                    design_path=os.path.join(self.dir, "_design"))
         for db in self.get_dbs(self.app_label)
     ]
예제 #2
0
 def _get_designs(self):
     return [
         DesignInfo(app_label=app_label, db=db,
                    design_path=os.path.join(self.dir, app_label))
         for app_label in self.get_couchapps()
         for db in self.get_dbs(app_label)
     ]
예제 #3
0
 def get_designs(self):
     return [
         DesignInfo(app_label=app_label,
                    db=self.db(app_label),
                    design_path=os.path.join(self.dir, app_label))
         for app_label in self.get_couchapps()
     ]
예제 #4
0
 def _get_designs(self):
     # Instantiate here to make sure that it's instantiated after the dbs settings
     # are patched for tests
     couch_config = CouchConfig()
     db = Database(
         couch_config.get_db_uri_for_app_label(self.app_config.label), create=True)
     return [
         DesignInfo(app_label=self.app_config.label,
                    db=db,
                    design_path=self.dir)
     ]
예제 #5
0
 def _get_designs(self):
     from fluff.pillow import get_fluff_pillow_configs
     designs = []
     for config in get_fluff_pillow_configs():
         pillow = config.get_instance()
         for processor in pillow.processors:
             app_label = processor.indicator_class._meta.app_label
             designs.append(
                 DesignInfo(app_label=self.app_label,
                            db=get_db(app_label),
                            design_path=os.path.join(self.dir, "_design")))
     return designs