X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=myslice%2Fconfig.py;h=6ef506171231749f1b1a261e5deb34f42df2e3c2;hb=e937c0d12ce2e9f3f37eebc0afde6ec0960ab8c1;hp=4fe5aa35fb96b2cf3da3d72b293fecd727a04914;hpb=6373f4c6f48b4a2e049372ad6c6dd4adf9c95b69;p=myslice.git diff --git a/myslice/config.py b/myslice/config.py index 4fe5aa35..6ef50617 100644 --- a/myslice/config.py +++ b/myslice/config.py @@ -1,10 +1,17 @@ class Config: -# manifold_server = 'manifold.pl.sophia.inria.fr' - manifold_server = 'demo.myslice.info' - manifold_port = '7080' - manifold_path = '/' + # production should use https of course +# an old-fashioned API - that's what is currently only supported + #manifold_url = "http://manifold.pl.sophia.inria.fr:7080/" + manifold_url = "http://localhost:7080/" +# this one runs a new API, but currently (april 2013) there are missing +# features; GetSession and GetPersons are still there (they should go away) and +# the code for retrieving metadata does not work as-is, and I have no clue +# what it should become anyways, so... +# manifold_url = "http://dev.myslice.info:7080/" + + # exporting these details to js @staticmethod - def manifold_url (): - return "http://%s:%s%s"%(Config.manifold_server,Config.manifold_port,Config.manifold_path) + def manifold_js_export (): + return "var MANIFOLD_URL = '%s';\n"%Config.manifold_url;