Commit bb35b4f8 authored by mouadh's avatar mouadh

authentication exception

parent 341ef37b
...@@ -105,8 +105,7 @@ class DiscoverRequest(ComplexModel): ...@@ -105,8 +105,7 @@ class DiscoverRequest(ComplexModel):
Restrictions = Restrictionlist Restrictions = Restrictionlist
Properties = Propertielist Properties = Propertielist
# class AuthenticationError(Fault):
class AuthenticationError(Fault): # __namespace__ = 'spyne.examples.authentication'
__namespace__ = 'spyne.examples.authentication' # faultcode='Client.AuthenticationError',
faultcode='Client.AuthenticationError', # faultstring='Invalid authentication request'
faultstring='Invalid authentication request'
...@@ -13,7 +13,8 @@ from spyne.protocol.soap import Soap11 ...@@ -13,7 +13,8 @@ from spyne.protocol.soap import Soap11
from spyne.server.wsgi import WsgiApplication from spyne.server.wsgi import WsgiApplication
from ..mdx.tools.config_file_parser import ConfigParser from ..mdx.tools.config_file_parser import ConfigParser
from ..services.models import DiscoverRequest, ExecuteRequest, Session, AuthenticationError from ..services.models import DiscoverRequest, ExecuteRequest, Session\
# , AuthenticationError
from .xmla_discover_tools import XmlaDiscoverTools from .xmla_discover_tools import XmlaDiscoverTools
from .xmla_execute_tools import XmlaExecuteTools from .xmla_execute_tools import XmlaExecuteTools
from .xmla_execute_xsds import execute_xsd from .xmla_execute_xsds import execute_xsd
......
...@@ -34,6 +34,7 @@ class XmlaDiscoverTools(): ...@@ -34,6 +34,7 @@ class XmlaDiscoverTools():
]] ]]
self.SessionId = uuid.uuid1() self.SessionId = uuid.uuid1()
def change_catalogue(self, new_catalogue): def change_catalogue(self, new_catalogue):
""" """
if you change the catalogue(cube) in any request, we have to instantiate the MdxEngine with the new catalogue if you change the catalogue(cube) in any request, we have to instantiate the MdxEngine with the new catalogue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment