X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=inline;f=myslice%2Fconfig.py;h=4edd38823c85263f1b7fe8a376db039c61142303;hb=c15eb339cc9b7955f77b7cbb6e3466e0ce49b7e4;hp=3293f1d18773e8106602fc1ac130ad6d20cbe5f9;hpb=a222cef0a10a5517349f05cea0e382b35e3a14a6;p=myslice.git diff --git a/myslice/config.py b/myslice/config.py index 3293f1d1..4edd3882 100644 --- a/myslice/config.py +++ b/myslice/config.py @@ -1,10 +1,18 @@ class Config: - manifold_server = 'manifold.pl.sophia.inria.fr' -# manifold_server = 'demo.myslice.info' - manifold_port = '7080' - manifold_path = '/' +# this version of unfold expects a backend that runs a new API +# production should probably use https of course + + +# if you use a development backend running on this box +# manifold_url = "http://localhost:7080/" +# the INRIA setup +# manifold_url = "http://manifold.pl.sophia.inria.fr:7080/" +# the OpenLab-wide backend as managed by UPMC + 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;