from myslice.configengine import ConfigEngine
from django.contrib import messages
+from django.shortcuts import redirect
from manifoldresult import ManifoldResult, ManifoldCode, ManifoldException
from manifold.core.result_value import ResultValue
self.calls = {}
self.multicall = False
self.url = ConfigEngine().manifold_url()
+ # for more debug on this link, set verbose=True
self.server = xmlrpclib.Server(self.url, verbose=False, allow_none=True)
def __repr__ (self): return "ManifoldAPI[%s]"%self.url
request.session.flush()
#raise Exception, "User not authenticated"
host = request.get_host()
- return redirect(host)
+ return redirect('/')
manifold_api_session_auth = request.session['manifold']['auth']
return _execute_query(request, query, manifold_api_session_auth)