Exemplo n.º 1
0
    def __init__(self):
        ServiceTemplate.__init__(self)
        self.service_data_template = '''{
            "granularity": "YYYY-MM-DDThh:mm:ssZ",
            "setSpec": null{{#spec_kv_only}},
            "spec_kv_only": {{spec_kv_only}}{{/spec_kv_only}},
            "flow_control": {{flow_control}}{{#id_limit}},
            "id_limit": {{id_limit}}{{/id_limit}}{{#doc_limit}},
            "doc_limit": {{doc_limit}}{{/doc_limit}},
            "metadataformats": [{"metadataFormat":
                {
                    "metadataPrefix": "LR_JSON_0.10.0"
                }
            }]
        }'''
        # Returns keys/pair where the keys is the destination database name
        # and value is the couchapp directory name.  This assumes a central
        # location for all couchapps.
        self.couchapps = {
            'resource_data': [
                'apps/learningregistry-resource-location',
                'apps/learningregistry-by-date'
            ]
        }

        def _couchapps(self):
            return self._couchapps
 def __init__(self):
     ServiceTemplate.__init__(self)    
     self.service_data_template = '''{}'''
     
     # Returns keys/pair where the keys is the destination database name
     # and value is the couchapp directory name.  This assumes a central
     # location for all couchapps.
     self._couchapps ={'resource_data': ['learningregistry-resources',
                                                                'learningregistry-resource-location']
                                  }
Exemplo n.º 3
0
 def __init__(self):
     ServiceTemplate.__init__(self)
     self.service_data_template = '''{
         "flow_control": {{flow_control}}{{#id_limit}},
         "id_limit": {{id_limit}}{{/id_limit}}{{#doc_limit}},
         "doc_limit": {{doc_limit}}{{/doc_limit}}
     }'''
     
     # Returns keys/pair where the keys is the destination database name
     # and value is the couchapp directory name.  This assumes a central
     # location for all couchapps.
     self.couchapps ={'resource_data': ['apps/learningregistry-slice'] }
Exemplo n.º 4
0
 def __init__(self):
     ServiceTemplate.__init__(self)
     self.service_data_template = '''{
         "flow_control": {{flow_control}}{{#id_limit}},
         "id_limit": {{id_limit}}{{/id_limit}}{{#doc_limit}},
         "doc_limit": {{doc_limit}}{{/doc_limit}}
     }'''
     
     # Returns keys/pair where the keys is the destination database name
     # and value is the couchapp directory name.  This assumes a central
     # location for all couchapps.
     self.couchapps ={'resource_data': ['apps/learningregistry-slicelite'] }
    def __init__(self):
        ServiceTemplate.__init__(self)
        self.service_data_template = '''{}'''

        # Returns keys/pair where the keys is the destination database name
        # and value is the couchapp directory name.  This assumes a central
        # location for all couchapps.
        self._couchapps = {
            'resource_data': [
                'learningregistry-resources',
                'learningregistry-resource-location'
            ]
        }
 def __init__(self):
     ServiceTemplate.__init__(self)
     self.service_data_template = '''{
         "version": "OAI-PMH 2.0",
         "granularity": "YYYY-MM-DDThh:mm:ssZ",
         "schemalocation": "http://www.learningregistry.org/documents/downloads/OAI-PMH-LR.xsd"{{#spec_kv_only}},
         "spec_kv_only": {{spec_kv_only}}{{/spec_kv_only}}{{#flow_control}},
         "flow_control": {{flow_control}}{{/flow_control}}{{#id_limit}},
         "id_limit": {{id_limit}}{{/id_limit}}{{#doc_limit}},
         "doc_limit": {{doc_limit}}{{/doc_limit}}
     }'''
     
     # Returns keys/pair where the keys is the destination database name
     # and value is the couchapp directory name.  This assumes a central
     # location for all couchapps.
     self.couchapps ={'resource_data':['apps/oai-pmh-get-records',
                                                               'apps/oai-pmh-identify-timestamp',
                                                               'apps/oai-pmh-list-identifiers',
                                                               'apps/oai-pmh-list-metadata-formats',
                                                               'apps/oai-pmh-test-data']
                          }
Exemplo n.º 7
0
    def __init__(self):
        ServiceTemplate.__init__(self)
        self.service_data_template = """{
            "granularity": "YYYY-MM-DDThh:mm:ssZ",
            "setSpec": null{{#spec_kv_only}},
            "spec_kv_only": {{spec_kv_only}}{{/spec_kv_only}},
            "flow_control": {{flow_control}}{{#id_limit}},
            "id_limit": {{id_limit}}{{/id_limit}}{{#doc_limit}},
            "doc_limit": {{doc_limit}}{{/doc_limit}},
            "metadataformats": [{"metadataFormat":
                {
                    "metadataPrefix": "LR_JSON_0.10.0"
                }
            }]
        }"""
        # Returns keys/pair where the keys is the destination database name
        # and value is the couchapp directory name.  This assumes a central
        # location for all couchapps.
        self.couchapps = {"resource_data": ["apps/learningregistry-resource-location", "apps/learningregistry-by-date"]}

        def _couchapps(self):
            return self._couchapps
Exemplo n.º 8
0
    def __init__(self):
        ServiceTemplate.__init__(self)
        self.service_data_template = '''{
            "version": "OAI-PMH 2.0",
            "granularity": "YYYY-MM-DDThh:mm:ssZ",
            "schemalocation": "http://www.learningregistry.org/documents/downloads/OAI-PMH-LR.xsd"{{#spec_kv_only}},
            "spec_kv_only": {{spec_kv_only}}{{/spec_kv_only}}{{#flow_control}},
            "flow_control": {{flow_control}}{{/flow_control}}{{#id_limit}},
            "id_limit": {{id_limit}}{{/id_limit}}{{#doc_limit}},
            "doc_limit": {{doc_limit}}{{/doc_limit}}
        }'''

        # Returns keys/pair where the keys is the destination database name
        # and value is the couchapp directory name.  This assumes a central
        # location for all couchapps.
        self.couchapps = {
            'resource_data': [
                'apps/oai-pmh-get-records', 'apps/oai-pmh-identify-timestamp',
                'apps/oai-pmh-list-identifiers',
                'apps/oai-pmh-list-metadata-formats', 'apps/oai-pmh-test-data'
            ]
        }
Exemplo n.º 9
0
 def __init__(self):
     ServiceTemplate.__init__(self)
     self.service_data_template = '''{
 def __init__(self):
     ServiceTemplate.__init__(self)
     # Returns keys/pair where the keys is the destination database name
     # and value is the couchapp directory name.  This assumes a central
     # location for all couchapps.
     self.couchapps ={'resource_data':['apps/filtered-replication']}
 def __init__(self):
     ServiceTemplate.__init__(self)
     self.service_data_template = """{}"""
 def __init__(self):
     ServiceTemplate.__init__(self)    
     self.service_data_template = '''{}'''
 def __init__(self):
     ServiceTemplate.__init__(self)
     # Returns keys/pair where the keys is the destination database name
     # and value is the couchapp directory name.  This assumes a central
     # location for all couchapps.
     self.couchapps = {'resource_data': ['apps/filtered-replication']}
 def __init__(self):
     ServiceTemplate.__init__(self)    
Exemplo n.º 15
0
 def __init__(self):
     ServiceTemplate.__init__(self)