def push_design_documents(self, design_path):
        """
        Push the design documents stored in `design_path` to the server
        """
        for db_name in os.listdir(design_path):
            if db_name.startswith("__") or db_name.startswith("."):
                continue
            db_path = os.path.join(design_path, db_name)
            doc = self._folder_to_dict(db_path)
            doc_id = "_design/openag"
            doc["_id"] = doc_id
            db = self[db_name]
            if doc_id in db:
                old_doc = db[doc_id]
                doc["_rev"] = old_doc["_rev"]
                if doc == old_doc:
                    continue
            db[doc_id] = doc
def push_design_documents ( self , design_path ) : for db_name in os . listdir ( design_path ) : if db_name . startswith ( "__" ) or db_name . startswith ( "." ) : continue db_path = os . path . join ( design_path , db_name ) doc = self . _folder_to_dict ( db_path ) doc_id = "_design/openag" doc [ "_id" ] = doc_id db = self [ db_name ] if doc_id in db : old_doc = db [ doc_id ] doc [ "_rev" ] = old_doc [ "_rev" ] if doc == old_doc : continue db [ doc_id ] = doc
Push the design documents stored in `design_path` to the server