# HG changeset patch # User dwinter # Date 1352104161 -3600 # Node ID fad73212354bc4db3ae390bf003a1d17944d7c63 # Parent 1b2d74f94ca8a205064b166c86ec0d8cf9ce27c0 wsgi addedx diff -r 1b2d74f94ca8 -r fad73212354b addDriToIndexMeta.py --- a/addDriToIndexMeta.py Fri Nov 02 15:39:56 2012 +0100 +++ b/addDriToIndexMeta.py Mon Nov 05 09:29:21 2012 +0100 @@ -54,7 +54,7 @@ for name in files: - if name.endswith(".meta"): + if name=="index.meta": fl=join(root, name) shortPath=re.sub("^"+delpath,replacepath,fl) purl=md.getPurl(shortPath) diff -r 1b2d74f94ca8 -r fad73212354b managePurls/manageIndexMetaPURLs.py --- a/managePurls/manageIndexMetaPURLs.py Fri Nov 02 15:39:56 2012 +0100 +++ b/managePurls/manageIndexMetaPURLs.py Mon Nov 05 09:29:21 2012 +0100 @@ -38,7 +38,7 @@ def __init__(self): - self.purlDB = web.database(dbn="postgres", db="purlDB",user="purlUSER",password="3333", host="localhost") + self.purlDB = web.database(dbn="postgres", db="purlDB",user="purlUSER",password="p*lWa55eR", host="localhost") diff -r 1b2d74f94ca8 -r fad73212354b purlservice.wsgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/purlservice.wsgi Mon Nov 05 09:29:21 2012 +0100 @@ -0,0 +1,9 @@ +import sys +sys.path.append("/usr/local/metadataServices") + + +import web +from restService.restService import * + +application = web.application(urls, globals()).wsgifunc() + diff -r 1b2d74f94ca8 -r fad73212354b restService/redirector.py --- a/restService/redirector.py Fri Nov 02 15:39:56 2012 +0100 +++ b/restService/redirector.py Mon Nov 05 09:29:21 2012 +0100 @@ -15,7 +15,7 @@ purlHandler=None def __init__(self): #read config file for the viewers - confFile= file("viewer.config") + confFile= file("/usr/local/metadataServices/purlService/restService/viewer.config") self.purlHandler = manageIndexMetaPURLs.IndexMetaPURLManager() @@ -92,4 +92,4 @@ raise web.redirect(viewerUrl,"302 found") if __name__ == '__main__': - pass \ No newline at end of file + pass diff -r 1b2d74f94ca8 -r fad73212354b restService/restService.py --- a/restService/restService.py Fri Nov 02 15:39:56 2012 +0100 +++ b/restService/restService.py Mon Nov 05 09:29:21 2012 +0100 @@ -41,4 +41,4 @@ if __name__ == "__main__": - app.run() \ No newline at end of file + app.run()