e

Asked by romankrv on 2011-08-01

Hi.
I found bug --
If i add new function

to class
for ex:

 @ladonize(rtype=unicode)
    def ViewI(self):
        return "Hello"
 --

and restart wsgi - server : like this:
 if __name__=='__main__':
    PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
    print PROJECT_DIR

    sys.path.insert(0, os.path.dirname(PROJECT_DIR))
    PROJECT_NAME = PROJECT_DIR.split('/')[-1]
    print "---"
    print PROJECT_NAME

    os.environ['DJANGO_SETTINGS_MODULE'] = "%s.settings" % PROJECT_NAME

    port = 8000
    application = LadonWSGIApplication(['MYGateway','Calculator'], ['.'])
    server = wsgiref.simple_server.make_server('', port , application)
    server.serve_forever()

and try to use new function

from suds.client import Client;
url = 'http://127.0.0.1:8000/TaleoGateway/soap/description'
client1 = Client(url)
client1.service.ViewInterviewww("EEE")

i get error:

client1.service.ViewInterviewww("EEE")
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (31, 0))

---------------------------------------------------------------------------
MethodNotFound Traceback (most recent call last)

/home/krv/PROJECTS/hv/<ipython console> in <module>()

/home/krv/VIRTUALENVS/LADON/lib/python2.6/site-packages/suds/client.pyc in __getattr__(self, name)
    297 else:
    298 port = default
--> 299 return getattr(port, name)
    300
    301 def __getitem__(self, name):

/home/krv/VIRTUALENVS/LADON/lib/python2.6/site-packages/suds/client.pyc in __getattr__(self, name)
    401 else:
    402 m = default
--> 403 return getattr(m, name)
    404
    405 def __getitem__(self, name):

/home/krv/VIRTUALENVS/LADON/lib/python2.6/site-packages/suds/client.pyc in __getattr__(self, name)
    492 @rtype: L{Method}
    493 """
--> 494 return self[name]
    495
    496 def __getitem__(self, name):

/home/krv/VIRTUALENVS/LADON/lib/python2.6/site-packages/suds/client.pyc in __getitem__(self, name)
    505 if m is None:
    506 qn = '.'.join((self.__qn, name))
--> 507 raise MethodNotFound, qn
    508 return Method(self.__client, m)
    509

MethodNotFound: Method not found: 'TaleoGateway.TaleoGateway.ViewInterviewww'

I work in virtualenvwrapper and pip and I created env as: mkvirtualenv --no-site-packages

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
ladon Edit question
Assignee:
jsgaarde Edit question
Last query:
2011-08-01
Last reply:
2011-08-02
romankrv (romankrv) said : #1

as information:
    If I restart my computer it will be work

jsgaarde (jakob-simon-gaarde) said : #2

I am setting the status to solved and letting the bug #819750 take charge