changeset 11:fad73212354b

wsgi addedx
author dwinter
date Mon, 05 Nov 2012 09:29:21 +0100
parents 1b2d74f94ca8
children 0287aed01f2b
files addDriToIndexMeta.py managePurls/manageIndexMetaPURLs.py purlservice.wsgi restService/redirector.py restService/restService.py
diffstat 5 files changed, 14 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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")
       
  
     
--- /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()
+
--- 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
--- 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()