コード例 #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